1
0
mirror of https://github.com/Adam-Ant/home-assistant synced 2024-11-14 15:36:22 +00:00
home-assistant/automation/alarmclock.yaml

25 lines
623 B
YAML
Raw Normal View History

2016-11-29 23:48:17 +00:00
- 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:
2016-11-30 15:20:28 +00:00
service: shell_command.alarm_on