Be careful! Use the manufacture Modbus reference.
Change only those registers for which the meaning is known.
Read the register before and remember it’s value to be able to reset the value to a default value.
A description and a use case reading and writing register of a Fronius inverter is available on my Homepage:
There you can register for a newsletter to get updated when a new blog post is published.
And you can ask for further blog posts about examples, HowTo’s and technical insights.
this is nice!
Currently I’m running some commands on a Huawei inverter via python scripts via huawei_solar module.
It would be nice to have it directly in Homey.
I’ll read the documentation and come back with results.
will check it , did you solve all these variations of registers type, mostly (u)int16 are easy but (u)int32 , float32, uint64 are hard with LE and BE plus everyone is doing it differently.
Added numeric rersult token to “read register” flow card.
You can use the numeric results now directly in other flow cards.
And as hint a use case for the SCALE type:
If you have INT values representing numeric decimal values, then you will find a scale register in addition.
The scale represents a factor for decimal point shift.
If the register value is -2, it means you have to calculate a value 10000 * 10^-2 to get the real value of 100,00.
If you read a register of type sunssf as INT16, you will get “-2” as result.
Hi, i am having still problems to read out modbus.
I have also Huawei Dongle Dongle-TA22B0293914
and SUN2000-10KTL-M1 converter. I want to read out the PV active power. It should be a 32-bit signed integer on adress 32095 with size 2. But it doesn’t work at all. I always get the error code Encountered an unexpected error value: ‘[object Object]’
Who can help me? Someone else using Huawei?
Thats the flow card:
Second Question: Does anyone know the register for the SOC of the battery?
Thanx for your examples. I’ve learned much of it. But now I realize a huge new problem:
I have 18,4 kwpeak of solar capacity. That is why I have two inverter! I have first read out the active power of only one inverter and i wondered why the watt number is so low compared to thefusion solar app. Now i realized that on ID 1 there is the inverter one with 8 kW and on ID 2 is the second inverter with 10 kW. The battery is also on inverter 2. Is that the reason I wasn’t able to read out battery SOC?
Now i have add a second modbus-module with the same IP but with ID2. But since than, i am not able to read out anything. Is it because its now dark outside and the inverters are sleeping? Or is the Modbus/TCP App not able to handle 2 different IDs???
That might be an interesting question directly to the developer! @RonnyW !