Last active
March 10, 2024 16:48
-
-
Save TheRealFalseReality/046bbbbef7cee12740190945d5ed22b9 to your computer and use it in GitHub Desktop.
Aquarium - Lights. Toggle all your Aquarium Lights all at once.
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: Aquarium - Lights | |
description: Create a script to toggle all your Aquarium Lights all at once. | |
[More Info](https://community.home-assistant.io/t/aquarium-toggle-lights-at-certain-times-of-day/684862) | |
(v1.1) [Script] | |
domain: script # TODO Create automation with Time and/or Duration selector | |
source_url: https://gist.github.com/TheRealFalseReality/046bbbbef7cee12740190945d5ed22b9 | |
input: | |
condition: | |
name: Add Condition(s) | |
description: Add conditions if needed | |
default: [] | |
selector: | |
condition: {} | |
target_light: | |
name: Light Switch | |
description: Light(s) to toggle. | |
selector: | |
target: | |
entity: | |
- domain: | |
- light | |
additional_actions: | |
name: Additional Actions | |
description: Add additional actions to the script. Will execute before everything else. | |
default: [] | |
selector: | |
action: {} | |
variables: | |
condition: !input condition | |
target_light: !input target_light | |
additional_actions: !input additional_actions | |
sequence: | |
- if: | |
- condition: !input condition | |
then: | |
- choose: [] | |
default: !input additional_actions | |
- service: light.toggle | |
data: {} | |
target: !input target_light | |
mode: single |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment