blueprint: name: timed_switch domain: automation description: Activate a switch for a certain time as action author: Tiziano Trabattoni input: button: name: Button description: Which button will activate the switch selector: entity: domain: input_button switch_target: name: Switch description: Which switch will be activated selector: entity: domain: switch duration: name: Duration description: How long the switch should remain on default: hours: 1 selector: duration: {} triggers: - trigger: state entity_id: !input button id: start_now conditions: [] actions: - action: switch.turn_on target: entity_id: !input switch_target - delay: !input duration - action: switch.turn_off target: entity_id: !input switch_target