pilight binary sensor platform implement the
pilight hub binary sensor functionality.
Two type of Pilight binary sensor configuration available. A normal sensor which
send the on and off state cyclical and a trigger sensor which send only a
trigger when an event happened (for example lots of cheap PIR motion detector).
To enable a Pilight binary sensor in your installation,
add the following to your
# Example configuration.yaml entry binary_sensor: - platform: pilight variable: 'state'
(string)(Required)The variable name in the data stream that defines the sensor value.
(string)(Required)Message payload identifiers. Only if all identifiers are matched the sensor value is set.
(string)(Optional)Name of the sensor.
onvalue. The component will recognize this as logical ‘1’.
offvalue. The component will recognize this as logical ‘0’.
(boolean)(Optional)Configure sensor as trigger type.
(integer)(Optional)Seconds before the sensor is disarmed if
disarm_after_triggeris set to true.
Default value: 30
A full configuration example could look like this:
# Example configuration.yaml entry binary_sensor: - platform: pilight name: 'Motion' variable: 'state' payload: unitcode: 371399 payload_on: 'closed' disarm_after_trigger: True reset_delay_sec: 30