Last active
January 15, 2024 20:35
-
-
Save Bluscream/9329f060fca2cab9535672f837d02139 to your computer and use it in GitHub Desktop.
HomeAssistant blueprints
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: Toggle Targets | |
description: A script that toggles selected targets with a delay. | |
domain: script | |
input: | |
targets: | |
name: Targets | |
description: The devices to toggle. | |
selector: | |
entity: {} | |
speed: | |
name: Speed | |
description: The delay between toggles. | |
selector: | |
entity: | |
domain: input_number | |
switch: | |
name: Switch | |
description: The on/off switch. | |
selector: | |
boolean: {} | |
sequence: | |
- repeat: | |
while: | |
- '{{states(!input switch) == "on"}}' | |
sequence: | |
- service: switch.toggle | |
target: | |
entity_id: '{{ !input targets }}' | |
- delay: '{{ states(!input speed) | float }}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment