Advertisement
RichardHA

Weerlive.nl API HomeAssistant Yaml file

Aug 8th, 2021
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.19 KB | None | 0 0
  1. ### sensors: ###
  2. ### Weerlive ###
  3. - platform: rest
  4.   name: "weerlive"
  5.   resource: http://weerlive.nl/api/json-data-10min.php?key=xxxxx&locatie=Amsterdam
  6.   scan_interval: 300
  7.   json_attributes:
  8.    - liveweer
  9.   value_template: "OK"
  10.  
  11. - platform: template
  12.   sensors:
  13.     actual_temperature:
  14.       device_class: temperature
  15.       unit_of_measurement: "°C"
  16.       value_template: "{{ states.sensor.weerlive.attributes.liveweer[0].temp  }}"
  17.     actual_windchill:
  18.       device_class: temperature
  19.       unit_of_measurement: "°C"
  20.       value_template: "{{ states.sensor.weerlive.attributes.liveweer[0].gtemp  }}"
  21.     actual_humidity:
  22.       device_class: humidity
  23.       unit_of_measurement: "%"
  24.       value_template: "{{ states.sensor.weerlive.attributes.liveweer[0].lv  }}"
  25.     actual_windbearing:
  26.       value_template: "{{ states.sensor.weerlive.attributes.liveweer[0].windr  }}"
  27.     actual_windspeed:
  28.       unit_of_measurement: "bft "
  29.       value_template: "{{ states.sensor.weerlive.attributes.liveweer[0].winds  }}"
  30.     actual_barometricpr:
  31.       device_class: pressure
  32.       unit_of_measurement: "hPa"
  33.       value_template: "{{ states.sensor.weerlive.attributes.liveweer[0].luchtd  }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement