Skip to content

Commit 4bfde71

Browse files
authored
Update Modbus binary sensor docs (#12036)
1 parent d20c4dc commit 4bfde71

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

source/_integrations/binary_sensor.modbus.markdown

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,21 @@ To use your Modbus binary sensors in your installation, add the following to you
1818
# Example configuration.yaml entry
1919
binary_sensor:
2020
- platform: modbus
21-
coils:
21+
inputs:
2222
- name: Sensor1
2323
hub: hub1
2424
slave: 1
25-
coil: 100
25+
address: 100
2626
- name: Sensor2
2727
hub: hub1
2828
slave: 1
29-
coil: 110
29+
address: 110
30+
input_type: discrete_input
3031
```
3132
3233
{% configuration %}
33-
coils:
34-
description: The array contains a list of coils to read from.
34+
inputs:
35+
description: The array contains a list of coils and discrete inputs to read from.
3536
required: true
3637
type: [map, list]
3738
keys:
@@ -48,10 +49,14 @@ coils:
4849
description: The number of the slave (Optional for TCP and UDP Modbus).
4950
required: true
5051
type: integer
51-
coil:
52-
description: Coil number.
52+
address:
53+
description: Coil or discrete input Modbus address.
5354
required: true
5455
type: integer
56+
input_type:
57+
description: Modbus input type (coil, discrete_input), default coil.
58+
required: false
59+
type: string
5560
device_class:
5661
description: The [type/class](/integrations/binary_sensor/#device-class) of the binary sensor to set the icon in the frontend.
5762
required: false

0 commit comments

Comments
 (0)