Skip to content

class ess_mode(Enum): Update required #320

@jonathan0104

Description

@jonathan0104

Describe the current behavior

Incorrect text values assigned in const.py lead to incorrect integers being sent.

class ess_mode(Enum):
"""ESS mode."""

SELF_CONSUMPTION_WITH_BATTERY_LIFE = 0
SELF_CONSUMPTION = 1
KEEP_CHARGED = 2
EXTERNAL_CONTROL = 3

What should be updated or changed?

Update values as per CCGX-Modbus-TCP-register-list-3.50

1=ESS with Phase Compensation
2=ESS without phase compensation
3=Disabled/External Control

Home Assistant (please complete the following information):
Core
2025.3.4
Supervisor
2025.03.3
Operating System
15.0

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleThere has not been activity on this issue or PR for quite some time.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions