15 lines
6.0 KiB
JSON
15 lines
6.0 KiB
JSON
[
|
|
{
|
|
"id": "Apply Selected Dynamic Scene to Room",
|
|
"result": {
|
|
"structured": "TRIGGER: When sofa dynamic scene [input_boolean.sofa_dynamic_scene] changes state OR When dining table dynamic scene [input_boolean.dining_table_dynamic_scene] changes state OR When master bedroom dynamic scene [input_boolean.master_bedroom_dynamic_scene] changes state OR When baby room dynamic scene [input_boolean.baby_room_dynamic_scene] changes state OR When single guest room dynamic scene [input_boolean.single_guest_room_dynamic_scene] changes state OR When multiple guest room dynamic scene [input_boolean.multiple_guest_room_dynamic_scene] changes state. CONDITIONS: None. ACTIONS: Choose based on the triggering entity and its new state: IF (trigger is sofa dynamic scene [input_boolean.sofa_dynamic_scene] AND new state is off) THEN run script apply selected dynamic scene to room [script.apply_selected_dynamic_scene_to_room] with parameters for sofa room lights and presence automation. IF (trigger is sofa dynamic scene [input_boolean.sofa_dynamic_scene] AND new state is on) THEN check presence sensor sofa radar target [binary_sensor.presence_sensor_sofa_radar_target]; IF (presence sensor is on) THEN call stop all dynamic scenes [scene_presets.stop_all_dynamic_scenes] AND turn on lights sofa [light.lights_sofa] to 100% brightness with sun-based color temperature [sensor.sun_based_color_temperature] over 3 seconds; IF (presence sensor is off) THEN call stop all dynamic scenes [scene_presets.stop_all_dynamic_scenes] AND turn off light one sofa [light.light_one_sofa], light two sofa [light.light_two_sofa], light four sofa [light.light_four_sofa], and light three sofa [light.light_three_sofa] sequentially with 2-second delays and 3-second transitions. IF (trigger is dining table dynamic scene [input_boolean.dining_table_dynamic_scene] AND new state is off) THEN run script apply selected dynamic scene to room [script.apply_selected_dynamic_scene_to_room] with parameters for dining table room lights and presence automation. IF (trigger is dining table dynamic scene [input_boolean.dining_table_dynamic_scene] AND new state is on) THEN check presence sensors dining table [binary_sensor.presence_sensors_dining_table]; IF (presence sensor is on) THEN call stop all dynamic scenes [scene_presets.stop_all_dynamic_scenes] AND turn on lights dt only [light.lights_dt_only] to 100% brightness with sun-based color temperature [sensor.sun_based_color_temperature] over 3 seconds; IF (presence sensor is off) THEN call stop all dynamic scenes [scene_presets.stop_all_dynamic_scenes] AND turn off light three ktc dt [light.light_three_ktc_dt], light two ktc dt [light.light_two_ktc_dt], light one ktc dt [light.light_one_ktc_dt], light one dt [light.light_one_dt], light two dt [light.light_two_dt], and light three dt [light.light_three_dt] sequentially with 2-second delays and 3-second transitions. IF (trigger is master bedroom dynamic scene [input_boolean.master_bedroom_dynamic_scene] AND new state is off) THEN run script apply selected dynamic scene to room [script.apply_selected_dynamic_scene_to_room] with parameters for master bedroom room lights and presence automation. IF (trigger is master bedroom dynamic scene [input_boolean.master_bedroom_dynamic_scene] AND new state is on) THEN call stop all dynamic scenes [scene_presets.stop_all_dynamic_scenes] AND turn off lights mbr [light.lights_mbr] with a 3-second transition. IF (trigger is baby room dynamic scene [input_boolean.baby_room_dynamic_scene] AND new state is off) THEN run script apply selected dynamic scene to room [script.apply_selected_dynamic_scene_to_room] with parameters for baby room room lights and presence automation. IF (trigger is baby room dynamic scene [input_boolean.baby_room_dynamic_scene] AND new state is on) THEN call stop all dynamic scenes [scene_presets.stop_all_dynamic_scenes] AND turn off lights br [light.lights_br] with a 3-second transition. IF (trigger is single guest room dynamic scene [input_boolean.single_guest_room_dynamic_scene] AND new state is off) THEN run script apply selected dynamic scene to room [script.apply_selected_dynamic_scene_to_room] with parameters for single guest room room lights and presence automation. IF (trigger is single guest room dynamic scene [input_boolean.single_guest_room_dynamic_scene] AND new state is on) THEN call stop all dynamic scenes [scene_presets.stop_all_dynamic_scenes] AND turn off lights sgr [light.lights_sgr] with a 3-second transition.",
|
|
"natural_language": {
|
|
"trigger": "When any of the six room-specific dynamic scene switches (sofa dynamic scene [input_boolean.sofa_dynamic_scene], dining table dynamic scene [input_boolean.dining_table_dynamic_scene], master bedroom dynamic scene [input_boolean.master_bedroom_dynamic_scene], baby room dynamic scene [input_boolean.baby_room_dynamic_scene], single guest room dynamic scene [input_boolean.single_guest_room_dynamic_scene], or multiple guest room dynamic scene [input_boolean.multiple_guest_room_dynamic_scene]) changes its state.",
|
|
"conditions": "There are no global conditions for this automation.",
|
|
"action": "The automation selects an action based on which switch changed and its new state. For the sofa and dining table areas, turning the switch 'off' activates a dynamic scene script for that room. Turning the switch 'on' checks for presence: if someone is detected, it stops all dynamic scenes and sets the main room lights to bright white; if no one is detected, it stops all scenes and turns off the room's lights one by one with delays. For the master bedroom, baby room, and single guest room, turning the switch 'off' activates the dynamic scene script, while turning it 'on' simply stops all dynamic scenes and turns off the room's lights."
|
|
},
|
|
"human_like": "This automation manages dynamic lighting scenes for different rooms, activating scenes when a switch is turned off and providing a standard bright light or a sequential turn-off when the switch is turned on, depending on whether the room is occupied.",
|
|
"complexity": "high"
|
|
}
|
|
}
|
|
] |