Last active
December 3, 2023 21:27
-
-
Save JonTheNiceGuy/17fcd695999807a69599249e02ef3f56 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Turn off Switch after Time has elapsed | |
description: Given a switch entity, watch for it turning on, and then turn it off after a certain period of time. | |
domain: automation | |
input: | |
switch: | |
name: Switch | |
description: Select the switch to monitor and control | |
selector: | |
entity: | |
domain: switch | |
time: | |
name: Duration | |
description: The duration to leave the switch on for | |
selector: | |
duration: | |
trigger: | |
- platform: state | |
entity_id: !input switch | |
to: 'on' | |
for: !input time | |
condition: [] | |
action: | |
- service: switch.turn_off | |
data: {} | |
entity_id: !input switch | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment