batpred
batpred copied to clipboard
Solcast PV predication not showing
Describe the bug Solcast is setup and the sensors are working in HA. However, predbat doesn't seem to be using any predicted solar. On the predbat plan the solar column is blank (no values). In the 'data prediction' chart the PV and PV actual figures are the same, and increase together as solar is generated (although I've only just installed predbat, so I unsure as the weather this maybe expected behaviour).
I've tried manually setting the sensor names in the apps.yaml file, this didn't change anything. Although when I check the logs predbat is pulling the values from the sensors as expected, so I don't think this is the issue.
Expected behavior Predbat to use the predicted solar generation thoughout the day in it's calculations.
Predbat version v7.16.15
Environment details
- Inverter and battery setup: GivEnergy AIO + 5kw Solar PV
- Standard HAOS installer or Docker: HAOS
Screenshots
Log file log.txt
That's weird
the logfile shows that predbat is picking up solcast forecast, but the actual forecast appears to be repeating:
2024-04-13 23:55:03.742687 INFO pred_bat: PV Data for pv_forecast_today total 11.43 kWh
2024-04-13 23:55:03.759663 INFO pred_bat: PV Data for pv_forecast_tomorrow total 23.42 kWh
2024-04-13 23:55:03.774926 INFO pred_bat: PV Data for pv_forecast_d3 total 28.75 kWh
2024-04-13 23:55:03.792659 INFO pred_bat: PV Data for pv_forecast_d4 total 22.74 kWh
...
2024-04-13 23:55:06.853019 INFO pred_bat: PV: [ 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2, 8.2]
Can you share what's in apps.yaml for the PV config and have a look at the solcast sensor values.
You could try reloading the solcast integration. Assume you have got an automation running that retrieves the PV data from solcast into HA?
Yes, automation is setup to retrieve PV data each night.
I've have restarted HA with no effect, or did you mean uninstall/install the Solcast integration?
Although it looks as though the Solcast integration is working correctly. I've had a look at the Solcast sensors and they all appear to working as expected. I'm assuming batpred pulls the data it need from the attributes, looking there the data doesn't seem to repeat at all.
I installed batpred on Friday, it hasn't worked from the go. I left it a bit to see if it would click in , but nothing changed. Hopefully I've gotten the batpred settings right?
app.yaml PV settings:
pv_forecast_today: re:(sensor.(solcast_|)(pv_forecast_|)forecast_today) pv_forecast_tomorrow: re:(sensor.(solcast_|)(pv_forecast_|)forecast_tomorrow) pv_forecast_d3: re:(sensor.(solcast_|)(pv_forecast_|)forecast_(day_3|d3)) pv_forecast_d4: re:(sensor.(solcast_|)(pv_forecast_|)forecast_(day_4|d4)) #pv_forecast_today: sensor.solcast_pv_forecast_forecast_today #pv_forecast_tomorrow: sensor.solcast_pv_forecast_forecast_tomorrow #pv_forecast_d3: sensor.solcast_pv_forecast_forecast_day_3 #pv_forecast_d4: sensor.solcast_pv_forecast_forecast_day_4
Data pulled from Solcast sensor attribute:
DetailedForecast
- period_start: '2024-04-14T00:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T00:30:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T01:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T01:30:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T02:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T02:30:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T03:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T03:30:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T04:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T04:30:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T05:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T05:30:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T06:00:00+01:00' pv_estimate: 0.0077 pv_estimate10: 0.0039 pv_estimate90: 0.0077
- period_start: '2024-04-14T06:30:00+01:00' pv_estimate: 0.0694 pv_estimate10: 0.0659 pv_estimate90: 0.0729
- period_start: '2024-04-14T07:00:00+01:00' pv_estimate: 0.1021 pv_estimate10: 0.097 pv_estimate90: 0.1072
- period_start: '2024-04-14T07:30:00+01:00' pv_estimate: 0.1023 pv_estimate10: 0.0972 pv_estimate90: 0.1074
- period_start: '2024-04-14T08:00:00+01:00' pv_estimate: 0.2284 pv_estimate10: 0.217 pv_estimate90: 0.2284
- period_start: '2024-04-14T08:30:00+01:00' pv_estimate: 0.8952 pv_estimate10: 0.8504 pv_estimate90: 0.8952
- period_start: '2024-04-14T09:00:00+01:00' pv_estimate: 1.5613 pv_estimate10: 1.2202 pv_estimate90: 1.5641
- period_start: '2024-04-14T09:30:00+01:00' pv_estimate: 2.2015 pv_estimate10: 1.4896 pv_estimate90: 2.2015
- period_start: '2024-04-14T10:00:00+01:00' pv_estimate: 2.6863 pv_estimate10: 1.6599 pv_estimate90: 2.7794
- period_start: '2024-04-14T10:30:00+01:00' pv_estimate: 2.9505 pv_estimate10: 1.6649 pv_estimate90: 3.3286
- period_start: '2024-04-14T11:00:00+01:00' pv_estimate: 3.109 pv_estimate10: 1.5818 pv_estimate90: 3.8023
- period_start: '2024-04-14T11:30:00+01:00' pv_estimate: 3.1562 pv_estimate10: 1.4863 pv_estimate90: 4.1936
- period_start: '2024-04-14T12:00:00+01:00' pv_estimate: 3.1281 pv_estimate10: 1.3946 pv_estimate90: 4.5288
- period_start: '2024-04-14T12:30:00+01:00' pv_estimate: 3.0401 pv_estimate10: 1.3197 pv_estimate90: 4.7949
- period_start: '2024-04-14T13:00:00+01:00' pv_estimate: 2.936 pv_estimate10: 1.2502 pv_estimate90: 4.9768
- period_start: '2024-04-14T13:30:00+01:00' pv_estimate: 2.8358 pv_estimate10: 1.1921 pv_estimate90: 5
- period_start: '2024-04-14T14:00:00+01:00' pv_estimate: 2.714 pv_estimate10: 1.128 pv_estimate90: 4.9554
- period_start: '2024-04-14T14:30:00+01:00' pv_estimate: 2.5261 pv_estimate10: 1.046 pv_estimate90: 4.7051
- period_start: '2024-04-14T15:00:00+01:00' pv_estimate: 2.2946 pv_estimate10: 0.9519 pv_estimate90: 4.3762
- period_start: '2024-04-14T15:30:00+01:00' pv_estimate: 2.0134 pv_estimate10: 0.8395 pv_estimate90: 3.9302
- period_start: '2024-04-14T16:00:00+01:00' pv_estimate: 1.7375 pv_estimate10: 0.7382 pv_estimate90: 3.4801
- period_start: '2024-04-14T16:30:00+01:00' pv_estimate: 1.4799 pv_estimate10: 0.6424 pv_estimate90: 3.0775
- period_start: '2024-04-14T17:00:00+01:00' pv_estimate: 1.194 pv_estimate10: 0.5313 pv_estimate90: 2.6693
- period_start: '2024-04-14T17:30:00+01:00' pv_estimate: 0.8812 pv_estimate10: 0.3852 pv_estimate90: 2.2012
- period_start: '2024-04-14T18:00:00+01:00' pv_estimate: 0.5832 pv_estimate10: 0.2463 pv_estimate90: 1.654
- period_start: '2024-04-14T18:30:00+01:00' pv_estimate: 0.3511 pv_estimate10: 0.1631 pv_estimate90: 1.0317
- period_start: '2024-04-14T19:00:00+01:00' pv_estimate: 0.1486 pv_estimate10: 0.0906 pv_estimate90: 0.3976
- period_start: '2024-04-14T19:30:00+01:00' pv_estimate: 0.0366 pv_estimate10: 0.022 pv_estimate90: 0.0513
- period_start: '2024-04-14T20:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T20:30:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T21:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T21:30:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T22:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T22:30:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T23:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T23:30:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0 DetailedHourly
- period_start: '2024-04-14T00:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T01:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T02:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T03:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T04:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T05:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T06:00:00+01:00' pv_estimate: 0.0386 pv_estimate10: 0.0349 pv_estimate90: 0.0403
- period_start: '2024-04-14T07:00:00+01:00' pv_estimate: 0.1022 pv_estimate10: 0.0971 pv_estimate90: 0.1073
- period_start: '2024-04-14T08:00:00+01:00' pv_estimate: 0.5618 pv_estimate10: 0.5337 pv_estimate90: 0.5618
- period_start: '2024-04-14T09:00:00+01:00' pv_estimate: 1.8814 pv_estimate10: 1.3549 pv_estimate90: 1.8828
- period_start: '2024-04-14T10:00:00+01:00' pv_estimate: 2.8184 pv_estimate10: 1.6624 pv_estimate90: 3.054
- period_start: '2024-04-14T11:00:00+01:00' pv_estimate: 3.1326 pv_estimate10: 1.5341 pv_estimate90: 3.9979
- period_start: '2024-04-14T12:00:00+01:00' pv_estimate: 3.0841 pv_estimate10: 1.3572 pv_estimate90: 4.6619
- period_start: '2024-04-14T13:00:00+01:00' pv_estimate: 2.8859 pv_estimate10: 1.2211 pv_estimate90: 4.9884
- period_start: '2024-04-14T14:00:00+01:00' pv_estimate: 2.62 pv_estimate10: 1.087 pv_estimate90: 4.8302
- period_start: '2024-04-14T15:00:00+01:00' pv_estimate: 2.154 pv_estimate10: 0.8957 pv_estimate90: 4.1532
- period_start: '2024-04-14T16:00:00+01:00' pv_estimate: 1.6087 pv_estimate10: 0.6903 pv_estimate90: 3.2788
- period_start: '2024-04-14T17:00:00+01:00' pv_estimate: 1.0376 pv_estimate10: 0.4582 pv_estimate90: 2.4352
- period_start: '2024-04-14T18:00:00+01:00' pv_estimate: 0.4672 pv_estimate10: 0.2047 pv_estimate90: 1.3428
- period_start: '2024-04-14T19:00:00+01:00' pv_estimate: 0.0926 pv_estimate10: 0.0563 pv_estimate90: 0.2245
- period_start: '2024-04-14T20:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T21:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T22:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0
- period_start: '2024-04-14T23:00:00+01:00' pv_estimate: 0 pv_estimate10: 0 pv_estimate90: 0 Dayname Sunday DataCorrect true
I saw something similar (no PV data in the plan) when I was messing about with the PV estimate in apps.yml. The section is further down the apps.yml, after the rate information (line 351 in mine, but it may be different in the latest default apps.yml on GitHub).
For pv estimate, leave blank for central estimate, or add 10 for 10% curve (worst case) or 90 or 90% curve (best case)
If you use 10 then disable pv_metric10_weight below
pv_estimate: 90
Where it says "leave blank", I found that leaving the value blank, i.e.: pv_estimate: casued the issue you are seeing.
If I commented out the line:
pv_estimate: 90
I found it worked and picked up the correct central figure.
It could be unrelated, but I thought I'd mention it, as it may save some head scratching.
This fixed it! That's great, thanks.
The pv_estimate line I'd left blank, commenting it out resolved the issue.
I'm guessing this is a bug that needs fixing, or just rewording the yaml file to comment out if not needed.
I’ll update the documentation to make it clearer On 14 Apr 2024 at 13:01 +0100, Bobbie Hodgetts @.***>, wrote:
This fixed it! That's great, thanks.
pv_estimate: The pv_estimate line I'd left blank, commenting it out resolved the issue. I'm guessing this is a bug that needs fixing, or just rewording the yaml file to comment out if not needed. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
I've fixed the predbat code so if pv_estimate is set in apps.yaml, but no value is set, then the central estimate is used (per the documentation).
The original code was trying to find "pv_estimateNone" in the solcast forecast which of course failed.
It'll get included in the next code push I do
Closing this old ticket, please open a new one if you have an up to date question