Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### sensors: ###
- ### Weerlive ###
- - platform: rest
- name: "weerlive"
- resource: http://weerlive.nl/api/json-data-10min.php?key=xxxxx&locatie=Amsterdam
- scan_interval: 300
- json_attributes:
- - liveweer
- value_template: "OK"
- - platform: template
- sensors:
- actual_temperature:
- device_class: temperature
- unit_of_measurement: "°C"
- value_template: "{{ states.sensor.weerlive.attributes.liveweer[0].temp }}"
- actual_windchill:
- device_class: temperature
- unit_of_measurement: "°C"
- value_template: "{{ states.sensor.weerlive.attributes.liveweer[0].gtemp }}"
- actual_humidity:
- device_class: humidity
- unit_of_measurement: "%"
- value_template: "{{ states.sensor.weerlive.attributes.liveweer[0].lv }}"
- actual_windbearing:
- value_template: "{{ states.sensor.weerlive.attributes.liveweer[0].windr }}"
- actual_windspeed:
- unit_of_measurement: "bft "
- value_template: "{{ states.sensor.weerlive.attributes.liveweer[0].winds }}"
- actual_barometricpr:
- device_class: pressure
- unit_of_measurement: "hPa"
- value_template: "{{ states.sensor.weerlive.attributes.liveweer[0].luchtd }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement