home-automation-home-assistant/automations/alarm.yaml
Florian Brinker cd860031fb Add config
2019-01-16 13:47:15 +01:00

20 行
619 B
YAML

- id: bedroom_alarm_clock
alias: bedroom alarm clock
trigger:
platform: template
value_template: "{{ states('sensor.time') == (states.input_datetime.bedroom_alarm_clock_time.attributes.timestamp | int | timestamp_custom('%H:%M', False)) }}"
condition:
condition: and
conditions:
- condition: state
entity_id: binary_sensor.workday_sensor
state: 'on'
- condition: sun
before: sunrise
action:
- service: notify.telegram_group
data:
title: 'Guten Morgen!'
message: 'Langsam dürft ihr wach werden. Es wird bald Zeit aufzustehen... :)'