Hey everyone, I just added a new version 2.0
of the Color Loop blueprint.
Here is the gist of the changes:
- Changed it from being a Script Blueprint to an Automation Blueprint:
- Unfortunately this means its a breaking change so all existing Scripts using the blueprint will need to be re-added as Automations (see below)
- I have added a new input for a Toggle element to control the color loop:
- This will allow a separate toggle entity to turn the color transitions on/off.
- You can use the same toggle for multiple separate color loops to turn all of the loops on/off.
- This vastly helps when using light groups and you want to turn off the color loop.
- If you leave the toggle on and turn the lights off, when you turn the lights back on they will start looping again.
- This toggle is somewhat optional, where if you want to always have the color looping whenever the light is on, you can add the light itself as its own toggle.
- Fixed issues with light groups:
- With the new toggle it is easy and (hopefully) bug free to turn off the color looping when you are using light groups.
- While the color is looping, you can now turn off individual lights and they won’t turn back on.
- Turning off some lights will keep the color loop running.
- Turning off all lights will stop the color loop.
- When all lights are off, turning any lights in the group back on will restart the color loop (provided the toggle is on).
- Fixed issue with lights sometimes turning themselves back on:
- There is now logic to not only help prevent this from occurring, it will also ensure that the light is left set to the color where it was stopped on.
- Updated the blueprint docs:
-
Blueprint Scripts
havehad an issue where you could not use markdown in the input descriptions, now that this is an Automation, the descriptions for each input can live next to the input. - I tend to end up being quite verbose, so I added more docs and some of the explanations how the color wheel works in regards to configuration.
- Because I tend to be verbose, I have included (quite crude) collapsible elements to show / hide more information.
-
Blueprint Scripts
How to update from version 0.1
to 2.0
:
- Download / install the new blueprint from above.
- Have two windows/tabs open.
- Window 1:
- Go to
Settings
>Blueprints
>Automations & Scenes
>Blueprints
- Click
CREATE AUTOMATION
- Click the
⋮
button in the top-right and selectEdit in YAML
- Go to
- Window 2:
- Edit the old script-based color loop you want to transfer over
- Click the
⋮
button in the top-right and selectEdit in YAML
- Copy over the relevant YAML from the old script to the new automation:
- Basically its just the input section.
- Note you will get an error if you save the YAML now, refer to next step.
- Basically its just the input section.
- Window 1:
- Click the
⋮
button in the top-right and selectEdit in visual editor
- Add the required toggle (or set it to the same light)
- Save!
- Click the
- Window 1:
- Delete the old script.
- Repeat for any other color loop scripts.
- Delete the old blueprint.
- Consider adding the new toggle(s) to the overview for an easy way to turn on/off color loops.