fboundy / pv_opt

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

PV Opt generating negative discharge windows that don't match end time shown in UI #198

Closed ThomasPrior closed 6 months ago

ThomasPrior commented 6 months ago

Describe the bug Since the DST change I've seen a few odd charging windows.

pv_opt log output shows:

17:08:08 INFO: end : 04-Apr 17:00 BST

17:08:08 INFO: start : 04-Apr 17:07 BST

This is displayed in HomeAssistant as finishing an hour later:

image

The inverter receives the end time of 17:00 instead of the expected 18:00, making the discharge window -8 minutes.

Screenshot_20240404-171206_SolisCloud

Time on inverter seems to be set correctly.

Screenshot_20240404-171319_SolisCloud

pv_opt.log

ThomasPrior commented 6 months ago

Adding second log with the same behaviour.

As shown in HomeAssistant: Start 17:20 End: 18:00

As shown in logs and on inverter: Start: 17:20 End: 17:00

pv_opt.log

jacekowski commented 6 months ago

It could be the same thing i'm seeing in #197

ThomasPrior commented 6 months ago

Interesting, I saw what I thought to be a very poor plan for today (discharge everything, all day) and that's what led me to finding this.

Also on fixed 15p/kWh of export.

fboundy commented 6 months ago

This should be fixed in 3.14.0. There's a beta version out now if you want to test it. Best wait for beta-4 actually. Fixes another couple of bugs.

fboundy commented 6 months ago

It could be the same thing I'm seeing in #197

Not sure these are the same. There is a "time zone" issue which I think I've fixed but I think at least part of what is happening in #197 is that there is a cost benefit to forced discharging but it's not intuitive.

ThomasPrior commented 6 months ago

Thank you again for your prompt attention on this and previous issues.