Skip to content

Conversation

@Abardenn
Copy link

The AC charger system state is stored internally as a numeric enum value, not a mapped string.

The previous switch logic compared the state against string values ("Initializing", "Fault", etc.), which caused the switch to never correctly reflect the charger state.

This change updates is_on_fn to rely on the numeric system state values reported by the charger. Currently treating states 3, 4, and 5 as ON.

This aligns the AC charger switch behavior with how other switches (e.g. plant_start_stop) determine their state.

Verified to work correctly after Modbus refresh on Home Assistant with a Sigenergy EVAC system.

The AC charger system state is stored internally as a numeric enum value, not a mapped string.

The previous switch logic compared the state against string values
("Initializing", "Fault", etc.), which caused the switch to never
correctly reflect the charger state.

This change updates is_on_fn to rely on the numeric system state values reported by the charger. Currently treating states 3, 4, and 5 as ON.

This aligns the AC charger switch behavior with how other switches
(e.g. plant_start_stop) determine their state.
@TypQxQ TypQxQ changed the base branch from main to Beta-v.1.1.12 December 29, 2025 17:46
@TypQxQ
Copy link
Owner

TypQxQ commented Dec 29, 2025

Great!
I'm releasing this as a Beta

@TypQxQ TypQxQ merged commit a560117 into TypQxQ:Beta-v.1.1.12 Dec 29, 2025
2 checks passed
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.

2 participants