Skip to content

Undocumented G_WorkingMode value "Power Distribution" causes sensor to be unavailable #46

Description

@bobbesnl

Describe the bug

During testing of PR #42/#44/#45 on development, the connected THOR (charger ID XGJ00003214700CA, firmware THOR_22AS-V2.2.16-20240902) returned G_WorkingMode = "Power Distribution" via GetConfiguration.

This value is not present in the alias map in configuration.py (_CONFIGURATION_ENTITY_ALIASES["G_WorkingMode"]), which currently only recognizes Fast/FastMode, PVlink/PVLinkage, and OffPeak/OffPeakMode. As designed, this results in:

  • known: true, raw value preserved correctly in diagnostics (sensor.growatt_thor_ev_charger_working_mode diagnostics entry shows "value": "Power Distribution", "enum_label": null)

  • The Working Mode sensor itself (sensor.growatt_thor_ev_charger_working_mode) correctly becomes unavailable, per the intended behavior that unmapped enum values should not be guessed

This is not a bug — it's the intended "fail safe to diagnostics" behavior. Opening this issue to track adding "Power Distribution" as a fourth recognized G_WorkingMode value once its meaning/relationship to the documented Fast/PV Linkage/Off-Peak modes is confirmed (possibly a fourth Growatt working mode, or a firmware/model variant naming difference).

Next steps:

  • Confirm via Growatt app/web UI or further captures what "Power Distribution" corresponds to on this charger model

  • If confirmed as a distinct mode, add it to CONFIGURATION_ENTITY_OPTIONS["G_WorkingMode"] and _CONFIGURATION_ENTITY_ALIASES["G_WorkingMode"] in configuration.py, plus corresponding translations in en.json/de.json/nl.json

  • Update reverse_engineering/thor_22as_capture_findings.md with this observed valueIssue aanmaken in bobbesnl/growatt_thor met titel "Undocumented G_WorkingMode value "Power Distribution" causes sensor to be unavailable"?

Steps to reproduce

nb

Expected behavior

nb

Relevant log output

Home Assistant version

nb

Integration version

nb

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions