home-assistant.io/source/_components/sensor.pilight.markdown
Alok Saboo 1aca7b08cf Misc fixes: e.g. -> e.g., and proper case for Home Assistant (#4942)
* e.g. to e.g., and proper case for Home Assistant

* Instructions how to -> Instructions on how to
2018-03-17 20:20:37 +01:00

1.8 KiB

layout title description date sidebar comments sharing footer logo ha_category ha_release ha_iot_class
page Pilight Sensor Instructions on how to integrate pilight sensors within Home Assistant. 2016-10-08 23:21 true false true true pilight.png Sensor 0.31 depends

This pilight sensor platform for 433 MHz devices uses a value in the message payload as the sensor value. Unique identifiers (e.g., uuid) can be set to distinguish between multiple pilight devices. To use a pilight sensor the pilight Home Assistant hub has to be set up.

To use your sensor via pilight, make sure it is supported and add the following to your configuration.yaml file:

# Example configuration.yml entry
sensor:
  - platform: pilight
    variable: temperature
    payload:
      uuid: '0000-b8-27-eb-f447d3'

Configuration variables:

  • variable (Required): The variable name in the data stream that defines the sensor value.
  • payload (Required): Message payload identifiers. Only if all identifiers are matched the sensor value is set.
  • name (Optional): Name of the sensor.
  • unit_of_measurement (Optional): Defines the units of measurement of the sensor, if any.

{% linkable_title Example: Weather station %}

This section shows a real life example how to use values of a weather station.

# Example configuration.yml entry
sensor:
  - platform: pilight
    name: 'Temperature'
    variable: 'temperature'
    payload:
      uuid: 0000-b8-27-eb-f1f72e
    unit_of_measurement: '°C'
  - platform: pilight
    name: 'Humidity'
    variable: 'humidity'
    payload:
      uuid: 0000-b8-27-eb-f1f72e
    unit_of_measurement: '%'
  - platform: pilight
    name: 'Battery'
    variable: 'battery'
    payload:
      uuid: 0000-b8-27-eb-f1f72e
    unit_of_measurement: '%'