mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
so many freaking changes!
This commit is contained in:
@@ -33,6 +33,12 @@ condition:
|
||||
entity_id: light.utility_room_vanity
|
||||
state: "on"
|
||||
|
||||
variables:
|
||||
switch_name: switch.utility_room_motion_switch
|
||||
light_name: utility_room_hue
|
||||
mode_name: input_select.utility_room_mode
|
||||
automatic_profile: input_select.automatic_light_profile
|
||||
|
||||
action:
|
||||
- alias: "Make sure Z-Wave switch is turned on"
|
||||
action: homeassistant.turn_on
|
||||
@@ -47,10 +53,10 @@ action:
|
||||
sequence:
|
||||
- action: scene.turn_on
|
||||
target:
|
||||
entity_id: "scene.utility_room_hue_{{states('input_select.automatic_light_profile').lower().replace(' ','_')}}"
|
||||
entity_id: "scene.{{light_name}}_{{states(automatic_profile).lower().replace(' ','_')}}"
|
||||
default:
|
||||
- action: scene.turn_on
|
||||
target:
|
||||
entity_id: "scene.utility_room_hue_{{states('input_select.utility_room_mode').lower().replace(' ','_')}}"
|
||||
entity_id: "scene.{{light_name}}_{{states(mode_name).lower().replace(' ','_')}}"
|
||||
|
||||
- delay: 1
|
||||
|
||||
Reference in New Issue
Block a user