Skip to content

Instantly share code, notes, and snippets.

@theundefined
Created December 30, 2019 17:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theundefined/ea5ea72d0fcb16de5f0266f52eb3bb92 to your computer and use it in GitHub Desktop.
Save theundefined/ea5ea72d0fcb16de5f0266f52eb3bb92 to your computer and use it in GitHub Desktop.
configuration of syngeos for home assistant
- platform: rest
scan_interval: 900
name: syngeos 605
resource: https://api.syngeos.pl/api/public/data/device/605
value_template: " {{ address }}"
json_attributes:
- sensors
- platform: template
sensors:
syngeos_605_temperature:
value_template: '{{ states.sensor.syngeos_605.attributes["sensors"][0]["data"][0]["value"] }}'
device_class: temperature
unit_of_measurement: '°C'
syngeos_605_humidity:
value_template: '{{ states.sensor.syngeos_605.attributes["sensors"][1]["data"][0]["value"] }}'
device_class: humidity
unit_of_measurement: '%'
syngeos_605_air_pressure:
value_template: '{{ states.sensor.syngeos_605.attributes["sensors"][2]["data"][0]["value"] }}'
unit_of_measurement: 'hPa'
syngeos_605_pm25:
value_template: '{{ states.sensor.syngeos_605.attributes["sensors"][3]["data"][0]["value"] }}'
unit_of_measurement: 'µg/m³'
syngeos_605_pm10:
value_template: '{{ states.sensor.syngeos_605.attributes["sensors"][4]["data"][0]["value"] }}'
unit_of_measurement: 'µg/m³'
syngeos_605_pm1:
value_template: '{{ states.sensor.syngeos_605.attributes["sensors"][5]["data"][0]["value"] }}'
unit_of_measurement: 'µg/m³'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment