Setting Min Soc on H1 with ModBus
Posted: Mon Apr 07, 2025 10:32 pm
Hi
I've got a H1 G2 5KW inverter, connected to HA using an Elfin EW11 and the HACS ModBus adapter (https://github.com/nathanmarlor/foxess_modbus).
I've setup an automation to control the Min & Max SoC of my ECS2900 batteries based on the electricity rate from Octopus (IOG). This works fine for the Max SoC, but the Min SoC seem to be exhibiting some odd behaviour... When viewing in HA the Min SoC gets set but then reverts to the original value (10%) within a couple of seconds, as shown in the history:
I'm unsure whether the stat change is actually applied to the inverter and then overridden by something else (perhaps the mode scheduler?), or whether the change in HA is as a result of an internal 'variable' being set in the ModBus and the value is never actually changed on the inverter (and the value then appears to be 'reset' the next time the state is read from the inverter.
Has anyone come across this behaviour, or have a similar automation working for a H1 G2 inverter?
Any help or advice appreciated
I've got a H1 G2 5KW inverter, connected to HA using an Elfin EW11 and the HACS ModBus adapter (https://github.com/nathanmarlor/foxess_modbus).
I've setup an automation to control the Min & Max SoC of my ECS2900 batteries based on the electricity rate from Octopus (IOG). This works fine for the Max SoC, but the Min SoC seem to be exhibiting some odd behaviour... When viewing in HA the Min SoC gets set but then reverts to the original value (10%) within a couple of seconds, as shown in the history:
I'm unsure whether the stat change is actually applied to the inverter and then overridden by something else (perhaps the mode scheduler?), or whether the change in HA is as a result of an internal 'variable' being set in the ModBus and the value is never actually changed on the inverter (and the value then appears to be 'reset' the next time the state is read from the inverter.
Has anyone come across this behaviour, or have a similar automation working for a H1 G2 inverter?
Any help or advice appreciated