Modbus Binary Sensor
The modbus
binary sensor allows you to gather data from Modbus coils.
To use your Modbus binary sensors in your installation, add the following to your configuration.yaml
file:
# Example configuration.yml entry
binary_sensor:
- platform: modbus
coils:
- name: Sensor1
slave: 1
coil: 100
- name: Sensor2
slave: 1
coil: 110
Configuration variables:
- coils array (Required): The array contains a list of coils to read from.
- name (Required): Name of the sensor.
- slave (Required): The number of the slave (Optional for TCP and UDP Modbus).
- coil (Required): Coil number.