mirror of
https://github.com/Adam-Ant/home-assistant
synced 2024-11-13 23:16:23 +00:00
25 lines
623 B
YAML
25 lines
623 B
YAML
- alias: 'Wake Me Up'
|
|
trigger:
|
|
platform: template
|
|
value_template: '{{ states.sensor.time.state == states.sensor.alarm_time.state }}'
|
|
condition:
|
|
condition: or
|
|
conditions:
|
|
- condition: and
|
|
conditions:
|
|
- condition: state
|
|
entity_id: input_boolean.alarmweekday
|
|
state: 'on'
|
|
- condition: time
|
|
weekday:
|
|
- mon
|
|
- tue
|
|
- wed
|
|
- thu
|
|
- fri
|
|
- condition: state
|
|
entity_id: input_boolean.alarmweekday
|
|
state: 'off'
|
|
action:
|
|
service: shell_command.alarm_on
|