37 lines
1.3 KiB
YAML
37 lines
1.3 KiB
YAML
## -------------------------------------------------------------------------------------------------##
|
|
## pirateweather
|
|
## -------------------------------------------------------------------------------------------------##
|
|
|
|
|
|
## -------------------------------------------------------------------------------------------------##
|
|
## 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 }}'
|
|
friendly_name: 'Outside Temperature'
|
|
unit_of_measurement: '°C'
|
|
temperature_today_max:
|
|
value_template: >
|
|
{{ state_attr('weather.pirateweather', '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' |