Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- weather_combined:
- rest:
- - resource: https://api.weather.com/v2/pws/observations/current?apiKey=e1f10a1e78da46f5b10a1e78da96f525&stationId=ICNARONA2&numericPrecision=decimal&format=json&units=m
- sensor:
- - name: Los Cristianos temperature
- device_class: temperature
- state_class: measurement
- unit_of_measurement: "°C"
- value_template: "{{ value_json.observations[0].metric.temp }}"
- json_attributes_path: "$.observations[:1]"
- json_attributes:
- - humidity
- - winddir
- - metric.windSpeed
- - name: Los Cristianos attributes
- state_class: measurement
- value_template: "{{ value_json.observations[0].metric.temp }}"
- json_attributes_path: "$.observations[:1].metric"
- json_attributes:
- - pressure
- - windSpeed
- weather:
- - platform: template
- name: Playa de las Americas
- unique_id: 9f0bc8ece58b46d389b598e9daa6552f
- attribution_template: "Date from https://www.wunderground.com, forecast from met.no"
- condition_template: "{{ states('weather.tigotan') }}"
- temperature_template: "{{ states('sensor.los_cristianos_temperature') }}"
- humidity_template: "{{ state_attr('sensor.los_cristianos_temperature', 'humidity') }}"
- pressure_template: "{{ state_attr('sensor.los_cristianos_attributes', 'pressure') }}"
- wind_speed_template: "{{ state_attr('sensor.los_cristianos_attributes', 'windSpeed') }}"
- wind_bearing_template: "{{ state_attr('sensor.los_cristianos_temperature', 'winddir') }}"
- forecast_template: "{{ state_attr('weather.tigotan', 'forecast') }}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement