Skip to content

Experimenting with predai #13

@SwiftRR

Description

@SwiftRR

Hi Trefor,
I have experimented with predai on my raspberry pi HAOS setup. I have free-standing predbat installed without appdaemon.
I have got it working and have added the relevant lines to my predbat apps.yaml.
I managed to generate an apex chart that looks very similar to the chart shown in the documentation.
image

I did notice that there was an extra space in the documentation code lines that I added to my apps.yaml file. It reads as below.
I removed the extra space.

load_forecast_only: True
load_forecast:
- sensor.givtcp_{geserial}_load_energy_today_kwh_prediction$results

Some questions:

  1. I wasn't sure what to add for the 'subtract' line for ev use which refers to a 'sensor'. In predbat, ignoring ev charging or large usages is handled by a switch or inputs (in documentation car charging hold options). I have a zappi.
  2. Should I change the historical days to 10 in the predai yaml to match what I have in HA currently? In fact, what use is such a small sample of historical days? I see that you want a larger sample in a database.
  3. I have a heat pump with weather compensation, and I have been able to add the sensor for my weather compensation to the predai.yaml.

This is what happened to my load predictions for Monday 12th August – scary with so many predicted loads of zero.
My predbat settings are nothing out of the ordinary.
image

I've now commented out the predai code lines from my predbat apps.yaml.
I have kept predai running though. Should this then start populating a historical database?

Still an interesting experiment and good to see that is seems to be quite easy to step back.

Rob

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions