Added Timed Switch blueprint

This commit is contained in:
2026-06-21 11:53:14 +02:00
parent 13cb8f2c61
commit a4e88c1fe5
@@ -1,29 +1,30 @@
blueprint: blueprint:
name: timed_switch name: timed_switch
domain: switch domain: automation
description: Activate a switch for a cerrain timeation description: Activate a switch for a certain time as action
author: Tiziano Trabattoni author: Tiziano Trabattoni
input: input:
button: button:
name: bt name: Button
description: Which button will activate the switch
selector: selector:
target: entity:
entity: domain: input_button
domain: input_button
switch_target: switch_target:
name: sw name: Switch
description: Which switch will be activated
selector: selector:
target: entity:
entity: domain: switch
domain: switch
time: duration:
name: tim name: Duration
description: How long the switch should remain on
default:
hours: 1
selector: selector:
number: duration: {}
min: 0
max: 300
unit_of_measurement: seconds
triggers: triggers:
- trigger: state - trigger: state
@@ -34,9 +35,11 @@ conditions: []
actions: actions:
- action: switch.turn_on - action: switch.turn_on
entity_id: !input switch_target target:
entity_id: !input switch_target
- delay: !input tim - delay: !input duration
- action: switch.turn_off - action: switch.turn_off
entity_id: !input switch_target target:
entity_id: !input switch_target