Hallo
Ich hab folgende Automation anhand von Simons Anleitung erstellt. Die Velux Rollos fahren auch hinunter seit ich den Forecast deaktiviert habe weil dieser bei mir leider nicht die Tageshöchsttemperatur angibt. Wenn hier wer noch eine Idee hat > sehr gerne.
Mein Problem ist aber das die Rollos nicht hochfahren! kann mir wer sagen warum?
Danke & lg
alias: Sun Protection WC & Büro
description: ""
trigger:
- platform: time_pattern
minutes: /15
alias: Check alle 15 Minuten
- platform: numeric_state
entity_id: sensor.sun_azimuth
above: 243
alias: Sonne zu weit im Westen
id: Sonne ok büro/bad
value_template: ""
condition:
- condition: or
conditions:
- condition: and
conditions:
- condition: numeric_state
entity_id: sensor.sun_azimuth
above: 66
below: 244
- condition: numeric_state
entity_id: sun.sun
attribute: elevation
above: 5.5
- condition: numeric_state
entity_id: sensor.openweathermap_temperature
above: 21
enabled: false
- condition: state
entity_id: input_boolean.sun_prodection_buro_wc
state: "on"
- condition: template
value_template: >-
{{ not state_attr('automation.sun_protection_wc_buro',
'last_triggered').day==now().day }}
enabled: true
alias: Bedingungen für Rollo muss runter
- condition: and
conditions:
- condition: trigger
id:
- Sonne ok büro/bad
- condition: template
value_template: >-
{{ state_attr('automation.sun_protection_wc_buro',
'last_triggered').day==now().day }}
enabled: false
alias: Bedingung für Rollo soll wieder hoch
action:
- if:
- condition: template
value_template: >-
{{ not
state_attr('automation.sun_protection_wc_buro','last_triggered').day==now().day
}}
enabled: false
then:
- service: scene.turn_on
target:
entity_id: scene.sun_prodection_buro_wc
metadata: {}
else:
- service: scene.turn_on
target:
entity_id: scene.sun_prodection_buro_wc_hoch
metadata: {}
alias: Rollos runter
- if:
- condition: and
conditions:
- condition: trigger
id:
- Sonne ok
then:
- service: scene.turn_on
target:
entity_id: scene.sun_prodection_buro_wc_hoch
metadata: {}
alias: Rollos wieder hoch
mode: single