stevebuk1 / pv_opt

Home Assistant PV Optimisation for Solis Inverters
MIT License
0 stars 0 forks source link

Dev: IOG charging plan persists until next contract reload #2

Closed stevebuk1 closed 4 months ago

stevebuk1 commented 4 months ago

The IOG charging plan is downloaded on car plugin and at regular times.

However, sensor.pvopt_iog_slots is not cleared of charging plans until the next tariff reload, meaning the previous nights last slot remains displayed till around 4pm which is the first default tariff load.

Fix is to clear the charging plan from sensor.pvopt_iog_slots once timenow exceeds the end of the slot.