fboundy / pv_opt

Home Assistant PV Optimisation for Solis Inverters
Other
27 stars 6 forks source link

Optimiser frequency setting not working as expected #222

Closed ElectricMolehill closed 6 months ago

ElectricMolehill commented 6 months ago

Describe the bug When I set optimiser frequency to 30min the optimiser seems to be running one cycle immediately after another instead of once every 30mins as I expected

To Reproduce Steps to reproduce the behavior: Set optimiser frequency to 30mins

Expected behavior Optimiser runs once every 30mins

Additional context Version 3.4.6

stevebuk1 commented 6 months ago

Most (if not all) changes to any of the settings in HA will cause PV_opt to perform an optimiser run immediately. After that though, the optimiser frequency time setting should work. I've just tested mine and it appears to work as intended, noting that it is aligned to full hour or 1/2 hour boundaries. E.g. if you change the optimiser frequency to 30 minutes at 21:10 you get the following:

ElectricMolehill commented 6 months ago

I tried it again and the optimiser is working OK when set to 30mins now. Not sure what I was doing to make it cycle continuously like that but it looks like user error