Leave hallway automation to motion lighting
This commit is contained in:
@ -979,14 +979,12 @@ script:
|
|||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.emma_bedroom_light
|
- light.emma_bedroom_light
|
||||||
- light.hallway_overhead
|
|
||||||
- delay:
|
- delay:
|
||||||
seconds: 1
|
seconds: 1
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_select.emma_bedroom_scenes
|
- input_select.emma_bedroom_scenes
|
||||||
- input_select.upstairs_hallway_scenes
|
|
||||||
data:
|
data:
|
||||||
option: Adaptive
|
option: Adaptive
|
||||||
- service: adaptive_lighting.set_manual_control
|
- service: adaptive_lighting.set_manual_control
|
||||||
@ -1135,20 +1133,6 @@ script:
|
|||||||
time: >
|
time: >
|
||||||
{% from 'time.jinja' import current_time %}
|
{% from 'time.jinja' import current_time %}
|
||||||
{{ current_time('time',24) }}
|
{{ current_time('time',24) }}
|
||||||
- if:
|
|
||||||
- condition: state
|
|
||||||
entity_id: binary_sensor.early_night_mode
|
|
||||||
state: 'on'
|
|
||||||
then:
|
|
||||||
- service: light.turn_on
|
|
||||||
target:
|
|
||||||
entity_id: light.hallway_overhead
|
|
||||||
- service: input_select.select_option
|
|
||||||
target:
|
|
||||||
entity_id:
|
|
||||||
- input_select.upstairs_hallway_scenes
|
|
||||||
data:
|
|
||||||
option: Adaptive
|
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
target:
|
target:
|
||||||
entity_id: switch.adaptive_lighting_emma_bedroom
|
entity_id: switch.adaptive_lighting_emma_bedroom
|
||||||
|
17
scripts.yaml
17
scripts.yaml
@ -264,7 +264,6 @@ going_upstairs:
|
|||||||
- input_select.basement_studio_scenes
|
- input_select.basement_studio_scenes
|
||||||
- input_select.tina_lamp_scenes
|
- input_select.tina_lamp_scenes
|
||||||
- input_select.mud_room_scenes
|
- input_select.mud_room_scenes
|
||||||
- input_select.upstairs_hallway_scenes
|
|
||||||
- input_select.living_room_scenes
|
- input_select.living_room_scenes
|
||||||
alias: Set scenes
|
alias: Set scenes
|
||||||
- service: input_boolean.turn_on
|
- service: input_boolean.turn_on
|
||||||
@ -1587,22 +1586,8 @@ goodnight_on_second_floor:
|
|||||||
- kallen_bedroom
|
- kallen_bedroom
|
||||||
- master_bedroom
|
- master_bedroom
|
||||||
- master_bedroom_closet
|
- master_bedroom_closet
|
||||||
|
- upstairs_hallway
|
||||||
data: {}
|
data: {}
|
||||||
- if:
|
|
||||||
- condition: state
|
|
||||||
entity_id: input_boolean.guest_mode
|
|
||||||
state: 'on'
|
|
||||||
then:
|
|
||||||
- service: input_select.select_option
|
|
||||||
target:
|
|
||||||
entity_id: input_select.upstairs_hallway_scenes
|
|
||||||
data:
|
|
||||||
option: Nightlight
|
|
||||||
else:
|
|
||||||
- service: light.turn_off
|
|
||||||
target:
|
|
||||||
entity_id: light.hallway_overhead
|
|
||||||
data: {}
|
|
||||||
- if:
|
- if:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.kallen_overnight
|
entity_id: input_boolean.kallen_overnight
|
||||||
|
Reference in New Issue
Block a user