1
0

Compare commits

...

2 Commits

Author SHA1 Message Date
Przemek Grondek
7451b3adcc Add automation for before wakeup 2022-12-15 00:41:40 +01:00
Przemek Grondek
af6f11a50f Turn camera power on/off 2022-12-15 00:33:49 +01:00
3 changed files with 39 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:

View File

@ -1,6 +1,10 @@
cctv_on:
alias: CCTV on
sequence:
- service: switch.turn_on
target:
entity_id:
- switch.usb_switch_3
- service: switch.turn_on
target:
entity_id:
@ -14,6 +18,10 @@ cctv_on:
cctv_off:
alias: CCTV off
sequence:
- service: switch.turn_off
target:
entity_id:
- switch.usb_switch_3
- service: switch.turn_off
target:
entity_id: