Hi,
I have a boiler that has an RS485 modbus interface, and I have connected it to my network using an RS485 to ethernet interface.
Because the modbus implementation on this boiler is not standard, it sends too many bytes back and I get errors in the log.
See Modbus device : too many bytes - #4 by nikito7
I want to solve it by treating it as a TCP sensor and not a Modbus sensor.
I just don’t know how to configure the template, so that it uses the 3rd and 4th byte of the response, as an INT, which is the requested temperature (x10).
The command to query the modbus register is fixed.
So I have :
- platform: tcp
name: Test temperatuur boven
host: 192.168.2.245
port: 20108
timeout: 5
payload: "\x0a\x03\x00\x12\x00\x01\x25\x74"
value_template: ?????
- Can I enter the payload like this (in hex bytes)?
- How do I enter the value_template to evaluate bytes 3 and 4?