[ { "id": "Apply Selected Dynamic Scene to Room", "automation": "- alias: Apply Selected Dynamic Scene to Room\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - input_boolean.sofa_dynamic_scene\n - trigger: state\n entity_id:\n - input_boolean.dining_table_dynamic_scene\n - trigger: state\n entity_id:\n - input_boolean.master_bedroom_dynamic_scene\n - trigger: state\n entity_id:\n - input_boolean.baby_room_dynamic_scene\n - trigger: state\n entity_id:\n - input_boolean.single_guest_room_dynamic_scene\n - trigger: state\n entity_id:\n - input_boolean.multiple_guest_room_dynamic_scene\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: \"{{ trigger.from_state.entity_id == 'input_boolean.sofa_dynamic_scene'\\\n \\ and\\n trigger.from_state.state == 'off' }}\\n\"\n sequence:\n - data:\n room_lights:\n - light.light_one_sofa\n - light.light_two_sofa\n - light.light_three_sofa\n - light.light_four_sofa\n presence_automation: automation.room_presence_sofa\n action: script.apply_selected_dynamic_scene_to_room\n alias: Sofa On\n - conditions:\n - condition: template\n value_template: \"{{ trigger.from_state.entity_id == 'input_boolean.sofa_dynamic_scene'\\\n \\ and\\n trigger.from_state.state == 'on' }}\\n\"\n sequence:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.presence_sensor_sofa_radar_target\n state: 'on'\n sequence:\n - action: scene_presets.stop_all_dynamic_scenes\n metadata: {}\n data: {}\n - action: light.turn_on\n metadata: {}\n data:\n brightness_pct: 100\n color_temp_kelvin: '{{ states(''sensor.sun_based_color_temperature'')\n | int }}'\n transition: 3\n target:\n entity_id:\n - light.lights_sofa\n alias: Presence\n - conditions:\n - condition: state\n entity_id: binary_sensor.presence_sensor_sofa_radar_target\n state: 'off'\n alias: No Presence\n sequence:\n - action: scene_presets.stop_all_dynamic_scenes\n metadata: {}\n data: {}\n - action: light.turn_off\n metadata: {}\n data:\n transition: 3\n target:\n entity_id:\n - light.light_one_sofa\n - delay:\n seconds: 2\n - action: light.turn_off\n metadata: {}\n data:\n transition: 3\n target:\n entity_id:\n - light.light_two_sofa\n - delay:\n seconds: 2\n - action: light.turn_off\n metadata: {}\n data:\n transition: 3\n target:\n entity_id:\n - light.light_four_sofa\n - delay:\n seconds: 2\n - action: light.turn_off\n metadata: {}\n data:\n transition: 3\n target:\n entity_id:\n - light.light_three_sofa\n alias: Sofa Off\n - conditions:\n - condition: template\n value_template: \"{{ trigger.from_state.entity_id == 'input_boolean.dining_table_dynamic_scene'\\\n \\ and\\n trigger.from_state.state == 'off' }}\\n\"\n sequence:\n - data:\n room_lights:\n - light.light_one_dt\n - light.light_two_dt\n - light.light_three_dt\n - light.light_one_ktc_dt\n - light.light_two_ktc_dt\n - light.light_three_ktc_dt\n presence_automation: automation.room_presence_dining_table\n action: script.apply_selected_dynamic_scene_to_room\n alias: Dining Table On\n - conditions:\n - condition: template\n value_template: \"{{ trigger.from_state.entity_id == 'input_boolean.dining_table_dynamic_scene'\\\n \\ and\\n trigger.from_state.state == 'on' }}\\n\"\n sequence:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.presence_sensors_dining_table\n state: 'on'\n sequence:\n - action: scene_presets.stop_all_dynamic_scenes\n metadata: {}\n data: {}\n - action: light.turn_on\n metadata: {}\n data:\n brightness_pct: 100\n color_temp_kelvin: '{{ states(''sensor.sun_based_color_temperature'')\n | int }}'\n transition: 3\n target:\n entity_id:\n - light.lights_dt_only\n alias: Presence\n - conditions:\n - condition: state\n entity_id: binary_sensor.presence_sensors_dining_table\n state: 'off'\n alias: No Presence\n sequence:\n - action: scene_presets.stop_all_dynamic_scenes\n metadata: {}\n data: {}\n - action: light.turn_off\n metadata: {}\n data:\n transition: 3\n target:\n entity_id:\n - light.light_three_ktc_dt\n - delay:\n seconds: 2\n - action: light.turn_off\n metadata: {}\n data:\n transition: 3\n target:\n entity_id:\n - light.light_two_ktc_dt\n - delay:\n seconds: 2\n - action: light.turn_off\n metadata: {}\n data:\n transition: 3\n target:\n entity_id:\n - light.light_one_ktc_dt\n - delay:\n seconds: 2\n - action: light.turn_off\n metadata: {}\n data:\n transition: 3\n target:\n entity_id:\n - light.light_one_dt\n - delay:\n seconds: 2\n - action: light.turn_off\n metadata: {}\n data:\n transition: 3\n target:\n entity_id:\n - light.light_two_dt\n - delay:\n seconds: 2\n - action: light.turn_off\n metadata: {}\n data:\n transition: 3\n target:\n entity_id:\n - light.light_three_dt\n alias: Dining Table Off\n - conditions:\n - condition: template\n value_template: \"{{ trigger.from_state.entity_id == 'input_boolean.master_bedroom_dynamic_scene'\\\n \\ and\\n trigger.from_state.state == 'off' }}\\n\"\n sequence:\n - data:\n room_lights:\n - light.light_one_mbr\n - light.light_two_mbr\n presence_automation: automation.room_presence_master_bedroom\n action: script.apply_selected_dynamic_scene_to_room\n alias: Master Bedroom On\n - conditions:\n - condition: template\n value_template: \"{{ trigger.from_state.entity_id == 'input_boolean.master_bedroom_dynamic_scene'\\\n \\ and\\n trigger.from_state.state == 'on' }}\\n\"\n sequence:\n - action: scene_presets.stop_all_dynamic_scenes\n metadata: {}\n data: {}\n - action: light.turn_off\n metadata: {}\n data:\n transition: 3\n target:\n entity_id:\n - light.lights_mbr\n alias: Master Bedroom Off\n - conditions:\n - condition: template\n value_template: \"{{ trigger.from_state.entity_id == 'input_boolean.baby_room_dynamic_scene'\\\n \\ and\\n trigger.from_state.state == 'off' }}\\n\"\n sequence:\n - data:\n room_lights:\n - light.light_one_br\n - light.light_two_br\n presence_automation: automation.room_presence_baby_room\n action: script.apply_selected_dynamic_scene_to_room\n alias: Baby Room On\n - conditions:\n - condition: template\n value_template: \"{{ trigger.from_state.entity_id == 'input_boolean.baby_room_dynamic_scene'\\\n \\ and\\n trigger.from_state.state == 'on' }}\\n\"\n sequence:\n - action: scene_presets.stop_all_dynamic_scenes\n metadata: {}\n data: {}\n - action: light.turn_off\n metadata: {}\n data:\n transition: 3\n target:\n entity_id:\n - light.lights_br\n alias: Baby Room Off\n - conditions:\n - condition: template\n value_template: \"{{ trigger.from_state.entity_id == 'input_boolean.single_guest_room_dynamic_scene'\\\n \\ and\\n trigger.from_state.state == 'off' }}\\n\"\n sequence:\n - data:\n room_lights:\n - light.light_one_sgr\n - light.light_two_sgr\n presence_automation: automation.room_presence_single_guest_room\n action: script.apply_selected_dynamic_scene_to_room\n alias: Single Guest Room On\n - conditions:\n - condition: template\n value_template: \"{{ trigger.from_state.entity_id == 'input_boolean.single_guest_room_dynamic_scene'\\\n \\ and\\n trigger.from_state.state == 'on' }}\\n\"\n sequence:\n - action: scene_presets.stop_all_dynamic_scenes\n metadata: {}\n data: {}\n - action: light.turn_off\n metadata: {}\n data:\n transition: 3\n target:\n entity_id:\n - light.lights_sgr\n alias: Single Guest Room Off\n mode: parallel\n max: 10", "config": [ { "name": "sofa dynamic scene", "room": "living_room", "type": "input_boolean", "id": { "entity_id": "input_boolean.sofa_dynamic_scene", "device_id": null } }, { "name": "dining table dynamic scene", "room": "dining_room", "type": "input_boolean", "id": { "entity_id": "input_boolean.dining_table_dynamic_scene", "device_id": null } }, { "name": "master bedroom dynamic scene", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.master_bedroom_dynamic_scene", "device_id": null } }, { "name": "baby room dynamic scene", "room": "nursery", "type": "input_boolean", "id": { "entity_id": "input_boolean.baby_room_dynamic_scene", "device_id": null } }, { "name": "single guest room dynamic scene", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.single_guest_room_dynamic_scene", "device_id": null } }, { "name": "multiple guest room dynamic scene", "room": "bedroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.multiple_guest_room_dynamic_scene", "device_id": null } }, { "name": "light one sofa", "room": "living_room", "type": "light", "id": { "entity_id": "light.light_one_sofa", "device_id": null } }, { "name": "light two sofa", "room": "living_room", "type": "light", "id": { "entity_id": "light.light_two_sofa", "device_id": null } }, { "name": "light three sofa", "room": "living_room", "type": "light", "id": { "entity_id": "light.light_three_sofa", "device_id": null } }, { "name": "light four sofa", "room": "living_room", "type": "light", "id": { "entity_id": "light.light_four_sofa", "device_id": null } }, { "name": "room presence sofa", "room": "living_room", "type": "automation", "id": { "entity_id": "automation.room_presence_sofa", "device_id": null } }, { "name": "apply selected dynamic scene to room", "room": null, "type": "script", "id": { "entity_id": "script.apply_selected_dynamic_scene_to_room", "device_id": null } }, { "name": "presence sensor sofa radar target", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.presence_sensor_sofa_radar_target", "device_id": null } }, { "name": "stop all dynamic scenes", "room": null, "type": "scene_presets", "id": { "entity_id": "scene_presets.stop_all_dynamic_scenes", "device_id": null } }, { "name": "lights sofa", "room": "living_room", "type": "light", "id": { "entity_id": "light.lights_sofa", "device_id": null } }, { "name": "sun based color temperature", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sun_based_color_temperature", "device_id": null } }, { "name": "light one dt", "room": "dining_room", "type": "light", "id": { "entity_id": "light.light_one_dt", "device_id": null } }, { "name": "light two dt", "room": "dining_room", "type": "light", "id": { "entity_id": "light.light_two_dt", "device_id": null } }, { "name": "light three dt", "room": "dining_room", "type": "light", "id": { "entity_id": "light.light_three_dt", "device_id": null } }, { "name": "light one ktc dt", "room": "dining_room", "type": "light", "id": { "entity_id": "light.light_one_ktc_dt", "device_id": null } }, { "name": "light two ktc dt", "room": "dining_room", "type": "light", "id": { "entity_id": "light.light_two_ktc_dt", "device_id": null } }, { "name": "light three ktc dt", "room": "dining_room", "type": "light", "id": { "entity_id": "light.light_three_ktc_dt", "device_id": null } }, { "name": "room presence dining table", "room": "dining_room", "type": "automation", "id": { "entity_id": "automation.room_presence_dining_table", "device_id": null } }, { "name": "presence sensors dining table", "room": "dining_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.presence_sensors_dining_table", "device_id": null } }, { "name": "lights dt only", "room": "dining_room", "type": "light", "id": { "entity_id": "light.lights_dt_only", "device_id": null } }, { "name": "light one mbr", "room": "bedroom", "type": "light", "id": { "entity_id": "light.light_one_mbr", "device_id": null } }, { "name": "light two mbr", "room": "bedroom", "type": "light", "id": { "entity_id": "light.light_two_mbr", "device_id": null } }, { "name": "room presence master bedroom", "room": "bedroom", "type": "automation", "id": { "entity_id": "automation.room_presence_master_bedroom", "device_id": null } }, { "name": "lights mbr", "room": "bedroom", "type": "light", "id": { "entity_id": "light.lights_mbr", "device_id": null } }, { "name": "light one br", "room": "nursery", "type": "light", "id": { "entity_id": "light.light_one_br", "device_id": null } }, { "name": "light two br", "room": "nursery", "type": "light", "id": { "entity_id": "light.light_two_br", "device_id": null } }, { "name": "room presence baby room", "room": "nursery", "type": "automation", "id": { "entity_id": "automation.room_presence_baby_room", "device_id": null } }, { "name": "lights br", "room": "nursery", "type": "light", "id": { "entity_id": "light.lights_br", "device_id": null } }, { "name": "light one sgr", "room": "bedroom", "type": "light", "id": { "entity_id": "light.light_one_sgr", "device_id": null } }, { "name": "light two sgr", "room": "bedroom", "type": "light", "id": { "entity_id": "light.light_two_sgr", "device_id": null } }, { "name": "room presence single guest room", "room": "bedroom", "type": "automation", "id": { "entity_id": "automation.room_presence_single_guest_room", "device_id": null } }, { "name": "lights sgr", "room": "bedroom", "type": "light", "id": { "entity_id": "light.lights_sgr", "device_id": null } } ] } ]