Hi,
I try to setup an Blueprint, which based on some parameter, one beeing the azimut of the window, opens or closes the shutter. My Blueprint looks like this:
blueprint:
name: Automatische Beschattung
description: >
Steuert die Rollläden basierend auf der Sonnenposition, Temperatur und Helligkeit.
domain: automation
input:
fenster_azimut:
name: Azimut des Fensters
description: Der Azimut-Winkel des Fensters (Kompassgrad)
selector:
number:
min: 0
max: 360
unit_of_measurement: "°"
rollladen_entity:
name: Rollladen-Entity
description: Die Entity-ID des Rollladens
selector:
entity:
domain: cover
variables:
fenster_azimut: !input fenster_azimut
rollladen: !input rollladen_entity
triggers:
- trigger: template
value_template: >
{{ state_attr('sun.sun', 'azimuth') > (fenster_azimut - 90) and state_attr('sun.sun', 'azimuth') < (fenster_azimut + 90) }}
- trigger: numeric_state
entity_id: sensor.wetterstation_beleuchtungsstarke
above: 3000
- trigger: numeric_state
entity_id: sensor.wetterstation_temperatur
above: 20
after that also some conditions are testet. but the problem is in the template, which does not work:
homeassistant.exceptions.TemplateError: UndefinedError: ‘fenster_azimut’ is undefined
in the respective automation the value for azimut is set.
Any idea?