This commit is contained in:
darthsandmann
2022-08-11 21:07:23 +02:00
parent cc620be332
commit 4390be9d72
11 changed files with 106 additions and 268 deletions

View File

@ -6,32 +6,22 @@
## -------------------------------------------------------------------------------------------------##
## Wetter-Plattform
## -------------------------------------------------------------------------------------------------##
weather:
- platform: pirateweather
api_key: !secret pirateweather
mode: daily
sun:
sensor:
- platform: template
sensors:
temperature_outside:
value_template: '{{ states.weather.home.attributes.temperature }}'
value_template: '{{ states.weather.openweathermap.attributes.temperature }}'
friendly_name: 'Outside Temperature'
unit_of_measurement: '°C'
temperature_today_max:
temperature_today:
value_template: >
{{ state_attr('weather.pirateweather', 'forecast')[0].temperature }}
{{ state_attr('weather.home', 'forecast')[0].temperature }}
friendly_name: 'Max Temperature'
unit_of_measurement: '°C'
temperature_today_min:
value_template: >
{{ state_attr("weather.pirateweather", "forecast")[0].templow }}
friendly_name: 'Min Temperature'
unit_of_measurement: '°C'
temperature_today_condition:
value_template: >
{{ state_attr('weather.pirateweather', 'forecast')[0].condition }}
friendly_name: 'Condition'
{{ state_attr('weather.home', 'forecast')[0].condition }}
friendly_name: 'Condition'
sun: