Hallo zusammen,
Ich nutze den Code von Simon um meine Rollos nach dem Azimuth zu steuern.
Die funktionierte auch bislang super…
Seit einigen Tage stelle ich fest, dass beim Auslöser „SonneWiederOK“ als Ergebnis „Bedingung nicht erfüllt“ kommt, obwohl der Azimuth über dem Wert ist, der gewünscht ist.
Hat noch jemand das Problem?
Hat jemand eine Abhilfe?
alias: DG_Sun Protection
description: ""
trigger:
- platform: time_pattern
minutes: /15
alias: Check alle 15 Minuten
- platform: numeric_state
entity_id:
- sun.sun
attribute: azimuth
above: 265
id: Test
condition:
- condition: or
conditions:
- alias: Bedingungen für Rollo muss runter
condition: and
conditions:
- condition: numeric_state
entity_id: sun.sun
attribute: azimuth
above: 110
below: 255
- condition: numeric_state
entity_id: sun.sun
attribute: elevation
above: 48
- condition: numeric_state
entity_id: sensor.openweathermap_temperature
above: 19
- condition: template
value_template: >-
{{ not state_attr('automation.dg_sun_protection',
'last_triggered').day==now().day }}
- alias: Nur wenn Sonnig, oder Teil.bewölkt
condition: or
conditions:
- condition: state
entity_id: weather.openweathermap
state: partlycloudy
- condition: state
state: sunny
entity_id: weather.openweathermap
- alias: Bedingung für Rollo soll wieder hoch
condition: and
conditions:
- condition: template
value_template: >-
{{ state_attr('automation.dg_sun_protection',
'last_triggered').day==now().day }}
enabled: true
- condition: trigger
id:
- Test
action:
- service: scene.turn_on
target:
entity_id: scene.sun_protection_dg
metadata: {}
enabled: true
- service: scene.turn_on
target:
entity_id: scene.sun_protection_dg_auf
metadata: {}
mode: single
Lieben Gruß
Denis