Add automation for before wakeup
This commit is contained in:
parent
af6f11a50f
commit
7451b3adcc
@ -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
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user