home-assistant.io/source/_components/binary_sensor.pilight.markdown
2019-01-19 12:02:31 +01:00

2.2 KiB

layout title description date sidebar comments sharing footer logo ha_category ha_release ha_iot_class
page Pilight Binary Sensor Instructions on how to integrate Pilight binary sensors within Home Assistant. 2017-03-24 20:41 true false true true pilight.png DIY 0.44 Local Polling

The 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).

{% linkable_title Configuration %}

To enable a Pilight binary sensor in your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
binary_sensor:
  - platform: pilight
    variable: 'state'

{% configuration %} variable: description: The variable name in the data stream that defines the sensor value. required: true type: string payload: description: > Message payload identifiers. Only if all identifiers are matched the sensor value is set. required: true type: string name: description: Name of the sensor. required: false type: string payload_on: description: "Variable on value. The component will recognize this as logical '1'." required: false type: [string, float, integer] payload_off: description: "Variable off value. The component will recognize this as logical '0'." required: false type: [string, float, integer] disarm_after_trigger: description: Configure sensor as trigger type. required: false type: boolean reset_delay_sec: description: > Seconds before the sensor is disarmed if disarm_after_trigger is set to true. required: false type: integer default: 30 {% endconfiguration %}

{% linkable_title Full example %}

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