Vacation mode tweaks
This commit is contained in:
@ -18,3 +18,5 @@ Presence Simulation:
|
|||||||
- light.upstairs_bathroom_lights
|
- light.upstairs_bathroom_lights
|
||||||
- light.downstairs_bathroom_lights
|
- light.downstairs_bathroom_lights
|
||||||
- light.tina_lamp
|
- light.tina_lamp
|
||||||
|
- light.tina_desk_strip
|
||||||
|
- light.stairwell_led_strip
|
@ -113,6 +113,10 @@ automation:
|
|||||||
trigger:
|
trigger:
|
||||||
platform: time
|
platform: time
|
||||||
at: input_datetime.audible_notification_on
|
at: input_datetime.audible_notification_on
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.vacation_mode
|
||||||
|
state: 'off'
|
||||||
action:
|
action:
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
entity_id: input_boolean.audible_notifications
|
entity_id: input_boolean.audible_notifications
|
||||||
@ -130,6 +134,10 @@ automation:
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: input_datetime.audible_notification_off
|
at: input_datetime.audible_notification_off
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.vacation_mode
|
||||||
|
state: 'off'
|
||||||
action:
|
action:
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
entity_id: input_boolean.audible_notifications
|
entity_id: input_boolean.audible_notifications
|
||||||
@ -148,6 +156,9 @@ automation:
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.kallen_overnight
|
entity_id: input_boolean.kallen_overnight
|
||||||
state: 'off'
|
state: 'off'
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.vacation_mode
|
||||||
|
state: 'off'
|
||||||
action:
|
action:
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
@ -183,6 +194,10 @@ automation:
|
|||||||
- platform: time
|
- platform: time
|
||||||
at: input_datetime.nightly_briefing
|
at: input_datetime.nightly_briefing
|
||||||
id: house-nightly
|
id: house-nightly
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.vacation_mode
|
||||||
|
state: 'off'
|
||||||
action:
|
action:
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
|
@ -339,6 +339,8 @@ template:
|
|||||||
false
|
false
|
||||||
{% elif is_state('input_boolean.kallen_overnight','on') and (states('sensor.people_sleeping_total') | int == 2) %}
|
{% elif is_state('input_boolean.kallen_overnight','on') and (states('sensor.people_sleeping_total') | int == 2) %}
|
||||||
false
|
false
|
||||||
|
{% elif is_state('input_boolean.vacation_mode','on') %}
|
||||||
|
false
|
||||||
{% else %}
|
{% else %}
|
||||||
true
|
true
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -715,10 +715,14 @@ automation:
|
|||||||
entity_id: switch.presence_simulation
|
entity_id: switch.presence_simulation
|
||||||
- service: input_boolean.turn_off
|
- service: input_boolean.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: input_boolean.front_porch_light_on
|
entity_id:
|
||||||
|
- input_boolean.front_porch_light_on
|
||||||
|
- input_boolean.audible_notifications
|
||||||
- service: automation.turn_on
|
- service: automation.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id: automation.auto_night_porch_light
|
entity_id:
|
||||||
|
- automation.auto_night_porch_light
|
||||||
|
- automation.vacation_lighting
|
||||||
- if:
|
- if:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.early_night_mode
|
entity_id: binary_sensor.early_night_mode
|
||||||
@ -736,7 +740,9 @@ automation:
|
|||||||
entity_id: input_boolean.front_porch_light_on
|
entity_id: input_boolean.front_porch_light_on
|
||||||
- service: automation.turn_off
|
- service: automation.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: automation.auto_night_porch_light
|
entity_id:
|
||||||
|
- automation.auto_night_porch_light
|
||||||
|
- automation.vacation_lighting
|
||||||
data:
|
data:
|
||||||
stop_actions: true
|
stop_actions: true
|
||||||
- if:
|
- if:
|
||||||
@ -776,6 +782,18 @@ automation:
|
|||||||
entity_id: climate.master_bedroom_aircon
|
entity_id: climate.master_bedroom_aircon
|
||||||
data:
|
data:
|
||||||
fan_mode: Auto
|
fan_mode: Auto
|
||||||
|
- if:
|
||||||
|
- condition: template
|
||||||
|
value_template: >
|
||||||
|
{% from 'time.jinja' import ct %}
|
||||||
|
{% set begin = state_attr('input_datetime.audible_notification_on','timestamp') %}
|
||||||
|
{% set end = state_attr('input_datetime.audible_notification_off','timestamp') %}
|
||||||
|
{% set ct = ct() %}
|
||||||
|
{{ begin < ct < end }}
|
||||||
|
then:
|
||||||
|
- service: input_boolean.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: input_boolean.audible_notifications
|
||||||
|
|
||||||
- id: 6d668686-c88e-4eae-9b91-1a2bdebce290
|
- id: 6d668686-c88e-4eae-9b91-1a2bdebce290
|
||||||
alias: Auto Night Porch Light
|
alias: Auto Night Porch Light
|
||||||
|
Reference in New Issue
Block a user