springfall2008 / batpred

Home battery prediction and charging automation for Home Assistant, supporting many inverter types
https://springfall2008.github.io/batpred/
114 stars 39 forks source link

ERROR: Exception raised float division by zero #287

Closed wilsondw closed 10 months ago

wilsondw commented 10 months ago

At 23:30 last night, the predbat log shows there was a problem reading from givTCP over REST API. Then on every subsequent run overnight predbat quits with ERROR: Exception raised float division by zero. givTCP log does not show any errors and inverter/battery data is available in Home assistant history. Restarting appdaemon this morning solved the problem and the next predbat run completed ok. Predbat log attached. float div be zero - 1 appdaemon.log

springfall2008 commented 10 months ago

I think I have found the issue, will push a fix today, but the real issue is why REST has stopped working

springfall2008 commented 10 months ago

I've released a fix for this now, I hope it won't happen again

wilsondw commented 10 months ago

Thanks - have updated