[solarman] deye_hybrid definition: deduplicate A6 register - #21409
[solarman] deye_hybrid definition: deduplicate A6 register#21409dilyanpalauzov wants to merge 1 commit into
Conversation
Solarman logger is a wrapper around Modbus. The A6 register cannot stand at the same time for “Micro-inverter Power”, “Gen-connected Status” and “Gen Power”.
There was a problem hiding this comment.
Pull request overview
This pull request updates the Solarman binding’s deye_hybrid device definition to avoid mapping the same Modbus register (0x00A6) to multiple, conflicting metrics, aligning the definition with model-specific register semantics.
Changes:
- Removed the
Gen-connected Statusmetric that previously read from register0x00A6. - Removed the
Gen Powermetric that previously read from register0x00A6. - Left
0x00A6mapped only toMicro-inverter Powerindeye_hybrid.yaml.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
The file deye_hybrid.yaml is copied from https://github.com/kbialek/deye-inverter-mqtt/blob/main/ha_definitions/deye_hybrid_ha.yaml and from https://github.com/StephanJoubert/home_assistant_solarman/blob/main/custom_components/solarman/inverter_definitions/deye_hybrid.yaml . I asked at kbialek/deye-inverter-mqtt#312 why the register |
Solarman logger is a wrapper around Modbus. The A6 register cannot stand at the same time for “Micro-inverter Power”, “Gen-connected Status” and “Gen Power”.
According to https://marklabs.pl/en/deye-modbus-complete-register-list/ for the same register different Deye models provide different information. Deye Modbus registers are described at https://github.com/kbialek/deye-inverter-mqtt/blob/main/README.md . “Deye SG01LP1” is “deye_hybrid” and https://github.com/kbialek/deye-inverter-mqtt/blob/main/docs/metric_group_deye_hybrid.md says A6 register is “Micro-inverter Power”. Therefore the A6 register is neither “Gen-connected Status” nor “Gen Power”.
However I have no idea what “Micro-inverter Power” means for an inverter, which is not microinverter.
Utilizing A6 for different purpose should be done by providing a different YAML device definition.