[APP][Pro] Modbus

Thanks, is i possible for you to show an example again to set a charge limit of the battery. I now my Pv-power and i want to set max charge to 50% of my pv-power.

For example, my pv power is 2000w, then i want to set my max chargingpower of the battery to 1000w. the other 1000w i want to export or use for my house.

The charge limit is always the percentage of max PV outpit defined in your Fronius settings.
For 50% of kWp set register 40357 to 5000 (=50%) and register 40349 to 1 (charge settings).

If you want to set a fixed W limit, you have to experiment a bit with the percentage value and check in Fronius mobile app how much is used for battery.

Thanks again. This is so helpful for me.
Where can i find this? “max PV outpit defined in your Fronius settings”

Is register 40357 to 5000 50% of my installed kWp or is it another setting?

Yes, 5000 is 50% of your kWp.

Thanks again i think i mange to do it now. Im gratefull for your help

Irgendwie klappt es bei mir nicht, was muss in Homey im Holding Reg stehen bei z.B. Adresse 5002?


Without any documentation it’s hard to say. But it looks like a HEX value. You can try the decimal value (HEX 5002 = DEC 20482)

:face_with_peeking_eye: works great, thank you

1 Like

Will the new update change anything in the registers?

I can only see WebUI relevated changes.
Fronius won’t change Modbus details because that would break all existing installations :laughing:

Hello. Im new to the Modbus stuff.
I have a huawei sun2000 inverter and i want to get the current sun production into my flows. But i cant wrap my head around everything. Modbus with port 100 is active in the inverter and its set to static IP. so i feel like i have a connection between Homey and the inverter. But when i come to the Flow creation stage i cant seem to get it right… wich one of thease shuld i use and how do i enter the values correctly? Thank you… (if i press play in the attatched flow test picture, the flow fails as of right now.)

https://support.huawei.com/enterprise/en/doc/EDOC1100050690

Based on the list I think the number is an address and not a register.

  • addressing “Address” should be right

For device states, holding register are used,

  • The holding register card should be right

Address 40525 should be right for active power

But: Data type is U32, so you should select the UINT32 datatype in the flow card.

What error is displayed in the flow? If you test the flow, hover over the red flow card bottom with your mouse.


tested both to get thease two error messages

Sorry, I took the wrong line. 40525 is defined as I32, So INT32 is correct.
And perhaps the documentation uses "address’ as title, but they mean register. So you can try addressing “Register”. In this case, 40524 is used internally as address.

I appreciate the fast response!

Still have issues, First of all… Lets make shure i have it setup correctly.

  1. I have set Static IP to the Inverter x.x.x.81 Is it Local Adress i use in Homey’s Modbus device?
  2. The odbus ID is fixed to “100” in the inverter so thats the adress i put in Homey.

Is this correct so far?

If your dongle is reachable locally, then your IP is ok.
What errors do you get? Connection error or Modbus specific errors?

image
Modbus

The connection os ok :blush:
Based on the message I think the address is wrong (you can try the addresses arpund (+1 and -1).
Or it is not a Holding Register. Not easy to say without readong the whold document :innocent:

Ok, back to start…
Which device is connected via ModbusTCP?
Do you want to access the registers of your inverter? Then you should use registers from page 28 ff. from the manual.
If your device is using a “SmartLogger”, you can start at page 11.
For this access you have to use device ID 0. The register 40525 seems to be one from SmartLogger.

Did it work with device ID 0?