# \[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:** 19

<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:** [December 10, 2024, 9:05pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/361 "2024-12-10T21:05:53Z")

</div>

Can you please check if that’s possible and working with the Fronius web portal? Just to check if it’s working in general.

---

<div class="post-metadata">

**Author:** ![Frank\_Risch](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frank_risch/32/80319_2.png) [@Frank\_Risch](https://community.homey.app/u/Frank_Risch)\
**Post date:** [December 11, 2024, 7:12pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/362 "2024-12-11T19:12:38Z")

</div>

I Need this:

> **[Modbus Protocol](https://www.modbustools.com/modbus.html#function16)**
>
> Modbus tools for test, simulation and programming

Uint16 or int16 dont work.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/b/2b302765a17a60fb83600083ee6953a062a9c9a1.jpeg)

This works also with high digits. This example is: set Time to 2200. Only works with converting 2200 to 4228396040.

---

<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:** [December 13, 2024, 2:33am UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/363 "2024-12-13T02:33:35Z")

</div>

I Will try. Another problem. I cant set chagring speed.

Before the new instsallation it was no problem to first write to 40356 to set the speed, and to 40349 value 2.

Its like the command charging works but not the speed. My batterys are getting charged att full speed so that part works.

---

<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:** [December 13, 2024, 7:06am UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/364 "2024-12-13T07:06:47Z")

</div>

Yes, I believe you 😉

But I siltt would like to see if the invertier itself is able to change this. Perhaps it’s a limitation in case of having 2 devices. I know Fronius has limitations for a second inverter, so perhaps also for a second battery.

Can you set the charging limitaions in this view?

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/3/5313a5ba6f819c36403b7c2787080ebb1c1653e2.png)  
If not, it’s a case for Fronius support.

And you can check the inverter settings if the kWp is set correctly.

 ![grafik](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/6/368ea58d738d1c025709585298031614afac867e.png)

---

<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:** [December 13, 2024, 9:58am UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/365 "2024-12-13T09:58:40Z")

</div>

Yes. I can charge and discharge via battery management in the inverter settings.

In my flows i set a fixed watt value. top flow, charging with X watt depending on other usage in my house. but my battery charges at full speed and ignores the fixed watt i write in the first card

Middle → normal settings, works great

bottom → paus battery. works great

