šŸŽ‰ Party Lights - Randomly loop through color and brightness values

Iā€™ve amended this in version 2.4. this is a BETA version of the blueprint.
Could you check if this fixes the issue on your end?

For information: Iā€™ve tested it with a random Zigbee light in my home and it works without issues. However, I donā€™t have any Hue or other large name brand light installed at the moment.

!! WARNING - BETA version !!

Edit: BETA VERSION REMOVED TO AVOID ISSUES.

1 Like

Hi, Iam testing the Beta version and it seems to work fine.
Testing with Hue bulbs.

1 Like

Thanks for the feedback!
Iā€™m going to wait a couple more days so that others can give feedback as well and will then push the change to the production version.

Its working. Tried with my four LIFX-Lights

The 2.4 beta made it work with my tuya light strips as well, although they dont transition, but thats fine.

My only request for this would be to add add a ā€œRandom Deep Hue Colorsā€ mode, the RGB is good but Iā€™d prefer a mode that doesnā€™t have whites/light colors

Edit: I made a gist that adds a deep color mode: Party Mode Test.yaml Ā· GitHub
The only thing I cant figure out, is some of the transitions seem to cycle through white even when going between two deep hues, not sure why that is, might just be the way hue bulbs are.

Edit 2: From a RGB color wheel perspective it makes sense they would go through white depending on what color it is transition from/to. If its from blue to yellow for example it would go right through the middle of the wheel.

Edit 3: Made another gist, this one avoids transitioning through whites. Party Mode Test - No White.yaml Ā· GitHub

Has anyone modified this to only allow Christmas colors like red, green, blue, and yellow?

Thank for the codeā€¦
But how to install it? Have to modify the existing blueprint or create another one ?

The yaml files I made shouldnt overwrite any other ones, you import them like any other. Click on the links in my messages, copy the url, go to your blueprints page in settings and click import bottom right.

I made another gist, this one extends off of the second one I made in my previous comment adds christmas mode (red, green, blue, yellow) Party Lights - Todd - Deep Hues + Christmas.yaml Ā· GitHub

NEW RELEASE:

30/11/2024 - Version 3.0

  • Added 2 new color modes.
    Massive thanks to @Toad and @hugokerstens for writing the code for these modes.
    • CHRISTMAS COLORS
    • SATURATED COLOR MODE
  • Amended syntax to new guidelines (HA 2024.8 & 2024.10 changes)
  • Changed how the effect commands are passed to the light. This fixed the issue where some lights where not changing colors correctly.
  • Small code and text corrections
4 Likes

On the whole, it works quite well.

But the SATURATED COLOR MODE doesnā€™t run smoothly for me. When I select RANDOM COLOR MODE, all lamps are addressed as expected. But nobody wants the white light, so I was looking forward to the new mode.

My lighting system runs via Hue.

What other data can I give you?
HA is up to date and I just downloaded the blueprint.

Is the Saturated Colour mode only supposed to work for Hue lights? When I change to that mode my Tuya based lights do nothing at all. However, the new Christmas mode does work.

Unfortunately not, as I only control original Hue lamps in my scenario.

I have used this blueprint twice. Once for a single device, where the Saturated Color mode works the way I want it to.

But with the second Blueprint with other (Hue) devices, it doesnā€™t work. It seems that this mode has a problem with multiple devices.

Thank you for the Christmas mode!!! Just in time.

1 Like

Which custom card can I use for the control panel?

Addendum: Although the Blueprint is only supposed to control an original Hue lamp via the Hue Bridge, this does not work reliably. Sometimes it works, sometimes not.

It would be nice if the script ran more reliably, because itā€™s basically exactly what Iā€™ve been looking for for a long time.

If I can contribute information for bugfixing, please let me know.

I made some new discoveries yesterday when I was setting up the party lights for my wifeā€™s birthday.

About the setup: I operate all the lights via two Hue Bridges. However, the lamps mentioned in the script are all on the main Hue AP.

I operate 95% original Philipps HUe components, but also a few cheap controllers for LED Stripes.

All my components (whether original or cheap from China) have been working wonderfully for years with the ā€œMagicHueā€ app (a kind of modern light organ, all selected lamps change by sound).

Thatā€™s the initial situation.

What I discovered yesterday:

Saturation mode doesnā€™t work for me at all.
Colored mode only works for me if I have selected original Hue components. If I include one of the China Controller, nothing works either.

Summary for me at the moment: Saturation mode does not work for me if I have selected more than one device (I deliberately do NOT use the sync function).
Only original Hue lamps work in Colored mode.

I hope this information is a little helpful.

Do you see any errors in your logs? I imagine there is some error condition occuring, to fix weā€™ll need to know what is happening.

Edit: How do replies work? Whenever I click reply on a message it doesnā€™t tag it when I post. (khvej8ā€™s message below tagged him)

Have you,changed to version 3.0

Setup party light a few weeks ago, and the saturation mode did not really work. Did not have time before today. Updated to blueprint version 3.0 and it works perfectly.

I actually got a little disappointed at first as my cheap tuya bulbs connected using ZM, 18 of them in the bathroom, did not really change brightness. Figured out it is because the difference between 1% and 20% is not visible by looking at them. Had to change, using 15% to 35% to get visible good effect.

Itā€™s Christmas time and my front yard lights have automatically kicked into coloured light mode at sunset using this Blueprint. Using the new Christmas Colours setting is perfect as it gets rid of all the washed out colours. Thanks for that update!

Yesterday, I migrated all my lights from the Tuya Cloud to Tuya Local. This has improved the response time considerably. Previously I had to have the lights change colour only every 2 seconds. Now I can have it at 500ms and it is perfect. However, at that rate of change, the loop runs very quickly and there is a 10,000 iteration limit on loops. Apparently there is no way to change that limit so it will have to be the Blueprint that changes. With the lights changing every 500ms it only runs for just over 1.5 hours before it crashes which is not long enough. It needs to be at least 4 hours or even longer which is many times the current iteration limit.

Can the Blueprint be changed in some way to alter the way it loops to somehow reduce the number of iterations?