Guten Morgen Zusammen,
ich hatte mir vor einigen Zeit zwei Automationen geschrieben, die fürs Wohnzimmer und Küche dasselbe machen sollen:
Bei Sonnenuntergang +/- Offest Rollos runter af X%
Bei Sonnenaufgang +/- Offest Rollos auf.
Es hat sogar funktioniert, bis vor einiger Zeit.
Ich bin nicht sicher, ob das manuelle Zumachen der Rollos im Vorfeld die Automatio beeinträchtigt.
Ich hatte gestern Nacht gegen 24.00 die Bedingung
"Ausgelöst durch “es wird dinkel” getestet (RMT->Testen)
und diese Bedingung wurde komischerweise nicht erfüllt, egal wie ich mit dem Offset gespielt habe. Stockdunkel war es alle Mal.
So sieht die Automation aus. Fällt Euch etwas auf, was die Automation zerstört?
Wohnzimmer:
alias: Rollos Wohnzimmer bei Sonnenunter,- und Aufgang
description: Fährt die Rollos WZ runter bei Sonnenuntergang und Aus bei Sonnenaufgang
trigger:
- platform: sun
event: sunset
offset: "00:10"
id: es wird dunkel
- platform: sun
event: sunrise
id: es wird hell
offset: "-01:00"
condition: []
action:
- if:
- condition: trigger
id:
- es wird dunkel
- condition: state
entity_id: cover.rollos_wohnzimmer
state: open
then:
- service: cover.set_cover_position
data:
position: 50
target:
entity_id:
- cover.shellyplus2pm_a0a3b35b2714
- cover.shellyplus2pm_a0a3b3e57394
- if:
- condition: trigger
id:
- es wird hell
then:
- service: cover.open_cover
data: {}
target:
entity_id:
- cover.shellyplus2pm_a0a3b35b2714
- cover.shellyplus2pm_a0a3b3e57394
mode: single
Küche:
alias: Rollos Küche bei Sonnenunter,- und Aufgang
description: Fährt die Rollos Küche runter bei Sonnenuntergang und Aus bei Sonnenaufgang
trigger:
- platform: sun
event: sunset
offset: "00:20"
id: es wird dunkel
- platform: sun
event: sunrise
offset: "00:00"
id: es wird hell
condition: []
action:
- if:
- condition: trigger
id:
- es wird dunkel
- condition: device
device_id: 1a0fd4d4b569a8b53a442bbcfc2d6768
domain: cover
entity_id: 1b489ccc1c5a867f31c2801b955aabba
type: is_open
then:
- service: cover.set_cover_position
target:
entity_id: cover.shellyplus2pm_a0a3b36852f4
data:
position: 40
- if:
- condition: trigger
id:
- es wird hell
- condition: device
device_id: 1a0fd4d4b569a8b53a442bbcfc2d6768
domain: cover
entity_id: 1b489ccc1c5a867f31c2801b955aabba
type: is_position
above: 2
then:
- service: cover.open_cover
target:
entity_id: cover.shellyplus2pm_a0a3b36852f4
data: {}
mode: single
Danke und Gruß
Alex.