Was ich machen möchte ist simple:
1.) Licht an ab 6:00 Uhr wenn die Sonne noch nicht aufgegangen ist
2.) Licht an bei Sonnenuntergang
3.) Licht aus 23:00 Uhr
Wo ich nicht zurecht komme, wie bekomme ich die Bedigung bei 1.) mit hinein?
aktueller yaml code angelegt vom grafischen editor:
Code: Alles auswählen
alias: Stehlampe Wohnzimmer
description: ''
trigger:
- platform: time
at: '06:00'
id: morgens_an
- platform: sun
event: sunset
offset: '-01:00:00'
id: sonnenuntergang
- platform: time
at: '23:00:00'
id: abends_aus
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: morgens_an
- condition: state
entity_id: light.stehlampe
state: 'off'
- condition: sun
before: sunrise
sequence:
- service: light.turn_on
target:
entity_id: light.stehlampe
data: {}
- conditions:
- condition: trigger
id: abends_aus
- condition: state
entity_id: light.stehlampe
state: 'on'
sequence:
- service: light.turn_off
target:
entity_id: light.stehlampe
data: {}
default: []
mode: single
edit: wie funktioniert es mit dem offset für sunset? Ich möchte gerne 1h vor sunset triggern