🎉 Party Lights - Randomly loop through color and brightness values

I play in a few games but I also run a lot of games and it’s nice having the office just auto set itself for different color setups for different styles of games. On my calendar I have the color setup called out in the event description and I have a simple schedule bot on discord that pulls from the same calendar and gives all my players a ping the day before their game and checks to make sure they plan on making it and if the game doesn’t have enough players the event gets removed for the week and the lights never trigger. The same automation is also now launching my browser on my desktop and loading the game at game time for me as well based on the same calendar. I’m sure it sounds overly complicated but it makes me happy :slight_smile:

1 Like

Nice blueprint, my little daughter loves it, thanks a lot.

Is it also possible to trigger random colors for every single light to have it as colourful as possible?

Hi Guys.
First for all, thanks everybody for your time and effort.
I am new on blueprints usage, I used HA for a time, and Im very courious about blueprints.
I have an Tuya Cloud RGB E27 bulb installed, but when I try to install the blueprint, I have the following error.

Invalid blueprint: extra keys not allowed @ data[‘blueprint’][‘input’][‘time_between_changes’][‘selector’][‘enable_millisecond’]. Got None

I dont know if due HA issue or an a blueprint issue.
My HA runs via docker compose, and it´s expossed via Traeffic reverse proxy.

Thanks

Regards
Victor

You need to update HA to at least 2024.8.

Scroll up a few posts - someone had your same error and this question has already been answered

2 Likes

random color mode and don’t sync the lights should do that.

I just upgraded to 2024.9 and it works flawlessly. Thanks!

1 Like

I just found this blueprint, but it is only giving errors with my Hue lights :

Controlling the light manually in HA is working fine. Any idea what might be going on?

Looks like it doesn’t find the light somehow. A 400 error is client side though, so the issue is at the light.
A couple of things that could be happening:

  • Is the light’s entity ID correctly set?
  • Have you tried resetting the Zigbee controller (or Hue Hub if you’re using that).
  • Is the connection to the light in the Zigbee network strong enough? Try adding some repeaters.

All the lights are working great through Home-Assistant, they are connected to the Hue bridge and work great, except for this blueprint …

Could we get a random interval mode as well where we supply a min time and maximum time and it picks a random wait time between?

1 Like

Like a lot of others, this is my first blueprint experience. I’d like to do a little more work on it when I get my head around the language.

Right now, the blueprint works fine except for 3 lights. Almost all my lights are the same brand, including these 3, but when I put it on random mode, they spend most of the time white, only occasionally changing colour. (I am trying in synchronised colour mode.) When they do change colour, they match the other lights, but then they go back to white again.

If I choose a specific colour scheme like red, they go red. It’s only in the random colour scheme they don’t behave.

I looked at the script in github, but it seems fine to me on the surface. Scratching my head.

ETA I think this is a related issue. I probably need to set the warm/cold brightness to 0 somehow WiZ integration does not display RGB colors correctly ¡ Issue #72726 ¡ home-assistant/core ¡ GitHub

I modified the script to set the rgbww_color instead of rgb_color and passed 0 for both w values. That definitely improved the outcome, though some lights (ones I suspect don’t have a warm white) were still somewhat affected.

I’d love to get the strength of something like the in-built Wiz “Party” scene (which really just cycles between strong primary and secondary colours, so it’s not random but more of a stepped random) but across all the lights. Back to the books!

1 Like

Same error here, latest version is not working for me, the blueprint worked well with the previous versions.

I’ve added that to the to-do list.

1 Like

Good to see you found a workaround. For now I will not be amending the blueprint for this though as it’s an issue on the WiZ integration’s side.

Another user had the same issue since the latest version.
The only update that’s significant in that update was the addition of the millisecond selector (it was handled differently before). This feature was released with HA 2024.8.

Make sure your Home Assistant is at least at version 2024.8 and all lights are working with the latest firmware too (just in case).

See my previous reply to @dennusb.

Are you sure it worked fine until version 2.2? or was it an even older version?

Does not work with LIFX Lights as the effect value can not be empty.

Log:

Party Lights: Repeat at step 2: Choose at step 1: choice 1: Error executing script. Service not found for call_service at pos 2: Action lifx. not found

Tried with the entry effect_pulse which will avoid the error message but other than the pulse effect no colour change is happening.
I think code has to be changed in the way that if no effect is entered the effect parameter should not be given at all.

Same issue with various bulbs here. The effect field is empty in the blueprint, but it seems to be calling for an effect with an empty name rather than skipping that option.

Super thank you for this awesome blueprint! I use to fire at least three apps to get my lights go disco mode. This will be over now (or soon). Thanks!

At the moment, unfortunately, the blueprint only works for one specific light called ‘light.sofa’. All other lights do not react when added. These other lights have an underscore in their name, like ‘light.kitchen_table’ or ‘light.sofa_wall`. I cannot believe these underscores are the cause of their naughty behavior. (Also having checked the various set up in this post).

Any suggestions where to start debugging (before starting to change the entity names)?

Thanks.

I run HA 2024.11.0 / version 2.4 of the blueprint / most lights are hue / but I have bulbs from other brands in my setup too.