# \[APP\]\[Pro\] Modbus - Connect every Modbus devices

**URL:** <https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497>\
**Category:** Apps\
**Tags:** app, homey-pro, advancedflow\
**Created:** [February 20, 2024, 7:13pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497 "2024-02-20T19:13:05Z")\
**Posts on this page:** 20\
**Page:** 17

<div class="post-metadata">

**Author:** ![Andreas\_Kjork](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreas_kjork/32/8354_2.png) [@Andreas\_Kjork](https://community.homey.app/u/Andreas_Kjork)\
**Post date:** [October 5, 2024, 9:03am UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/321 "2024-10-05T09:03:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [October 5, 2024, 12:38pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/322 "2024-10-05T12:38:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Andreas\_Kjork](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreas_kjork/32/8354_2.png) [@Andreas\_Kjork](https://community.homey.app/u/Andreas_Kjork)\
**Post date:** [October 5, 2024, 4:12pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/323 "2024-10-05T16:12:51Z")

</div>

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?

 ![Skärmbild 2024-10-05 181129](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/d/6d97d60ad66c3d2dd7819378cbe5be2392b0b78d.png)

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [October 5, 2024, 6:04pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/324 "2024-10-05T18:04:17Z")

</div>

Yes, 5000 is 50% of your kWp.

---

<div class="post-metadata">

**Author:** ![Andreas\_Kjork](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreas_kjork/32/8354_2.png) [@Andreas\_Kjork](https://community.homey.app/u/Andreas_Kjork)\
**Post date:** [October 5, 2024, 6:27pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/325 "2024-10-05T18:27:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![shadowz7](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shadowz7/32/7945_2.png) [@shadowz7](https://community.homey.app/u/shadowz7)\
**Post date:** [October 11, 2024, 7:52pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/326 "2024-10-11T19:52:26Z")

</div>

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

 ![Screenshot 2024-10-11 212250](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/5/65bca186f703e51853153321d129fea9c41046ff.jpeg)  
 ![Screenshot 2024-10-11 212928](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/5/75053431cdda28e931e9ce887eb363b0d4c170ca.jpeg)

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [October 11, 2024, 8:06pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/327 "2024-10-11T20:06:14Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![shadowz7](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/shadowz7/32/7945_2.png) [@shadowz7](https://community.homey.app/u/shadowz7)\
**Post date:** [October 11, 2024, 8:16pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/328 "2024-10-11T20:16:39Z")

</div>

🫣 works great, thank you

---

<div class="post-metadata">

**Author:** ![Andreas\_Kjork](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andreas_kjork/32/8354_2.png) [@Andreas\_Kjork](https://community.homey.app/u/Andreas_Kjork)\
**Post date:** [October 14, 2024, 10:52am UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/329 "2024-10-14T10:52:08Z")

</div>

Will the new update change anything in the registers?

 ![IMG_6426](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/2/62efae8e88a538d94217b6eac3ca5690d10f7755.png)

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [October 14, 2024, 11:32am UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/330 "2024-10-14T11:32:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Mattias\_H](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mattias_h/32/79184_2.png) [@Mattias\_H](https://community.homey.app/u/Mattias_H)\
**Post date:** [October 16, 2024, 2:00pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/331 "2024-10-16T14:00:56Z")

</div>

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.)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/0/b003c3cf17f9504898e78422f35ea9af4c52a9a8.png)

[https://support.huawei.com/enterprise/en/doc/EDOC1100050690](https://support.huawei.com/enterprise/en/doc/EDOC1100050690)

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [October 16, 2024, 3:43pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/332 "2024-10-16T15:43:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Mattias\_H](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mattias_h/32/79184_2.png) [@Mattias\_H](https://community.homey.app/u/Mattias_H)\
**Post date:** [October 17, 2024, 6:55am UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/333 "2024-10-17T06:55:14Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/d/cd24fd6de33dc26c26626d88a92d882821d07ec8.png)  
tested both to get thease two error messages

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [October 17, 2024, 7:03am UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/334 "2024-10-17T07:03:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Mattias\_H](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mattias_h/32/79184_2.png) [@Mattias\_H](https://community.homey.app/u/Mattias_H)\
**Post date:** [October 17, 2024, 9:06am UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/335 "2024-10-17T09:06:42Z")

</div>

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?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/9/396608f067ed7c52ed3788be7de76d78da9e52a9.png)

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [October 17, 2024, 10:10am UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/336 "2024-10-17T10:10:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Mattias\_H](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mattias_h/32/79184_2.png) [@Mattias\_H](https://community.homey.app/u/Mattias_H)\
**Post date:** [October 17, 2024, 11:53am UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/337 "2024-10-17T11:53:09Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/6/66a55da4842ca0475c9735baa44fe005466f77c4.png)  
Modbus

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [October 17, 2024, 11:59am UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/338 "2024-10-17T11:59:01Z")

</div>

The connection os ok 😊  
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 😇

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [October 17, 2024, 3:18pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/339 "2024-10-17T15:18:49Z")

</div>

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.

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/8/c876bf648c345988768559ae5f051513ffdc5273.png)

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [October 20, 2024, 3:54pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/340 "2024-10-20T15:54:13Z")

</div>

Did it work with device ID 0?

[Previous page](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497.md?page=16)

[Next page](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497.md?page=18)
