Skip to content

Conversation

@thybag
Copy link

@thybag thybag commented Aug 17, 2025

I have attempted to clean up the list of energy_storage_control_switch modes for inverters that support the timed charge/discharge, giving them more consistent names as well as attempting to order them more logically.

As part of this I've also attempted to add a few missing options based on the below table

Bit 0: (1)unused (always 1)
Bit 1: (2) Time of Use
Bit 2: (4) Off Grid Mode
Bit 3: (8) Battery Wake-Up
Bit 4: (16) Backup
Bit 5: (32) Grid Charging
Bit 6: (64) Feed in Priority

Key changes

  • List is reordered and rename to be more consistent. Modes are grouped together, timed use always comes before allow grid, and it prefers the allows before the no options, which is hopefully a bit more logical. The backup groups are also now the same.
  • Swapped to using string keys as well the other inverter options. This fixes the bug were inverter modes don't show correctly as discovered by @stevebuk1 Energy Storage Control Switch Status hultenvp/solis-sensor#443 (comment)
  • Adding the following missing modes
    • 19 Self-Use with Backup - Allow Timed Charge/Discharge, No Grid Charging
    • 66 Feed-in Priority - No Grid Charging, Allow Timed Charge/Discharge,
    • 80, 82, 112 114 Which are the Feed-in Priority with Backup models (some were available for inverters without the time charge/discharge but were missing for this model.

@fboundy - Any chance I could bother you to sanity check my work on the extra modes? I believe these all make sense (and match the options available in solis), but wasn't sure if there was a reason some were avoided initially.

@thybag
Copy link
Author

thybag commented Aug 20, 2025

Let me know if you'd like me to make any further tweaks

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

Successfully merging this pull request may close these issues.

1 participant