1
0

Add automation for before wakeup

This commit is contained in:
Przemek Grondek 2022-12-15 00:41:40 +01:00
parent af6f11a50f
commit 7451b3adcc
2 changed files with 31 additions and 0 deletions

View File

@ -36,3 +36,23 @@
- service: switch.turn_on
target:
entity_id: switch.coffee_machine_on_off
- id: calendar-before-wakeup
alias: "[Calendar] Before wakeup"
mode: single
trigger:
- platform: calendar
event: start
entity_id: calendar.automations_wakeup
offset: '-1:00:0'
condition:
- condition: or
conditions:
- condition: state
entity_id: alarm_control_panel.home_alarm
state: armed_home
- condition: state
entity_id: alarm_control_panel.home_alarm
state: disarmed
action:
- service: script.before_wakeup

View File

@ -85,6 +85,17 @@ good_night:
mode: single
icon: mdi:weather-night
before_wakeup:
alias: Before wakeup
sequence:
- service: climate.set_temperature
data:
temperature: 25
target:
entity_id:
- climate.office_thermostat
- climate.dining_thermostat
good_morning:
alias: Good Morning
sequence: