From 4bfde7192bf05c5771e0289d05c80c927b853d3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Z=C3=A1hradn=C3=ADk?= Date: Tue, 11 Feb 2020 12:04:33 +0100 Subject: [PATCH] Update Modbus binary sensor docs (#12036) --- .../binary_sensor.modbus.markdown | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/source/_integrations/binary_sensor.modbus.markdown b/source/_integrations/binary_sensor.modbus.markdown index 8adc0dd0d89..7ce37eddd52 100644 --- a/source/_integrations/binary_sensor.modbus.markdown +++ b/source/_integrations/binary_sensor.modbus.markdown @@ -18,20 +18,21 @@ To use your Modbus binary sensors in your installation, add the following to you # Example configuration.yaml entry binary_sensor: - platform: modbus - coils: + inputs: - name: Sensor1 hub: hub1 slave: 1 - coil: 100 + address: 100 - name: Sensor2 hub: hub1 slave: 1 - coil: 110 + address: 110 + input_type: discrete_input ``` {% configuration %} -coils: - description: The array contains a list of coils to read from. +inputs: + description: The array contains a list of coils and discrete inputs to read from. required: true type: [map, list] keys: @@ -48,10 +49,14 @@ coils: description: The number of the slave (Optional for TCP and UDP Modbus). required: true type: integer - coil: - description: Coil number. + address: + description: Coil or discrete input Modbus address. required: true type: integer + input_type: + description: Modbus input type (coil, discrete_input), default coil. + required: false + type: string device_class: description: The [type/class](/integrations/binary_sensor/#device-class) of the binary sensor to set the icon in the frontend. required: false