Hi, ich benötige eure Hilfe, ich habe meine Rolladensteuerung wie Simon in seinem Video erklärt umgesetzt, jedoch funktioniert bei mir die verneinung der state_attr nicht.
Habe jetzt überlegt den Auslöser mit dem Azimut abzubilden.
Das Problm ist, das die Automation Rollos runter nur einmal ausgelost werden darf, da egal was ich mache meine Module beim 2ten mal Position setzten die Rollos einfach wieder hochfahren. Hab schon mehrfach neu kalibiriert aber es hilft leider nicht.
Aktuell sieht meine Automation so aus:
alias: Sun Protection - Sofa Südseite Auf/Zu
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.sun_solar_azimuth
above: 96.6
id: Rollos Runter!
- platform: time_pattern
minutes: /15
alias: Check alle 15 Minuten
enabled: false
- platform: numeric_state
entity_id: sensor.sun_solar_azimuth
above: 260
alias: Sonne zu weit im Westen
id: SonneWiederOkay
condition:
- condition: or
conditions:
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.sun_solar_azimuth
above: 96.6
below: 250
- condition: numeric_state
entity_id: sensor.sun_solar_elevation
above: 13.99
- condition: numeric_state
entity_id: sensor.tageshochsttemperatur
above: 20
- condition: state
state: "on"
entity_id: input_boolean.rollo_steuerung_an_aus
alias: Bedingungen für Rollo muss runter
- condition: and
conditions:
- condition: trigger
id: SonneWiederOkay
- condition: template
value_template: >-
{{
state_attr('automation.sun_protection_forecast_temp_sun_altitude',
'last_triggered').day==now().day }}
enabled: true
alias: Bedingung für Rollo soll wieder hoch
action:
- if:
- condition: template
enabled: false
value_template: >-
{{not
state_attr('automation.sun_protection_forecast_temp_sun_altitude',
'last_triggered').day==now().day }}
- condition: trigger
id:
- Rollos Runter!
enabled: true
then:
- device_id: 0888d64715da4b8227417a5d8a0b392a
domain: cover
entity_id: aee2cc9ceaa95217d5453431c805b7e3
type: set_position
position: 20
else: []
alias: Rollos runter
- if:
- condition: and
conditions:
- condition: trigger
id: SonneWiederOkay
then:
- device_id: 0888d64715da4b8227417a5d8a0b392a
domain: cover
entity_id: aee2cc9ceaa95217d5453431c805b7e3
type: open
alias: Rollos wieder hoch
enabled: true
mode: single