the other flow is my max discharge when my car is charging, does not work, i cant set a fixed watt anymore to lower my dischargespeed

 ![Skärmbild 2024-12-13 105756](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/9/e93a0fd9f5f26d2c4a3a1e54e017bb9be2989817.png)

 ![Skärmbild 2024-12-13 105403](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/1/7165c08b9f0614c09e36cce1857fff0629cd5b1f.png)

 ![Skärmbild 2024-12-13 102824](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/d/9d1d7dcd28aa8501707b0a1a4e14a4facc1cae20.png)  
 ![Skärmbild 2024-12-13 102959](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/e/ee2cd3f3338e0684f77ce5a520bed6965962656d.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:** [December 13, 2024, 10:18am UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/366 "2024-12-13T10:18:28Z")

</div>

Thanks. I have to do some research. I haben’t seen differen Modbus registers for tis case yet.

A hint in addition:  
The value you set in the flow card to restrict charging is not Ampere. It’s the integer variant for percentage ot kWp.  
500 = 5% of max solar production defined in your inverter settings.

---

<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:** [December 13, 2024, 10:28am UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/367 "2024-12-13T10:28:35Z")

</div>

Thats strange, before i upgraded with another battery tower i was able to set a fixed watt. for example 500w when i charged my car but not after the installation. I have the same amount of solarpanels and have not changed any settings in my inverter. I changed from 500 to 200 and now it works, i only discharge with ca 500w. So i guess that solves the problem.

 ![Skärmbild 2024-12-13 112637](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/d/ad7779ce08f21d836b805b5785e3e8a81a6157d0.png)

---

<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:** [December 13, 2024, 11:05am UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/368 "2024-12-13T11:05:19Z")

</div>

I will try this logic to set the correct value.

 ![Skärmbild 2024-12-13 120244](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/0/602e91420760f4db43ceb3b63f45718d6d444c0b.png)

house - car charging.

house / size of my solarpanels and convert to the right value

---

<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:** [December 13, 2024, 11:19am UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/369 "2024-12-13T11:19:43Z")

</div>

If you know that 500 is ~500W for you I would just use this.

---

<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:** [December 13, 2024, 1:19pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/370 "2024-12-13T13:19:34Z")

</div>

So, for charging, does the same apply? That is, should it be a percentage that needs to be specified and not a fixed rate in watts?

---

<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:** [December 13, 2024, 1:28pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/371 "2024-12-13T13:28:01Z")

</div>

That for all charge/discharge values.  
In the Fronius Excel file you will find a description like “Percentage of max charging rate” or similar in column G. And as valid values, a ranage of -100% to +100% is shown in column K

---

<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:** [December 15, 2024, 12:00pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/372 "2024-12-15T12:00:30Z")

</div>

I have made some calculations. I might have gotten it wrong the first time. I thought that the charging speed depended on the size of my solar panels (19.78kWp) , but my calculations show that it actually depends on the installed battery capacity (25.6 kWh).

-500 charges with ca 1,3  
-1000 charges with ca 2,5  
-1500 charges with 3,8  
-2000 charges with 5,1

and -10000 ca 25.6

---

<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:** [December 15, 2024, 12:42pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/373 "2024-12-15T12:42:16Z")

</div>

Thanks for the updated. Based on Fronius description I also thought it’s the panel kWp size defined in inverter settings. Good to know 👍

Wow, 25kWh battery is great. I have 10kWh (tower with 4 bricks). It’s getting too small these dark days.

---

<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:** [December 15, 2024, 1:00pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/374 "2024-12-15T13:00:06Z")

</div>

Thats probably why the value was correct before my upgrade to two full towers. I had 10 kWh before.

I felt the same, 10 kWh cant take so much of the expensive hours but now i can use my battery for ca 10 hours a day. I have s flow that calculate my house consumption over a week. So depending of how much we use the hours can go up and down.

Dont mind the first 24h i the picture it was just a value a set the first time. But the picture shows how many of the expensive hours i tell my battery to discharge to my house.

 ![IMG_6738](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/3/837180b12c758938336348e40381b6e1d99e3d8c.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:** [December 15, 2024, 1:05pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/375 "2024-12-15T13:05:00Z")

</div>

Yea, I also charge battery in cheap periods. But last days got expensive. And if you have higher usage (washing etc). I need to charge at noon again to get over the expensive hours at evening.  
But I’m sure the investment will not pay off only to skip expensive hours in winter 🤔

---

<div class="post-metadata">

**Author:** ![Glenn\_Stian\_Maeland](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/glenn_stian_maeland/32/123768_2.png) [@Glenn\_Stian\_Maeland](https://community.homey.app/u/Glenn_Stian_Maeland)\
**Post date:** [December 31, 2024, 3:12pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/376 "2024-12-31T15:12:50Z")

</div>

@RonnyW  
I add here my printscreen from my flows…the upper value have positive (+) value and the two below has negative (-) vales… and they just show 65523

 ![Modbus print screen](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/2/723cf3be94f9d3ff7fb6f3691e504c2e10b53c57.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:** [December 31, 2024, 3:25pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/377 "2024-12-31T15:25:50Z")

</div>

Hi,

what value should be right in that case?  
I would say your Modbus device uses a LE encoding, perhaps a mixed one where the 16byte registers are swapped.  
You can try one of the INT32LE or INT32LER if that reports the right number.

And INT64 should be possible for reading. For writing I don’t have matching registers to test. 64bit is a bit ugly because you have a lot of BE/LE variants.

Ronny

---

<div class="post-metadata">

**Author:** ![Glenn\_Stian\_Maeland](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/glenn_stian_maeland/32/123768_2.png) [@Glenn\_Stian\_Maeland](https://community.homey.app/u/Glenn_Stian_Maeland)\
**Post date:** [December 31, 2024, 3:40pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/378 "2024-12-31T15:40:17Z")

</div>

I tried the Int32 LE and the Int32 (16bit word LE) with the same result. The correct value should be the outdoor temperature, around -2,5dgrC.

The first value in the picture are from the same sensortype, but indoor use, and the temperature shows the correct value… I have also tried a lot of other sensor adresses and all sensor adress with negative (-) valuea are not read correct (the same readings 65523, for all of them)

---

<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:** [December 31, 2024, 3:49pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/379 "2024-12-31T15:49:22Z")

</div>

Can you please read the value with type BYTE to see what’s the real register value.

INT32 can’t be right for 2,5 value. I think it’s stores with a shifted decimal point like 250.

---

<div class="post-metadata">

**Author:** ![Glenn\_Stian\_Maeland](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/glenn_stian_maeland/32/123768_2.png) [@Glenn\_Stian\_Maeland](https://community.homey.app/u/Glenn_Stian_Maeland)\
**Post date:** [December 31, 2024, 3:50pm UTC](https://community.homey.app/t/app-pro-modbus-connect-every-modbus-devices/104497/380 "2024-12-31T15:50:52Z")

</div>

here is the value with “BYTE” reading

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

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

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