The value stored in the Modbus holding register is not the actual value (unit) of the measurement.
To get the “mA”-value, the integer value from Modbus holding register hast to be trasformed by calculation (value*20/4095)
I have tried different solutions from various forums, but didnt manage to implement the calculation.
I assume that it is just one line of appropriate code, but i am obvisouly to nooby.
Maybe someone can help me with this?
Hi Jonas,
did you solve your problem?
I have the same issue at the moment and before starting a new thread I wanted to ask if you did your correction factor calculated correctly in the mean time.
I also only need to apply a static factor (raw_value / 5 * 3)
This are my first steps in HA…
If somebody is interested how to read and calculate values, here is my code. This might not be very elegant nor done in a beautiful way. I am working with HA since 4 hours, so I would call myself a newbie.
I wanted to read the Values out of a Janitza UMG96:
Hallo Matthias,
I am also new at HA - I wanted to read values out of Janitza UMG 508.
The conversion between RS485 and ETH is a Waveshare RS485 to ETH converter.
Now I get hundrets of packets each second - they seem to be empty.
Could you help me to connect to the UMG 508 (it´s the same interface like UMG 96.
Setting at Janitza are RS485: Modbus Master/Gateway, adress is 200, Baudrate 9600.
Could you help please with more informations or manuals how to read the data.
Thanks in advance,
nobi