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

Independent minimum SoC level for pv_opt, to prevent Inverter becoming idle #216

Closed
punkymuzzle opened this issue Apr 24, 2024 · 17 comments
Closed
Labels
enhancement New feature or request

Comments

@punkymuzzle
Copy link

punkymuzzle commented Apr 24, 2024

Is your feature request related to a problem? Please describe.
Currently working with the dev on Solax X1 AC integration, which is going well.
Link to thread Here

When pv_opt is setting a charging schedule overnight, and the start SoC is 10% (default for the inverter), the inverter is going idle before the charging schedule is being written to it. Pv_opt seems to delay writing the charging schedule until just before the charging slot, but by that time the inverter has discharged to it's minimum (10%) and has become idle, thereby not accepting any modbus writes to charge.
I have tried to fix this by running an automation in HA to change the mode to "backup mode" when SoC is 13% or lower, but HA overwrites this and I have a battle between it and the automation and I see it flip-flopping between "Backup mode" and "Self use Mode" but with no charging times.
image

Here's what is set for tonight - based on previous experience this will fail:
image

As a work around last night, I had to change the pv_opt status to read only, then set a charging schedule through the Solax app so it charged overnight; then re-enable pv_opt this morning.
Whilst it is possible to continue this way, it's not manageable long term and defeats the object of an automatic charging approach.

Describe the solution you'd like
There are a number of ways to fix this (send the charge plan to the inverter earlier, send the "wake up" command to the inverter prior to setting the charge etc) but I think the easiest way would be to have a setting where we can set the minimum SoC that pv_opt uses.
Then, as this SoC is reached, pv_opt sends a command to the inverter to stop it discharging, thereby staying above the 10% level and preventing the inverter becoming idle.
In my case above, when it reached 13% it would stop discharging and would remain active so pv_opt could write the next charge for 03:00 - 05:00

Describe alternatives you've considered
Alternatives as above, and part of the link above.

Additional context

Automation:

alias: Keep Inverter and battery from going idle ver 2
description: Keep Inverter and battery from going idle
trigger:

  • platform: time_pattern
    minutes: /10
    condition:
  • condition: sun
    before: sunrise
    after: sunset
  • condition: numeric_state
    entity_id: sensor.solax_battery_soc
    below: 13
    action:
  • device_id: 5eced548962c60b81bd3a91b8a392f41
    domain: select
    entity_id: e8f01dbc8553c8261d0b33d05550d36b
    type: select_option
    option: Back Up Mode
    mode: single
@fboundy
Copy link
Owner

fboundy commented Apr 27, 2024

Been busy with other things but will look at this as soon as I can

@fboundy fboundy added the enhancement New feature or request label Apr 27, 2024
@punkymuzzle
Copy link
Author

Awesome, thank you

@punkymuzzle
Copy link
Author

Hi, any update on this please?
Thank you very much

@silverhouse3
Copy link

@punkymuzzle do you have example of your files as I've got an X1 and its just a bunch of errors on the dashboard 😁

@punkymuzzle
Copy link
Author

@silverhouse3 there are a couple of (long) threads which should contain most of what you need:
#149
#188

I have been working with @fboundy to get the X1AC working with pv_opt.
It's mostly working now (thanks to @fboundy 's awesome programming skills), the only outstanding issues I have are:

  1. When the inverter discharges to 10% SoC it goes idle so pv_opt can't write to it (enhancement Independent minimum SoC level for pv_opt, to prevent Inverter becoming idle #216 raised)
  2. No way of ringfencing my 16:00 - 19:00 peak slot so the batteries are guaranteed full just before the peak time is reached (no official request yet, will need to raise this)

Hope this helps - let me know if you need anything further after reading the above links.

@punkymuzzle
Copy link
Author

Hi, any update on this please?
Thank you very much

@fboundy
Copy link
Owner

fboundy commented May 20, 2024

Finally found time tio have a look at this. Would it help to have a "Wake-Up SOC" parameter so that PV-Opt always tries to keep the SOC above this level?

@punkymuzzle
Copy link
Author

punkymuzzle commented May 20, 2024 via email

@punkymuzzle
Copy link
Author

punkymuzzle commented May 21, 2024 via email

@fboundy
Copy link
Owner

fboundy commented May 23, 2024 via email

@punkymuzzle
Copy link
Author

punkymuzzle commented May 23, 2024 via email

@punkymuzzle
Copy link
Author

punkymuzzle commented May 24, 2024 via email

@fboundy
Copy link
Owner

fboundy commented May 24, 2024 via email

@punkymuzzle
Copy link
Author

punkymuzzle commented May 24, 2024 via email

@punkymuzzle
Copy link
Author

Hi
Is there any update on this please?
Thanks very much

@fboundy
Copy link
Owner

fboundy commented Jun 2, 2024 via email

@punkymuzzle
Copy link
Author

punkymuzzle commented Jun 2, 2024 via email

@fboundy fboundy closed this as completed Jun 2, 2024
@fboundy fboundy mentioned this issue Jun 2, 2024
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants