Skip to content

Instantly share code, notes, and snippets.

@TheRealFalseReality
Last active March 10, 2024 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheRealFalseReality/046bbbbef7cee12740190945d5ed22b9 to your computer and use it in GitHub Desktop.
Save TheRealFalseReality/046bbbbef7cee12740190945d5ed22b9 to your computer and use it in GitHub Desktop.
Aquarium - Lights. Toggle all your Aquarium Lights all at once.
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