-
-
Notifications
You must be signed in to change notification settings - Fork 61
No load data #2314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
looking at the logfile would suggest a problem with your source load sensor:
I notice you are only taking data from a single day, a week ago, so if there are problems with that data then it will significantly affect the forecast. Is it possible to increase days_previous to average over more days? Can you include a copy of your apps.yaml and show the graph for the sensor being used for house load, showing the data for the past 8 days to confirm it is OK. |
I was out of town for a long weekend and thought the zero load from my system was a symptom of that unroutine behaviour, however it's not recovering, and this post describes exactly what I'm also seeing on my system. I've not touched any settings within Predbat in many weeks. I double-checked my apps.yaml and confirmed that it was pointed at the correct sensor which is providing history for 14 days. Additionally, I have it configured to look at the previous 4 days. |
Can you provide an updated logfile and apps.yaml configuration please? I would double check the car charging configuration in predbat, the sensor that is configured to report car charging load, and the car charging limit because in the first logfile it appeared that a lot of house load was being ignored because predbat has treated it as car charging |
IMG - Current plan (with 7 days of load data) showing no load data. predbat.log apps.yaml here: https://pastebin.com/yhjQZE6L From what I can see, the car sensor is working correctly. Thanks for your help. |
Thought the problem was resolving itself, as I could see that the plan was looking normal for the next day, however when I've woken up this morning, it's completely failed again. |
If you look at the log the load predictions seem okay, but all your load has been excluded as Car/iBoost. Can you check if the givenergy sensor you have cnfigured is correct, maybe show it on the above chart? car_charging_energy: 2025-05-03 10:25:03.288073: Model filter enabled - Discarding day 4 as it is the lowest of the 4 datapoints |
Is there a clean way I can purge the load data history from predbat? I'm not seeing the behaviour improve, and it's randomly providing the correct loads, whilst in other plan calculations those readings are completely omitted. It's getting to the point now where it's planning an export at 17:00 which will drain my battery a good 7hrs early. |
Yeah my experience is exactly the same. I’ve even changed sensor for the car load but that doesn’t make any difference. |
Don't really understand what you mean by 'purge the load data history from Predbat'. It's up to you as to what days_previous of load_history you choose, so if you want to exclude some days, then set days_previous accordingly. But I think I have found what could be your problem, in your apps.yaml:
Per the car charging documentation and the notes in apps.yaml, car_charging_energy must be a sensor in kWh. The EV sensor you are using appears to be in watts so your EV load would be causing your entire house load to be excluded. Have you set car_charging_energy_scale appropriately? |
Is this a recent change, because I haven't been experiencing this for that last 12 months. |
This sensor was not scaled correctly, and now has been rectified. I did switch that sensor around a month ago so I'm hoping this resolves it. However, after waiting for several plan refreshes I'm still seeing the same zero load behaviour. I'm assuming I'll need to either wait the 4 days for it to be averaged out again? |
no the car energy sensor and being able to scale it has been in predbat for ages
no you shouldn't have to, predbat recalculates the load every other time it runs (i.e. every 10 minutes). can you try commenting out car_charging_energy from apps.yaml and see what that does to the plan to confirm whether the car_charging is what's causing the zero load. would be useful then to see the plan again and logfile |
I swapped back to the old sensor that was intermittent and the plan was normal. I then realised that the sensor I used before was a total energy and not an instantaneous energy. Seems to have resolved it by using the new total energy sensor. Apologies for hijacking your issue @b1nuzz. Hopefully some of it helps. |
Although it’s never been an issue until recently, my EV load sensor was an instantaneous sensor in watts. Hopefully that fixes it. |
Per the documentation: car_charging_energy - Set in apps.yaml to point to a Home Assistant entity which is the daily incrementing kWh data for the car charger. ... You need to configure predbat to point to a Today energy sensor, not a Total sensor or an instantaneous power sensor. And must be in kWh not W ! |
Describe the bug
Predbat is slowly losing load data
Expected behaviour
Load data has been stable but over the last month or so, it has started to disappear. The load sensor is reporting with no issues. If I adjust PB to only look at 1 day history, it will offer load data for 24 hours, and then it drops to 0.0 again. If I offer (up to) 7 days, it is immeditely 0.0 in the load data.
Predbat version
Latest
Environment details
Screenshots
Log file
predbat (1).log
Predbat debug yaml file
The text was updated successfully, but these errors were encountered: