Right now I use the following registers which fully work if there is only one battery:
BATTERY_REGISTERS
Register
Länge
Typ
Beschreibung
37046
2
UINT32
Max Charge Power (W)
37048
2
UINT32
Max Discharge Power (W)
37760
1
UINT16
State of Charge (%)
37762
1
UINT16
Battery Status (Running State)
37765
2
INT32
Charge/Discharge Power (W) — + = Laden, − = Entladen
37780
2
UINT32
Total Charged Energy (kWh)
37782
2
UINT32
Total Discharged Energy (kWh)
37784
2
UINT32
Today Charged (kWh)
37786
2
UINT32
Today Discharged (kWh)
STORAGE_CONTROL_REGISTERS
Register
Länge
Typ
Beschreibung
47075
2
UINT32
Max Charge Power Setting (W)
47077
2
UINT32
Max Discharge Power Setting (W)
47081
1
UINT16
Charging Cutoff Capacity (%)
47082
1
UINT16
Discharge Cutoff Capacity (%)
47086
1
UINT16
Storage Working Mode
47087
1
UINT16
Charge from Grid (0=Disable, 1=Enable)
47088
1
UINT16
Grid Charge Cutoff SoC (%)
47100
1
UINT16
Force Charge/Discharge (0=Stop, 1=Charge, 2=Discharge)
47102
1
UINT16
Backup Power SoC (%)
47242
2
UINT32
Grid Charge Power Setpoint (W)
47299
1
UINT16
Excess PV Energy Use in TOU
47589
1
UINT16
Remote Charge/Discharge Control Mode
Eventually I have to add a second type of driver for this case.
Based on the list on Sun2000 Modbus Register – Debacher-Wiki there are additional registers for Energy storage unit 1 and Energy storage unit 2 which could solve your problem. Right now, I just use the generic ones.
Ok cool! I guess that the issue then. If you implement the second one that might work for me. I added the dongle as its own unit now and it gives to total amount from both batteries, you can see the difference in the picture. Lets see if the dongle is enough, I haven’t thought about my use cases yet, was just so happy today when I found a new potential working app
About the sDongle: The sDongle should show the overall consumption and should be exlcuded from Energy. Otherwise the Homey Energy Dashboard will show wrong values.
Found the issue. My 2 AP’s have upgraded yesterday evening/night but not my router so they didnt get along very well this morning. Upgraded the router and it came alive and have worked witout issues sins. Will see rest of the day and tomorrow. But i dont think it is a issue anymore. Thx for checking for me
Automatically scans your entire network, detects Modbus‑enabled devices, identifies open ports and Unit IDs, and recognises Huawei devices using register‑based fingerprinting
Capability overview for installed devices
Displays live Modbus register data for real‑time diagnostics for installed devices
I guess my setup is in some way strange.. I have had problems with other integrations, we have an app called Tibber in Sweden which deals with the electricity and when they integrated to Huawei it didn’t work with my setup either, I needed to turn of the integration and the developers didn’t find why it behaved so strange
Would be interesting to see if someone else with double inverters and double batteries with one S-dongle could get this to work
@Tjoloho
Now it’s clear that this Unit ID only contains a single module, so using the module‑specific registers would definitely not work from my understanding:
Modbus can be really unreliable. Sometimes you get a response, sometimes the device is busy handling other requests. The best approach is to increase the polling interval on all devices so the regular polling doesn’t block the port while the connection tester is running.
Could you please run the scanning tool several times? Eventually it should return a response.
How old is your SDongle?
I’m asking because I replaced mine about six months ago — the old one from 2021 had become really slow. This post helped me understand how the replacement should be done.**
Hey, aha! Yeah the problems they described in that thread is similar to what I experienced over the years, trying to get modbus working properly, but I always have given up…
I don’t have the option you showed in your Screenshot. I contacted my installer now and he will send me a new one he had laying around.
By 2 inverters, do you also mean, for example, one from Huawei and one from SMA? Does your power from SMA run on the battery?Do you have this problem too?
I have 2 sun2000 inverters and 2 luna2000 batteries. Each battery is connected to respective inverter and one battery is 5kwh and one is 10kwh.. we built this setup to extend the battery capacity over time to 30kwh in total.. and there is one dongle steering both pairs
I’ve added several new features to the Device Tester. You can now check each device individually, and if a connection fails, the previous results for that Unit ID are preserved.
Please check again if you’re able to detect teh second battery on another Unit ID
Hey, tried it out.. Was able to identify all devices on unit 1 but then when I tried to check Unit 2 I couldn’t do so, since they where reserved on unit 1, not sure if it was intended that way?