Introduction:
When âparty modeâ is turned on, your lights will start looping through random color and brightness values, creating an ever changing atmosphere.
How it works:
-
Select your party mode trigger.
( Can be a switch or input_boolean entity. Once turned on the party mode will be activated)NOTE:
If you donât have a switch or boolean trigger yet, you can create an input_boolean helper by going to Settings > Devices & services > Helpers
There you click on 'Create helper and choose âToggleâ.
-
Select the lights you want to control.
(Only light entities are supported) -
Choose if the light need to be synchronized or not.
If more than 1 target light is selected, choose if they will all change together or if they each get their own random values. -
Set the time between changes. This determines how often the lights will change their color or brightness.
-
Optionally set a transition time. This will smooth out the transition from the set value to the next, essentially creating a fading effect. (This value should be smaller than the time between changes, otherwise your lights may run into a buffering issue.)
-
Select how the lights need to change color:
NO COLOR CHANGE: Donât change colors.
RANDOM COLOR MODE: Change all RGB values randomly.
RED ONLY MODE: Change only red value randomly.
GREEN ONLY MODE: Change only green value randomly.
BLUE ONLY MODE: Change only blue value randomly.
TEALS ONLY MODE: Change only teal value randomly.
PINKS ONLY MODE: Change only pink value randomly.
YELLOWS ONLY MODE: Change only yellow value randomly.
-
Select how the lights need to change brightness:
- RANDOM BRIGHTNESS: Change the brightness randomly within a set range
- FIXED BRIGHTNESS: Keep the light at a user defined brightness
-
Set the brightness range in which the random setting can be chosen (RANDOM BRIGHTNESS MODE) or set the brightness at which the lights need to be set (FIXED BRIGHTNESS MODE).
-
Add effects (supported effects are determined by your specific smart bulbs).
-
Set the behaviour of the lights when the party mode is turned off:
- NO CHANGE: Keep the lights in the state they are at the end of the party.
- LIGHTS OFF: Turn the lights off.
- RETURN TO PREVIOUS STATE: Return the lights to the state they were before the party began.
- USER DEFINED SCENE: Activate a scene that determines the state of the lights after the party.
- SCENE THEN TURN OFF: Set the lights to a specific setting by activating the user defined scene, then turn them off.
-
Select a user defined scene (only if the after part state is âUSER DEFINED SCENEâ or âSCENE AND TURN OFFâ)
-
Set the delay before turning the lights off (only if the after part state is âLIGHTS OFFâ or âSCENE AND TURN OFFâ)
Most recent version:
3.2:
Source code (Github)
See code changes (Github)
Changelog:
24/07/2025 - Version 3.2
- Added a new light mode: POLICE LIGHTS (switch from red to blue)
â In order for this to work properly, the lights will be synchronized automatically, even if the sync lights setting is turned off. - Made the âTurn off delayâ available for all âTurn offâ states
- Added input sections to simplify the layout and user friendliness
- General corrections to descriptions to improve user friendliness
- General code simplifications
See older changes
06/01/2025 - Version 3.1
- Rewrote the saturated color logic.
â There was an issue with it not working when a light was initially off.
â The logic has now been simplified somewhat. - Amended syntax to new guidelines (HA 2024.8 & 2024.10 changes)
- General code simplifications
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
16/09/2024 - Version 2.3
- Added support for shorter delays by adding a millisecond option to the âtime between changesâ.
WARNING: this might cause a buffering issue to occur because of the frequent changes. - Modified some explanations to improve user friendliness.
06/09/2024 - Version 2.2
- Added a new after party state:
SCENE THEN TURN OFF:
Set the lights to a specific setting by activating the user defined scene, then turn them off. - General code corrections
06/09/2024 - Version 2.1
- General code corrections
- Layout modification for improved user friendliness
- Correction of some spelling mistakes
06/09/2024 - Version 2.0
- Added user defined behavior when the party mode is turned off.
4 options are available:
-
NO CHANGE:
Keep the lights in the state they are at the end of the party. -
LIGHTS OFF:
Turn the lights off. -
RETURN TO PREVIOUS STATE:
Return the lights to the state they were before the party began. -
USER DEFINED SCENE:
Activate a scene that determines the state of the lights after the party.
05/09/2024 - Version 1.4
- Added a feature where your lights will return to the previous settings when the party mode is stopped.
- Added the option to set effects for the lights.
- Removed a logging action (was used for debugging).
- General code corrections.
- Modified some descriptions to improve user friendliness.
26/01/2024 - Version 1.3
- Corrected the REDS, GREENS and BLUES only modes.
- Added TEALS, PINKS and YELLOWS only modes.
- General code correcting to improve user-friendliness.
22/01/2024 - Version 1.2
- Re-added the option to select multiple target lights.
16/01/2024 - Version 1.1
-
Added a sync switch for the lights. When multiple lights are selected, this will allow the user to choose if all lights get the same random value assigned or if they all get a different random value assigned.
WARNING: This is a breaking feature. You will have to re-select the target lights after re-importing the Blueprint.
-
Changed some descriptions to improve user-friendliness.
15/01/2024 - Version 1.0
- Original release