Hi,
I’m new here, so be kind
I need to use the weather condition in met.no (rainy, cloudy, etc.) in order to create an automation to control my window shades.
I understand that I have to create a template sensor, so I paste the code below in my configuration.yaml:
sensor:
- platform: template
sensors:
rain_check:
friendly_name: "Condizioni meteo"
value_template: "{{ state_attr('weather.boaria', 'condition') }}"
weather.boaria is the entity name of met.no.
Sure I’m missing something because I can’t see the new sensor, but I’m lost…