--- - alias: "[Living Room] Light On (by input_boolean)" initial_state: "true" trigger: - platform: state entity_id: input_boolean.living_room_light_state to: "on" action: - service: scene.turn_on data_template: entity_id: scene.living_room_{{ states.input_text.living_room_last_scene.state | replace(' ', '_') | lower | string }} transition: 2.5 - alias: "[Living Room] Light Off (by input boolean)" initial_state: "true" trigger: - platform: state entity_id: input_boolean.living_room_light_state to: "off" action: - service: scene.turn_on data_template: entity_id: scene.living_room_off transition: 2.5