Last active
October 7, 2022 13:23
-
-
Save JonTheNiceGuy/c7f0985bb9d96929cd01611728eaeee3 to your computer and use it in GitHub Desktop.
Deprecated - uses wrong selector
This file contains hidden or 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 Light after Time has elapsed | |
description: Given a light entity, watch for it turning on, and then turn it off after a certain period of time. | |
domain: automation | |
input: | |
light: | |
name: Light | |
description: Select the light to monitor and control | |
selector: | |
entity: | |
domain: light | |
time: | |
name: Duration | |
description: The duration to leave the light on for | |
selector: | |
time: | |
trigger: | |
- platform: state | |
entity_id: !input light | |
to: 'on' | |
for: !input time | |
condition: [] | |
action: | |
- service: light.turn_off | |
data: {} | |
entity_id: !input light | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment