uvok on Nostr: Improved my light alarm clock. Instead of two, only using one automation alias: ...
Improved my light alarm clock. Instead of two, only using one automation
alias: Lichtwecker
triggers:
- trigger: time
at: "06:00:00"
id: wzweck
- trigger: time
at: "07:00:00"
id: szweck
conditions:
- condition: time
weekday: [mon,tue,wed,thu,fri]
- condition: state
entity_id: input_boolean.lichtwecker
state: "on"
- alias: SZ/WZ Switch
condition: or
conditions:
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.dstsensor
state: "on"
- condition: trigger
id: [szweck]
alias: SZ
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.dstsensor
state: "off"
- condition: trigger
id: [wzweck]
alias: WZ
actions:
- action: light.turn_on
data:
transition: 60
brightness_pct: 100
target:
device_id: xxx
mode: single
#homeassistant
alias: Lichtwecker
triggers:
- trigger: time
at: "06:00:00"
id: wzweck
- trigger: time
at: "07:00:00"
id: szweck
conditions:
- condition: time
weekday: [mon,tue,wed,thu,fri]
- condition: state
entity_id: input_boolean.lichtwecker
state: "on"
- alias: SZ/WZ Switch
condition: or
conditions:
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.dstsensor
state: "on"
- condition: trigger
id: [szweck]
alias: SZ
- condition: and
conditions:
- condition: state
entity_id: binary_sensor.dstsensor
state: "off"
- condition: trigger
id: [wzweck]
alias: WZ
actions:
- action: light.turn_on
data:
transition: 60
brightness_pct: 100
target:
device_id: xxx
mode: single
#homeassistant