home-automation-home-assistant/automations/alarm.yaml

20 rindas
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... :)'