Skip to content

Instantly share code, notes, and snippets.

@maruno
Last active January 14, 2022 20:42
Show Gist options
  • Save maruno/bcbde4532c83c14ce29b76dfc4320474 to your computer and use it in GitHub Desktop.
Save maruno/bcbde4532c83c14ce29b76dfc4320474 to your computer and use it in GitHub Desktop.
Luchtmeetnet HA sensor configuration (example station NL01492)
- platform: rest
name: Luchtmeetnet NL01492 PM2.5
resource: https://api.luchtmeetnet.nl/open_api/stations/NL01492/measurements?formula=PM25
device_class: pm25
unit_of_measurement: µg/m³
value_template: '{{ value_json.data[0].value }}'
- platform: rest
name: Luchtmeetnet NL01492 PM10
resource: https://api.luchtmeetnet.nl/open_api/stations/NL01492/measurements?formula=PM10
device_class: pm10
unit_of_measurement: µg/m³
value_template: '{{ value_json.data[0].value }}'
- platform: rest
name: Luchtmeetnet NL01492 SO2
resource: https://api.luchtmeetnet.nl/open_api/stations/NL01492/measurements?formula=SO2
device_class: sulphur_dioxide
unit_of_measurement: µg/m³
value_template: '{{ value_json.data[0].value }}'
- platform: rest
name: Luchtmeetnet NL01492 O3
resource: https://api.luchtmeetnet.nl/open_api/stations/NL01492/measurements?formula=O3
device_class: ozone
unit_of_measurement: µg/m³
value_template: '{{ value_json.data[0].value }}'
- platform: rest
name: Luchtmeetnet NL01492 NO
resource: https://api.luchtmeetnet.nl/open_api/stations/NL01492/measurements?formula=NO
device_class: nitrous_oxide
unit_of_measurement: µg/m³
value_template: '{{ value_json.data[0].value }}'
- platform: rest
name: Luchtmeetnet NL01492 NO2
resource: https://api.luchtmeetnet.nl/open_api/stations/NL01492/measurements?formula=NO2
device_class: nitrogen_dioxide
unit_of_measurement: µg/m³
value_template: '{{ value_json.data[0].value }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment