Skip to content

Commit 378552e

Browse files
tjorimfabaff
authored andcommitted
Update PiFace Digital I/O Binary Sensor configuration (home-assistant#7001)
* Update PiFace Digital I/O Binary Sensor configuration * Minor changes
1 parent 3d3906f commit 378552e

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

source/_components/binary_sensor.rpi_pfio.markdown

+26-8
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,29 @@ binary_sensor:
3232
settle_time: 50
3333
```
3434
35-
Configuration variables:
36-
37-
- **ports** array (*Required*): Array of used ports.
38-
- **num** (*Required*): Port number.
39-
- **name** (*Required*): Port name.
40-
- **settle_time** (*Optional*): The time in milliseconds for port debouncing. Default is 2 0ms.
41-
- **invert_logic** (*Optional*): If true, inverts the output logic to ACTIVE LOW. Default is false (ACTIVE HIGH).
42-
35+
{% configuration %}
36+
ports:
37+
description: List of used ports.
38+
required: true
39+
type: map
40+
keys:
41+
num:
42+
description: The port number.
43+
required: true
44+
type: map
45+
keys:
46+
name:
47+
description: The port name.
48+
required: true
49+
type: string
50+
settle_time:
51+
description: The time in milliseconds for port debouncing.
52+
required: false
53+
type: integer
54+
default: 20
55+
invert_logic:
56+
description: If `true`, inverts the output logic to ACTIVE LOW.
57+
required: false
58+
type: boolean
59+
default: "`false` (ACTIVE HIGH)"
60+
{% endconfiguration %}

0 commit comments

Comments
 (0)