Skip to content

Commit 7714472

Browse files
clarkewdfabaff
authored andcommitted
Document allowing Pilight Binary Sensor to control reset_delay_sec through configuration (home-assistant#2944)
* Document allowing Pilight Binary Sensor to control reset_delay_sec through configuration * Minimize configuration sample
1 parent e97d072 commit 7714472

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

source/_components/binary_sensor.pilight.markdown

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,30 @@ Two type of pilight binary sensor configuration available. A normal sensor which
2020
# Example configuration.yml entry
2121
binary_sensor:
2222
- platform: pilight
23-
name: 'Motion'
2423
variable: 'state'
25-
payload:
26-
unitcode: 371399
27-
payload_on: 'closed'
28-
disarm_after_trigger: True <-- use this if you want trigger type behavior
2924
```
3025
3126
Configuration variables:
27+
3228
- **variable** (*Required*): The variable name in the data stream that defines the sensor value.
3329
- **payload** (*Required*): Message payload identifiers. Only if all identifiers are matched the sensor value is set.
3430
- **name** (*Optional*): Name of the sensor.
3531
- **payload_on** (*Optional*): Variable `on` value. The component will recognize this as logical '1'.
3632
- **payload_off** (*Optional*): Variable `off` value. The component will recognize this as logical '0'.
3733
- **disarm_after_trigger:** (*Optional*): Configure sensor as trigger type.
34+
- **reset_delay_sec** (*Optional*): Seconds before the sensor is disarmed if `disarm_after_trigger` is set to true. Default is 30 seconds.
35+
36+
A full configuration example could look like this:
37+
38+
```yaml
39+
# Example configuration.yml entry
40+
binary_sensor:
41+
- platform: pilight
42+
name: 'Motion'
43+
variable: 'state'
44+
payload:
45+
unitcode: 371399
46+
payload_on: 'closed'
47+
disarm_after_trigger: True
48+
reset_delay_sec: 30
49+
```

0 commit comments

Comments
 (0)