More security and motion-lighting tweaks
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
input_boolean:
|
||||||
|
shower_mode:
|
||||||
|
name: Shower Mode
|
||||||
|
icon: mdi:shower
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- id: 6fe64356-00a2-4cad-bb85-f6dd05f29de7
|
- id: 6fe64356-00a2-4cad-bb85-f6dd05f29de7
|
||||||
alias: Upstairs Bathroom Motion Lights
|
alias: Upstairs Bathroom Motion Lights
|
||||||
@ -14,12 +19,15 @@ automation:
|
|||||||
id: motion-off
|
id: motion-off
|
||||||
for:
|
for:
|
||||||
hours: 0
|
hours: 0
|
||||||
minutes: 2
|
minutes: 1
|
||||||
seconds: 0
|
seconds: 30
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: light.upstairs_bathroom_lights
|
entity_id: input_boolean.early_night_mode
|
||||||
state: 'on'
|
state: 'on'
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.shower_mode
|
||||||
|
state: 'off'
|
||||||
action:
|
action:
|
||||||
- if:
|
- if:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
@ -46,3 +54,54 @@ automation:
|
|||||||
{% else %}
|
{% else %}
|
||||||
Adaptive
|
Adaptive
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
- id: f52eca30-c2e4-43dc-b220-7e9be96b465a
|
||||||
|
alias: Shower Mode
|
||||||
|
description: Temporarily override upstairs bathroom motion lights for the purpose of taking a shower
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_boolean.shower_mode
|
||||||
|
from: 'off'
|
||||||
|
to: 'on'
|
||||||
|
id: shower-on
|
||||||
|
- platform: state
|
||||||
|
entity_id: input_boolean.shower_mode
|
||||||
|
from: 'on'
|
||||||
|
to: 'off'
|
||||||
|
id: shower-off
|
||||||
|
action:
|
||||||
|
- if:
|
||||||
|
- condition: trigger
|
||||||
|
id: shower-on
|
||||||
|
then:
|
||||||
|
- service: input_select.select_option
|
||||||
|
target:
|
||||||
|
entity_id: input_select.upstairs_bathroom_scenes
|
||||||
|
data:
|
||||||
|
option: Bright
|
||||||
|
- if:
|
||||||
|
- condition: trigger
|
||||||
|
id: shower-off
|
||||||
|
then:
|
||||||
|
- if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.early_night_mode
|
||||||
|
state: 'on'
|
||||||
|
then:
|
||||||
|
- service: input_select.select_option
|
||||||
|
target:
|
||||||
|
entity_id: input_select.upstairs_bathroom_scenes
|
||||||
|
data:
|
||||||
|
option: Adaptive
|
||||||
|
else:
|
||||||
|
- service: light.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: light.upstairs_bathroom_lights
|
||||||
|
- service: switch.turn_on
|
||||||
|
target:
|
||||||
|
entity_id: switch.adaptive_lighting_upstairs_bathroom
|
||||||
|
- service: input_text.set_value
|
||||||
|
target:
|
||||||
|
entity_id: input_text.upstairs_bathroom_selected_scene
|
||||||
|
data:
|
||||||
|
value: Adaptive
|
@ -207,11 +207,7 @@ script:
|
|||||||
- downstairs_bathroom
|
- downstairs_bathroom
|
||||||
- upstairs_bathroom
|
- upstairs_bathroom
|
||||||
data: {}
|
data: {}
|
||||||
- service: alarm_control_panel.alarm_arm_away
|
- service: script.security_arm_away
|
||||||
data:
|
|
||||||
code: !secret ring_alarm_code
|
|
||||||
target:
|
|
||||||
entity_id: alarm_control_panel.stratton_ave_alarm
|
|
||||||
mode: single
|
mode: single
|
||||||
icon: mdi:shield-lock
|
icon: mdi:shield-lock
|
||||||
family_is_home:
|
family_is_home:
|
||||||
@ -221,11 +217,7 @@ script:
|
|||||||
target:
|
target:
|
||||||
entity_id: switch.presence_simulation
|
entity_id: switch.presence_simulation
|
||||||
data: {}
|
data: {}
|
||||||
- service: alarm_control_panel.alarm_disarm
|
- service: script.security_disarm
|
||||||
data:
|
|
||||||
code: !secret ring_alarm_code
|
|
||||||
target:
|
|
||||||
entity_id: alarm_control_panel.stratton_ave_alarm
|
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
|
@ -74,6 +74,9 @@ script:
|
|||||||
entity_id: alarm_control_panel.stratton_ave_alarm
|
entity_id: alarm_control_panel.stratton_ave_alarm
|
||||||
data:
|
data:
|
||||||
code: !secret ring_alarm_code
|
code: !secret ring_alarm_code
|
||||||
|
- service: alarm_control_panel.alarm_arm_away
|
||||||
|
target:
|
||||||
|
entity_id: alarm_control_panel.alexa_guard_9ee3b
|
||||||
|
|
||||||
security_disarm:
|
security_disarm:
|
||||||
alias: Security Disarm
|
alias: Security Disarm
|
||||||
@ -82,4 +85,7 @@ script:
|
|||||||
target:
|
target:
|
||||||
entity_id: alarm_control_panel.stratton_ave_alarm
|
entity_id: alarm_control_panel.stratton_ave_alarm
|
||||||
data:
|
data:
|
||||||
code: !secret ring_alarm_code
|
code: !secret ring_alarm_code
|
||||||
|
- service: alarm_control_panel.alarm_disarm
|
||||||
|
target:
|
||||||
|
entity_id: alarm_control_panel.alexa_guard_9ee3b
|
@ -21,10 +21,6 @@ stop_netflix:
|
|||||||
give_me_darkness:
|
give_me_darkness:
|
||||||
alias: Give Me Darkness
|
alias: Give Me Darkness
|
||||||
sequence:
|
sequence:
|
||||||
- service: input_boolean.turn_on
|
|
||||||
data: {}
|
|
||||||
target:
|
|
||||||
entity_id: input_boolean.early_night_mode
|
|
||||||
- service: switch.turn_on
|
- service: switch.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
@ -54,6 +50,7 @@ give_me_darkness:
|
|||||||
option: Nightlight
|
option: Nightlight
|
||||||
target:
|
target:
|
||||||
entity_id: input_select.upstairs_bathroom_scenes
|
entity_id: input_select.upstairs_bathroom_scenes
|
||||||
|
- service: script.security_arm_home
|
||||||
mode: single
|
mode: single
|
||||||
icon: mdi:weather-night
|
icon: mdi:weather-night
|
||||||
start_youtube:
|
start_youtube:
|
||||||
|
Reference in New Issue
Block a user