Hi,
I have a problem with configuring a Modbus device in HA.
If I test it with Modpoll, it gives the right value back.
In HA there is connection, but the value is false.
Could anyone help? What’s wrong with my settings?
Modpoll:
C:\modpoll>modpoll -t 4:float -r 43000 -a 106 -0 192.168.2.231
modpoll 3.11 - FieldTalk™ Modbus(R) Master Simulator
Copyright (c) 2002-2024 proconX Pty Ltd
Visit https://www.modbusdriver.com for Modbus libraries and tools.
Protocol configuration: MODBUS/TCP, FC3
Slave configuration…: address = 106, start reference = 43000 (PDU), count = 1
Communication…: 192.168.2.231, port 502, t/o 1.00 s, poll rate 1000 ms
Data type…: 32-bit float, output (holding) register table
– Polling slave… (Ctrl-C to stop)
[43000]: -78708.078125
– Polling slave… (Ctrl-C to stop)
[43000]: -78637.609375
Config in HA:
modbus:
- name: Tata
type: tcp
host: 192.168.2.231
port: 502
sensors:- name: Setpoint
unique_id: ‘Setpoint’
slave: 106
address: 43000
data_type: float32
input_type: holding
- name: Setpoint
Thanks!