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
Describe the bug
During testing of PR #42/#44/#45 on
development, the connected THOR (charger IDXGJ00003214700CA, firmwareTHOR_22AS-V2.2.16-20240902) returnedG_WorkingMode = "Power Distribution"viaGetConfiguration.This value is not present in the alias map in
configuration.py(_CONFIGURATION_ENTITY_ALIASES["G_WorkingMode"]), which currently only recognizesFast/FastMode,PVlink/PVLinkage, andOffPeak/OffPeakMode. As designed, this results in:known: true, raw value preserved correctly in diagnostics (sensor.growatt_thor_ev_charger_working_modediagnostics entry shows"value": "Power Distribution","enum_label": null)The
Working Modesensor itself (sensor.growatt_thor_ev_charger_working_mode) correctly becomesunavailable, per the intended behavior that unmapped enum values should not be guessedThis is not a bug — it's the intended "fail safe to diagnostics" behavior. Opening this issue to track adding
"Power Distribution"as a fourth recognizedG_WorkingModevalue once its meaning/relationship to the documentedFast/PV Linkage/Off-Peakmodes 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"]inconfiguration.py, plus corresponding translations inen.json/de.json/nl.jsonUpdate
reverse_engineering/thor_22as_capture_findings.mdwith 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