I need some help regarding combining LOW and HIGH modbus registers.
currently iam reading modbus register 7000 and 7001, where 7000 is INT16 and holds LOW values and 7001 is also INT 16 and holds HIGH. I need to combine LOW and HIGH and create a new INT32, how can this be done with template sensor?
Hi, I ran into the same issue while geting wrong data on an orno 515 power meter.
Another solution (not needing to combine the two adresses yourself) is to specify the correct datatype stored in the 2 16bit modbus adress, and specifying the first adress as the reading address like:
data_type: uint32
address: 40960
this will read 16 bits from 40960 and 16 bits from 40961
so iff the low address is high byte data no need to manually read two addresses and combine them yourself.