1
0
mirror of https://github.com/Adam-Ant/home-assistant synced 2025-08-11 09:36:50 +00:00

Initial Alarm Clock Implementation

This commit is contained in:
Adam Dodman
2016-11-29 23:48:17 +00:00
parent 6e33839f1e
commit 3a6b5c955b
6 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
- 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: notify.notify
data_template:
message: 'Good morning. Time to Wake Up!'
title: ''