Battery charging/discharging power using wrong registers?
Gnarfoz opened this issue · comments
Describe the bug:
It looks like the addresses used for "battery charging start power" and "battery discharging start power" are off by +1?
https://github.com/mkaiser/Sungrow-SHx-Inverter-Modbus-Home-Assistant/blob/main/modbus_sungrow.yaml#L1528
https://github.com/mkaiser/Sungrow-SHx-Inverter-Modbus-Home-Assistant/blob/main/modbus_sungrow.yaml#L1541
The Sungrow hybrid inverter Modbus specification lists "Charging/Discharging Power – Wide range U16" as register 33148, but the addresses for registers are normally offset by -1, so the addresses should be 33147 & 33148, no?
I'm not exactly sure what Sungrow refers to by "wide range", though.
Also, "charging start power" seems to work for me with address 33148.
Your Sungrow inverter:
-
Model: SH10RT-v112
-
The inverter is connected via (mark one)
- ✅ LAN (internal port)
- ❌ WiNet-S (LAN)
- ❌ WiNet-S (WLAN)
-
Are you using a Modbus Proxy (mark one)
- ❌ yes
- ✅ no
- ❌ I don't know what that is
Home Assistant version:
- Version: 2024.5.2
modbus_sungrow.yaml:
- Version/ time stamp : 2023-12-31
- ❌ I ensured to use the most recent version
This part is still identical in the most recent version.
** Inverter Firmware Status:**
- ✅ I made sure that the newest firmware is installed via the installers account
Never mind, I think I made a simple off-by-one error. Register 33148 is not being used at all (still unsure what it represents), and registers 33149 and 33150 are undocumented registers for charging/discharging start power thresholds.