Initial adjustments for new Ring system
This commit is contained in:
@ -34,3 +34,9 @@ kallen_overnight:
|
|||||||
living_room_dynamic_scenes:
|
living_room_dynamic_scenes:
|
||||||
name: Living Room Dynamic Scenes
|
name: Living Room Dynamic Scenes
|
||||||
icon: mdi:animation
|
icon: mdi:animation
|
||||||
|
night_mode:
|
||||||
|
name: Night Mode
|
||||||
|
icon: mdi:lightbulb-night
|
||||||
|
early_night_mode:
|
||||||
|
name: Early Night Mode
|
||||||
|
icon: mdi:lightbulb-night-outline
|
||||||
|
48
packages/lighting.yaml
Normal file
48
packages/lighting.yaml
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
automation:
|
||||||
|
- id: 6fe64356-00a2-4cad-bb85-f6dd05f29de7
|
||||||
|
alias: Upstairs Bathroom Motion Lights
|
||||||
|
description: Turns up lights in the upstairs bathroom at night when someone walks into the room.
|
||||||
|
mode: queued
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.upstairs_bathroom_motion
|
||||||
|
to: 'on'
|
||||||
|
id: motion-on
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.upstairs_bathroom_motion
|
||||||
|
to: 'off'
|
||||||
|
id: motion-off
|
||||||
|
for:
|
||||||
|
hours: 0
|
||||||
|
minutes: 2
|
||||||
|
seconds: 0
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: light.upstairs_bathroom_lights
|
||||||
|
state: 'on'
|
||||||
|
action:
|
||||||
|
- if:
|
||||||
|
- condition: trigger
|
||||||
|
id: motion-on
|
||||||
|
then:
|
||||||
|
- service: input_select.select_option
|
||||||
|
target:
|
||||||
|
entity_id: input_select.upstairs_bathroom_scenes
|
||||||
|
data:
|
||||||
|
option: Adaptive
|
||||||
|
- if:
|
||||||
|
- condition: trigger
|
||||||
|
id: motion-off
|
||||||
|
then:
|
||||||
|
- service: input_select.select_option
|
||||||
|
target:
|
||||||
|
entity_id: input_select.upstairs_bathroom_scenes
|
||||||
|
data:
|
||||||
|
option: >-
|
||||||
|
{% if is_state('input_boolean.early_night_mode','on') and is_state('input_boolean.night_mode','off') %}
|
||||||
|
Nightlight
|
||||||
|
{% elif is_state('input_boolean.night_mode','on') %}
|
||||||
|
Single Nightlight
|
||||||
|
{% else %}
|
||||||
|
Adaptive
|
||||||
|
{% endif %}
|
21
scripts.yaml
21
scripts.yaml
@ -21,14 +21,18 @@ 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:
|
||||||
- switch.adaptive_lighting_sleep_mode_upstairs_hallway
|
- switch.adaptive_lighting_sleep_mode_upstairs_hallway
|
||||||
- switch.adaptive_lighting_sleep_mode_mud_room
|
- switch.adaptive_lighting_sleep_mode_mud_room
|
||||||
- switch.adaptive_lighting_sleep_mode_dining_room
|
- switch.adaptive_lighting_sleep_mode_dining_room
|
||||||
- switch.adaptive_lighting_sleep_mode_upstairs_bathroom
|
|
||||||
- switch.adaptive_lighting_sleep_mode_tina_lamp
|
- switch.adaptive_lighting_sleep_mode_tina_lamp
|
||||||
|
- switch.adaptive_lighting_sleep_mode_upstairs_bathroom
|
||||||
data: {}
|
data: {}
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
target:
|
target:
|
||||||
@ -45,6 +49,11 @@ give_me_darkness:
|
|||||||
area_id:
|
area_id:
|
||||||
- upstairs_bathroom
|
- upstairs_bathroom
|
||||||
- dining_room
|
- dining_room
|
||||||
|
- service: input_select.select_option
|
||||||
|
data:
|
||||||
|
option: Nightlight
|
||||||
|
target:
|
||||||
|
entity_id: input_select.upstairs_bathroom_scenes
|
||||||
mode: single
|
mode: single
|
||||||
icon: mdi:weather-night
|
icon: mdi:weather-night
|
||||||
start_youtube:
|
start_youtube:
|
||||||
@ -141,9 +150,9 @@ family_is_away:
|
|||||||
- upstairs_bathroom
|
- upstairs_bathroom
|
||||||
data: {}
|
data: {}
|
||||||
- service: alarm_control_panel.alarm_arm_away
|
- service: alarm_control_panel.alarm_arm_away
|
||||||
target:
|
|
||||||
entity_id: alarm_control_panel.alexa_guard_9ee3b
|
|
||||||
data: {}
|
data: {}
|
||||||
|
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:
|
||||||
@ -154,9 +163,9 @@ family_is_home:
|
|||||||
entity_id: switch.presence_simulation
|
entity_id: switch.presence_simulation
|
||||||
data: {}
|
data: {}
|
||||||
- service: alarm_control_panel.alarm_disarm
|
- service: alarm_control_panel.alarm_disarm
|
||||||
target:
|
|
||||||
entity_id: alarm_control_panel.alexa_guard_9ee3b
|
|
||||||
data: {}
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: alarm_control_panel.stratton_ave_alarm
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
@ -261,14 +270,12 @@ going_upstairs:
|
|||||||
- switch.adaptive_lighting_sleep_mode_basement_studio
|
- switch.adaptive_lighting_sleep_mode_basement_studio
|
||||||
- switch.adaptive_lighting_sleep_mode_mud_room
|
- switch.adaptive_lighting_sleep_mode_mud_room
|
||||||
- switch.adaptive_lighting_sleep_mode_upstairs_hallway
|
- switch.adaptive_lighting_sleep_mode_upstairs_hallway
|
||||||
- switch.adaptive_lighting_sleep_mode_upstairs_bathroom
|
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data: {}
|
data: {}
|
||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.living_room_lights
|
- light.living_room_lights
|
||||||
- light.basement_led_strip_1
|
- light.basement_led_strip_1
|
||||||
- light.upstairs_bathroom_lights
|
|
||||||
mode: single
|
mode: single
|
||||||
icon: hue:room-stairs
|
icon: hue:room-stairs
|
||||||
basement_on:
|
basement_on:
|
||||||
|
Reference in New Issue
Block a user