Skip to content
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

Charge status is not set when in a charge slot until after midnight #369

Open
stevebuk1 opened this issue Jan 11, 2025 · 3 comments
Open

Comments

@stevebuk1
Copy link
Collaborator

stevebuk1 commented Jan 11, 2025

When charging has started and Pv_opt recognises it is in a charge slot, this message is shown:

10/01, 23:30:34     INFO: Currently in charge/discharge/hold slot
10/01, 23:30:34     INFO: Current charge/discharge window ends in 419.4 minutes.
10/01, 23:30:34     INFO: Charge status is not active, setting start time value now
10/01, 23:30:34     INFO: Setting start time to 10-Jan 23:30 GMT
10/01, 23:30:34     INFO: Setting end time to 11-Jan 06:30 GMT
10/01, 23:40:14     INFO: Currently in charge/discharge/hold slot
10/01, 23:40:14     INFO: Current charge/discharge window ends in 409.8 minutes.
10/01, 23:40:14     INFO: Charge status is not active, setting start time value now
10/01, 23:40:14     INFO: Setting start time to 10-Jan 23:40 GMT
10/01, 23:40:14     INFO: Setting end time to 11-Jan 06:30 GMT

This repeats every optimiser run.
The status reported by the third line is incorrect, and as a consequence the start time is written and continually incremented on each optimiser run.

At midnight, the issue then corrects itself, charge status is shown as active and the write to the start time is omitted:

11/01, 00:00:38     INFO: Currently in charge/discharge/hold slot
11/01, 00:00:38     INFO: Current charge/discharge window ends in 389.4 minutes.
11/01, 00:00:38     INFO: Charge status is active, not setting start time
11/01, 00:00:38     INFO: Setting end time to 11-Jan 06:30 GMT

This then continues correctly until charging finishes at 6.30am.

Expected behaviour would be that once a charge window has started the start time is not written again to the inverter, this avoids the risk of EEPROM/FLASH wearout due to continual updates. This functioned correctly in v3.x.x.

pv_opt.log
pv_opt.log.1.log

@fboundy
Copy link
Owner

fboundy commented Jan 12, 2025

I think this is because the Solis inverter can't cope with slots spanning midnight. I had to fix it before but it must have got lost in the re-factor of solis.py.

fboundy added a commit that referenced this issue Jan 12, 2025
@fboundy
Copy link
Owner

fboundy commented Jan 12, 2025

See latest commit to patch

@stevebuk1
Copy link
Collaborator Author

Thanks, have also added a fix for #372 into patch and will trial overnight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants