Add vacation automations
This commit is contained in:
parent
25e36ffc59
commit
ae3ba94b38
@ -12,6 +12,9 @@
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_select.home_mode
|
entity_id: input_select.home_mode
|
||||||
state: Day
|
state: Day
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.vacation_mode
|
||||||
|
state: 'off'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.dining_window_1_open_close
|
entity_id: binary_sensor.dining_window_1_open_close
|
||||||
state: 'off'
|
state: 'off'
|
||||||
|
24
configuration/automations/alarm-notify-guest.yaml
Normal file
24
configuration/automations/alarm-notify-guest.yaml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
- id: alarm-notify-guest
|
||||||
|
alias: '[Alarm] Notify about guest'
|
||||||
|
description: ''
|
||||||
|
mode: single
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id:
|
||||||
|
- person.andrzej_legowski
|
||||||
|
- person.piotr_madej
|
||||||
|
- person.matka
|
||||||
|
- person.mariusz_ablewicz
|
||||||
|
to: home
|
||||||
|
condition:
|
||||||
|
- condition: not
|
||||||
|
conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: alarm_control_panel.home_alarm
|
||||||
|
state: disarmed
|
||||||
|
action:
|
||||||
|
- service: notify.mobile_app_iphone_pg
|
||||||
|
data:
|
||||||
|
title: "Someone is near home"
|
||||||
|
message: >
|
||||||
|
{{ state_attr(trigger.entity_id, 'friendly_name') }} has connected to guest wifi
|
23
configuration/automations/alarm-vacation-disarm-andrzej.yaml
Normal file
23
configuration/automations/alarm-vacation-disarm-andrzej.yaml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
- id: alarm-disarm-andrzej
|
||||||
|
alias: "[Alarm][Vacation] Disarm Andrzej arrive"
|
||||||
|
mode: single
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id:
|
||||||
|
- person.andrzej_legowski
|
||||||
|
to: home
|
||||||
|
condition: [ ]
|
||||||
|
action:
|
||||||
|
- service: script.arrive_home
|
||||||
|
|
||||||
|
- id: alarm-disarm-andrzej
|
||||||
|
alias: "[Alarm][Vacation] Disarm Andrzej arrive"
|
||||||
|
mode: single
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id:
|
||||||
|
- person.andrzej_legowski
|
||||||
|
to: not_home
|
||||||
|
action:
|
||||||
|
- service: script.leave_home
|
||||||
|
|
@ -5,6 +5,10 @@
|
|||||||
- platform: state
|
- platform: state
|
||||||
entity_id: calendar.2021_fia_formula_one_world_championship_race_calendar
|
entity_id: calendar.2021_fia_formula_one_world_championship_race_calendar
|
||||||
to: 'on'
|
to: 'on'
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_select.home_mode
|
||||||
|
state: Day
|
||||||
action:
|
action:
|
||||||
- service: media_player.play_media
|
- service: media_player.play_media
|
||||||
data:
|
data:
|
||||||
|
29
configuration/automations/vacation.yaml
Normal file
29
configuration/automations/vacation.yaml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
- id: vacation-enable
|
||||||
|
alias: '[Vacation] mode enabled'
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id:
|
||||||
|
- input_boolean.vacation_mode
|
||||||
|
to: 'on'
|
||||||
|
action:
|
||||||
|
- service: presence_simulation.start
|
||||||
|
data:
|
||||||
|
entity_id:
|
||||||
|
- light.bedroom_lights
|
||||||
|
- light.bed_lamps
|
||||||
|
- light.office
|
||||||
|
- light.kitchen_lights
|
||||||
|
- light.hallway_light
|
||||||
|
delta: 5
|
||||||
|
restore_states: True
|
||||||
|
random: 300
|
||||||
|
|
||||||
|
- id: vacation-disable
|
||||||
|
alias: '[Vacation] mode disabled'
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id:
|
||||||
|
- input_boolean.vacation_mode
|
||||||
|
to: 'off'
|
||||||
|
action:
|
||||||
|
- service: presence_simulation.stop
|
@ -37,6 +37,9 @@ input_boolean:
|
|||||||
sleep_mode:
|
sleep_mode:
|
||||||
name: "Sleep mode"
|
name: "Sleep mode"
|
||||||
icon: "mdi:weather-night"
|
icon: "mdi:weather-night"
|
||||||
|
vacation_mode:
|
||||||
|
name: "Vacation mode"
|
||||||
|
icon: "mdi:beach"
|
||||||
vacuum_office:
|
vacuum_office:
|
||||||
name: "Vacuum Office"
|
name: "Vacuum Office"
|
||||||
icon: "mdi:chair-rolling"
|
icon: "mdi:chair-rolling"
|
||||||
|
Loading…
Reference in New Issue
Block a user