Additional tweaks to vacation mode

This commit is contained in:
2023-09-07 12:59:51 -04:00
parent c4ecb79026
commit 12392b91b7
3 changed files with 20 additions and 5 deletions

View File

@ -1069,6 +1069,9 @@ automation:
- condition: trigger - condition: trigger
id: door id: door
sequence: sequence:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.audible_notifications
- service: light.turn_on - service: light.turn_on
target: target:
entity_id: entity_id:
@ -1100,6 +1103,18 @@ automation:
entity_id: input_select.tina_desk_scenes entity_id: input_select.tina_desk_scenes
data: data:
option: Evening Mode option: Evening Mode
- service: timer.start
target:
entity_id: timer.vacation_helper
data:
duration: "01:00:00"
- service: script.speech_engine
data:
who: living_room
message: >-
Welcome, vacation helper. I have turned on every light in the house for you.
They will remain on for one hour. Thank you for your help.
type: alert
- conditions: - conditions:
- condition: trigger - condition: trigger
id: timer-finished id: timer-finished
@ -1113,6 +1128,9 @@ automation:
- service: switch.turn_on - service: switch.turn_on
target: target:
entity_id: switch.presence_simulation entity_id: switch.presence_simulation
- service: input_boolean.turn_off
target:
entity_id: input_boolean.audible_notifications
script: script:
stairwell_led_strip: stairwell_led_strip:

View File

@ -1008,9 +1008,6 @@ script:
- condition: state - condition: state
entity_id: binary_sensor.parents_home entity_id: binary_sensor.parents_home
state: 'on' state: 'on'
- condition: state
entity_id: input_boolean.vacation_mode
state: 'off'
- service: >- - service: >-
{% if voice == 'nabu' %} {% if voice == 'nabu' %}
script.nabu_voice script.nabu_voice

View File

@ -95,7 +95,7 @@ alarm_control_panel:
- input_boolean.lockdown_issue - input_boolean.lockdown_issue
- if: - if:
- condition: template - condition: template
value_template: "{{ silent != 1 }}" value_template: "{{ silent != 1 and is_state('input_boolean.vacation_mode','off') }}"
then: then:
- service: script.status_annc - service: script.status_annc
data: data:
@ -119,7 +119,7 @@ alarm_control_panel:
entity_id: input_boolean.lockdown_issue entity_id: input_boolean.lockdown_issue
- if: - if:
- condition: template - condition: template
value_template: "{{ silent != 1 }}" value_template: "{{ silent != 1 and is_state('input_boolean.vacation_mode','off') }}"
then: then:
- service: script.status_annc - service: script.status_annc
data: data: