Code: Alles auswählen
alias: Stehlampe Wohnzimmer
description: ''
trigger:
- platform: time
at: '22:15'
condition: []
action:
- service: light.turn_off
target:
entity_id: light.stehlampe
mode: single
Cheers
PX
Code: Alles auswählen
alias: Stehlampe Wohnzimmer
description: ''
trigger:
- platform: time
at: '22:15'
condition: []
action:
- service: light.turn_off
target:
entity_id: light.stehlampe
mode: single
Code: Alles auswählen
alias: 'Licht automatik '
description: ''
mode: single
trigger:
- platform: time
at: '06:00'
id: an
- platform: time
at: '22:00'
id: aus
condition: []
action:
- choose:
- conditions:
- condition: trigger
id: an
- condition: state
entity_id: light.licht
state: 'off'
sequence:
- service: light.turn_on
target:
entity_id: light.licht
- conditions:
- condition: trigger
id: aus
- condition: state
entity_id: light.licht
state: 'on'
sequence:
- service: light.turn_off
target:
entity_id: light.licht
default: []
Du möchtest ja 2 unterschiedliche Aktionen ausführen Licht An und Licht Aus. Und das in Abhängigkeit des Triggers.
Selbstverständlich!
Ich habe pro Licht auch nur einen Automatisierung.