mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
43 lines
912 B
YAML
43 lines
912 B
YAML
alias: Set Clint Next Alarm
|
|
id: automation_set_clint_next_alarm
|
|
#description:
|
|
|
|
trigger:
|
|
- platform: state
|
|
entity_id: binary_sensor.work_day
|
|
to: 'off'
|
|
|
|
- platform: state
|
|
entity_id: binary_sensor.work_day
|
|
to: 'on'
|
|
|
|
- platform: time
|
|
at: '01:00:00'
|
|
|
|
- platform: homeassistant
|
|
event: start
|
|
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.work_day
|
|
state: 'off'
|
|
sequence:
|
|
- service: input_datetime.set_datetime
|
|
target:
|
|
entity_id: input_datetime.clint_next_alarm
|
|
data:
|
|
time: "09:00:00"
|
|
|
|
- conditions:
|
|
- condition: state
|
|
entity_id: binary_sensor.work_day
|
|
state: 'on'
|
|
sequence:
|
|
- service: input_datetime.set_datetime
|
|
target:
|
|
entity_id: input_datetime.clint_next_alarm
|
|
data:
|
|
time: "05:30:00"
|