I want to used modbus in homeassistant. but I can not find Read Discrete Input.
follow is available:
Modbus Binary Sensor 01 Read Coils
Modbus Sensor 03 04 read holding Input registers
Modbus switch 05 write Single Coil
I have a modbus system that have the following configuraton:
Coils, addresses that starts with 0, home assistant = binary sensor, coils
Inputs, addresses that starts with 1, home assistant = ?
Input Registers, addresses that starts with 3, home assistant = sensor, register_type = input
Holding Registers, addresses that starts with 4, home assistant = sensor, register_type = holding
So how do you configure HA to read the 1xxxxx addresses? “Discrete Input”?
Maybe it will be useful to someone - it was about input_type: discrete_input - then the client sends the function No. 2 instead of No. 1 and it’s OK. Working example below.