Handling for wife's new desk and lighting setup
Tweak day mode scene for the desk
This commit is contained in:
Submodule node-red/projects/NerdFlows updated: 819c634e5e...be18131875
@ -20,6 +20,9 @@ input_boolean:
|
|||||||
holiday_mode:
|
holiday_mode:
|
||||||
name: Holiday Mode
|
name: Holiday Mode
|
||||||
icon: mdi:string-lights
|
icon: mdi:string-lights
|
||||||
|
give_me_darkness:
|
||||||
|
name: Give Me Darkness
|
||||||
|
icon: mdi:weather-night
|
||||||
|
|
||||||
input_number:
|
input_number:
|
||||||
upstairs_bathroom_motion_off_delay:
|
upstairs_bathroom_motion_off_delay:
|
||||||
@ -182,6 +185,15 @@ input_select:
|
|||||||
- Nightlight
|
- Nightlight
|
||||||
initial: Select
|
initial: Select
|
||||||
icon: hue:room-dining
|
icon: hue:room-dining
|
||||||
|
tina_desk_scenes:
|
||||||
|
name: Tina Desk Scenes
|
||||||
|
options:
|
||||||
|
- Select
|
||||||
|
- Day Mode
|
||||||
|
- Evening Mode
|
||||||
|
- Night Mode
|
||||||
|
initial: Select
|
||||||
|
icon: mdi:desk
|
||||||
holiday_animation:
|
holiday_animation:
|
||||||
name: Holiday Animation
|
name: Holiday Animation
|
||||||
options:
|
options:
|
||||||
@ -215,6 +227,8 @@ input_text:
|
|||||||
name: Front Porch Selected Scene
|
name: Front Porch Selected Scene
|
||||||
tina_lamp_selected_scene:
|
tina_lamp_selected_scene:
|
||||||
name: Tina Lamp Selected Scene
|
name: Tina Lamp Selected Scene
|
||||||
|
tina_desk_selected_scene:
|
||||||
|
name: Tina Desk Selected Scene
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
- platform: animated_scenes
|
- platform: animated_scenes
|
||||||
@ -446,6 +460,60 @@ script:
|
|||||||
target:
|
target:
|
||||||
entity_id: input_boolean.white_noise_emma_bedroom
|
entity_id: input_boolean.white_noise_emma_bedroom
|
||||||
|
|
||||||
|
tina_desk_lights_handler:
|
||||||
|
alias: Tina Desk Lights Handler
|
||||||
|
mode: queued
|
||||||
|
max: 2
|
||||||
|
sequence:
|
||||||
|
- if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: light.tina_desk_lights
|
||||||
|
state: 'off'
|
||||||
|
then:
|
||||||
|
- if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.early_night_mode
|
||||||
|
state: 'off'
|
||||||
|
then:
|
||||||
|
- service: input_select.select_option
|
||||||
|
target:
|
||||||
|
entity_id: input_select.tina_desk_scenes
|
||||||
|
data:
|
||||||
|
option: Day Mode
|
||||||
|
- if:
|
||||||
|
- condition: and
|
||||||
|
conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.early_night_mode
|
||||||
|
state: 'on'
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.give_me_darkness
|
||||||
|
state: 'off'
|
||||||
|
then:
|
||||||
|
- service: input_select.select_option
|
||||||
|
target:
|
||||||
|
entity_id: input_select.tina_desk_scenes
|
||||||
|
data:
|
||||||
|
option: Evening Mode
|
||||||
|
- if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.give_me_darkness
|
||||||
|
state: 'on'
|
||||||
|
then:
|
||||||
|
- service: input_select.select_option
|
||||||
|
target:
|
||||||
|
entity_id: input_select.tina_desk_scenes
|
||||||
|
data:
|
||||||
|
option: Night Mode
|
||||||
|
- if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: light.tina_desk_lights
|
||||||
|
state: 'on'
|
||||||
|
then:
|
||||||
|
- service: light.turn_off
|
||||||
|
target:
|
||||||
|
entity_id: light.tina_desk_lights
|
||||||
|
|
||||||
scene:
|
scene:
|
||||||
- name: Adaptive in Living Room
|
- name: Adaptive in Living Room
|
||||||
icon: mdi:palette
|
icon: mdi:palette
|
||||||
@ -536,6 +604,53 @@ scene:
|
|||||||
entities:
|
entities:
|
||||||
input_select.dining_room_lamp_scenes:
|
input_select.dining_room_lamp_scenes:
|
||||||
state: "Nightlight"
|
state: "Nightlight"
|
||||||
|
- name: Day Mode in Tina Desk
|
||||||
|
icon: mdi:palette
|
||||||
|
entities:
|
||||||
|
light.tina_lamp:
|
||||||
|
state: "on"
|
||||||
|
light.tina_desk_strip:
|
||||||
|
state: "on"
|
||||||
|
rgb_color:
|
||||||
|
- 0
|
||||||
|
- 255
|
||||||
|
- 255
|
||||||
|
brightness: 89
|
||||||
|
input_select.tina_lamp_scenes:
|
||||||
|
state: "Adaptive"
|
||||||
|
- name: Evening Mode in Tina Desk
|
||||||
|
icon: mdi:palette
|
||||||
|
entities:
|
||||||
|
light.tina_lamp:
|
||||||
|
state: "on"
|
||||||
|
input_select.tina_lamp_scenes:
|
||||||
|
state: "Adaptive"
|
||||||
|
light.tina_desk_strip:
|
||||||
|
state: "on"
|
||||||
|
rgb_color:
|
||||||
|
- 127
|
||||||
|
- 0
|
||||||
|
- 255
|
||||||
|
brightness: 128
|
||||||
|
- name: Night Mode in Tina Desk
|
||||||
|
icon: mdi:palette
|
||||||
|
entities:
|
||||||
|
switch.adaptive_lighting_tina_lamp:
|
||||||
|
state: "off"
|
||||||
|
light.tina_lamp:
|
||||||
|
state: "on"
|
||||||
|
rgb_color:
|
||||||
|
- 127
|
||||||
|
- 0
|
||||||
|
- 255
|
||||||
|
brightness: 51
|
||||||
|
light.tina_desk_strip:
|
||||||
|
state: "on"
|
||||||
|
rgb_color:
|
||||||
|
- 127
|
||||||
|
- 0
|
||||||
|
- 255
|
||||||
|
brightness: 128
|
||||||
- name: Adaptive in Tina Lamp
|
- name: Adaptive in Tina Lamp
|
||||||
icon: mdi:palette
|
icon: mdi:palette
|
||||||
entities:
|
entities:
|
||||||
|
@ -292,6 +292,7 @@ automation:
|
|||||||
- light.living_room_color_3
|
- light.living_room_color_3
|
||||||
- light.tina_lamp_top
|
- light.tina_lamp_top
|
||||||
- light.tina_lamp_side
|
- light.tina_lamp_side
|
||||||
|
- light.tina_desk_strip
|
||||||
- alias: "Save Current Adaptive State"
|
- alias: "Save Current Adaptive State"
|
||||||
service: scene.create
|
service: scene.create
|
||||||
data:
|
data:
|
||||||
@ -311,6 +312,7 @@ automation:
|
|||||||
entity_id:
|
entity_id:
|
||||||
- light.living_room_lights
|
- light.living_room_lights
|
||||||
- light.tina_lamp
|
- light.tina_lamp
|
||||||
|
- light.tina_desk_strip
|
||||||
data:
|
data:
|
||||||
color_name: green
|
color_name: green
|
||||||
- alias: "Flash Lights"
|
- alias: "Flash Lights"
|
||||||
@ -319,6 +321,7 @@ automation:
|
|||||||
entity_id:
|
entity_id:
|
||||||
- light.living_room_lights
|
- light.living_room_lights
|
||||||
- light.tina_lamp
|
- light.tina_lamp
|
||||||
|
- light.tina_desk_strip
|
||||||
data:
|
data:
|
||||||
flash: long
|
flash: long
|
||||||
- alias: "End early if door opened"
|
- alias: "End early if door opened"
|
||||||
@ -371,6 +374,7 @@ script:
|
|||||||
- dining_room
|
- dining_room
|
||||||
- downstairs_bathroom
|
- downstairs_bathroom
|
||||||
- upstairs_bathroom
|
- upstairs_bathroom
|
||||||
|
- tina_desk
|
||||||
- service: fan.turn_off
|
- service: fan.turn_off
|
||||||
target:
|
target:
|
||||||
area_id:
|
area_id:
|
||||||
@ -449,6 +453,8 @@ script:
|
|||||||
- living_room
|
- living_room
|
||||||
- dining_room
|
- dining_room
|
||||||
- mud_room
|
- mud_room
|
||||||
|
entity_id:
|
||||||
|
- light.tina_lamp
|
||||||
- delay:
|
- delay:
|
||||||
hours: 0
|
hours: 0
|
||||||
minutes: 0
|
minutes: 0
|
||||||
@ -458,10 +464,15 @@ script:
|
|||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_select.living_room_scenes
|
- input_select.living_room_scenes
|
||||||
- input_select.tina_lamp_scenes
|
|
||||||
- input_select.mud_room_scenes
|
- input_select.mud_room_scenes
|
||||||
data:
|
data:
|
||||||
option: Adaptive
|
option: Adaptive
|
||||||
|
- service: input_select.select_option
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- input_select.tina_desk_scenes
|
||||||
|
data:
|
||||||
|
option: Day Mode
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
target:
|
target:
|
||||||
entity_id: input_select.dining_room_lamp_scenes
|
entity_id: input_select.dining_room_lamp_scenes
|
||||||
@ -500,6 +511,7 @@ script:
|
|||||||
- living_room
|
- living_room
|
||||||
- dining_room
|
- dining_room
|
||||||
- mud_room
|
- mud_room
|
||||||
|
- tina_desk
|
||||||
- delay:
|
- delay:
|
||||||
hours: 0
|
hours: 0
|
||||||
minutes: 0
|
minutes: 0
|
||||||
@ -509,10 +521,15 @@ script:
|
|||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_select.living_room_scenes
|
- input_select.living_room_scenes
|
||||||
- input_select.tina_lamp_scenes
|
|
||||||
- input_select.mud_room_scenes
|
- input_select.mud_room_scenes
|
||||||
data:
|
data:
|
||||||
option: Adaptive
|
option: Adaptive
|
||||||
|
- service: input_select.select_option
|
||||||
|
target:
|
||||||
|
entity_id:
|
||||||
|
- input_select.tina_desk_scenes
|
||||||
|
data:
|
||||||
|
option: Night Mode
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
target:
|
target:
|
||||||
entity_id: input_select.dining_room_lamp_scenes
|
entity_id: input_select.dining_room_lamp_scenes
|
||||||
|
@ -231,6 +231,7 @@ automation:
|
|||||||
- light.living_room_color_3
|
- light.living_room_color_3
|
||||||
- light.tina_lamp_side
|
- light.tina_lamp_side
|
||||||
- light.tina_lamp_top
|
- light.tina_lamp_top
|
||||||
|
- light.tina_desk_strip
|
||||||
- delay:
|
- delay:
|
||||||
seconds: 1
|
seconds: 1
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
@ -243,6 +244,7 @@ automation:
|
|||||||
entity_id:
|
entity_id:
|
||||||
- light.living_room_lights
|
- light.living_room_lights
|
||||||
- light.tina_lamp
|
- light.tina_lamp
|
||||||
|
- light.tina_desk_strip
|
||||||
data:
|
data:
|
||||||
color_name: red
|
color_name: red
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
|
@ -1581,6 +1581,7 @@ script:
|
|||||||
- light.living_room_color_3
|
- light.living_room_color_3
|
||||||
- light.tina_lamp_side
|
- light.tina_lamp_side
|
||||||
- light.tina_lamp_top
|
- light.tina_lamp_top
|
||||||
|
- light.tina_desk_strip
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
@ -1589,6 +1590,7 @@ script:
|
|||||||
- light.living_room_color_3
|
- light.living_room_color_3
|
||||||
- light.tina_lamp_side
|
- light.tina_lamp_side
|
||||||
- light.tina_lamp_top
|
- light.tina_lamp_top
|
||||||
|
- light.tina_desk_strip
|
||||||
data:
|
data:
|
||||||
color_name: red
|
color_name: red
|
||||||
- service: script.status_annc
|
- service: script.status_annc
|
||||||
|
@ -31,13 +31,17 @@ give_me_darkness:
|
|||||||
entity_id:
|
entity_id:
|
||||||
- switch.adaptive_lighting_sleep_mode_dining_room
|
- switch.adaptive_lighting_sleep_mode_dining_room
|
||||||
data: {}
|
data: {}
|
||||||
|
- service: input_select.select_option
|
||||||
|
data:
|
||||||
|
option: Night Mode
|
||||||
|
target:
|
||||||
|
entity_id: input_select.tina_desk_scenes
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_select.upstairs_hallway_scenes
|
- input_select.upstairs_hallway_scenes
|
||||||
- input_select.mud_room_scenes
|
- input_select.mud_room_scenes
|
||||||
- input_select.upstairs_bathroom_scenes
|
- input_select.upstairs_bathroom_scenes
|
||||||
- input_select.tina_lamp_scenes
|
|
||||||
data:
|
data:
|
||||||
option: Nightlight
|
option: Nightlight
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
|
@ -54,6 +54,7 @@
|
|||||||
states.light.downstairs_bathroom_right,
|
states.light.downstairs_bathroom_right,
|
||||||
states.light.tina_lamp_top,
|
states.light.tina_lamp_top,
|
||||||
states.light.tina_lamp_side,
|
states.light.tina_lamp_side,
|
||||||
|
states.light.tina_desk_strip,
|
||||||
states.light.basement_tall_lamp,
|
states.light.basement_tall_lamp,
|
||||||
states.light.basement_short_lamp,
|
states.light.basement_short_lamp,
|
||||||
states.light.basement_stairwell,
|
states.light.basement_stairwell,
|
||||||
@ -89,6 +90,7 @@
|
|||||||
states.light.downstairs_bathroom_right,
|
states.light.downstairs_bathroom_right,
|
||||||
states.light.tina_lamp_top,
|
states.light.tina_lamp_top,
|
||||||
states.light.tina_lamp_side,
|
states.light.tina_lamp_side,
|
||||||
|
states.light.tina_desk_strip,
|
||||||
states.light.living_room_christmas_tree
|
states.light.living_room_christmas_tree
|
||||||
] %}
|
] %}
|
||||||
{{ lights | selectattr('state','eq','on') | list | count }}
|
{{ lights | selectattr('state','eq','on') | list | count }}
|
||||||
|
Reference in New Issue
Block a user