I’ve used the blueprint to create multiple automations, one for each room in my home. I can now go into party mode in a single room or the whole house. I tested it with the whole house which is 27 lights and it was AWESOME. Setting them all back to normal was a bit of a pain so I do hope something like the above can be integrated into the blueprint.
For those struggling with getting their lights back to normal after using this amazing blueprint, I came up with the following. It doesn’t actually set it back to what it was but instead back to what you define as default which may well be how they were to begin with. It works for me
I have separate automations for each room that detect when the corresponding room’s input boolean turns off and it then runs the following code (example from one room shown). I did it this way as it meant I didn’t modify the original blueprint code in case in gets updated. It also allows different settings for each room. Basically when the input boolean turns off the lights will stay as they are, in various colours etc. I let that settle for a few seconds, change the lights to how I normally want them in the room and then turn them off.
Here’s the code. I hope it is helpful. If you have any better ideas I’d love to hear them and of course it would be great to get something like this built into the blueprint.
description: ""
trigger:
- platform: state
entity_id:
- input_boolean.party_lights_tv_room
from: "on"
to: "off"
condition: []
action:
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- alias: Set Lights Back to White
service: light.turn_on
metadata: {}
data:
kelvin: 5500
brightness_pct: 20
target:
entity_id: light.tv_room_lights
- service: light.turn_off
metadata: {}
data: {}
target:
entity_id: light.tv_room_lights
alias: Turn Lights Off
mode: single
It would be great if the BluePrint could include the HA service to create a snapshot of the light entity states prior to any changes so we can call the restore service when turning off ‘party lights’.
Great blueprint, it could be added that when the trigger is turned off, all bulbs or groups return to warm white. When the trigger goes to OFF, the bulbs remain lit in color. I solved the problem myself by creating an additional script and automation for when the trigger goes to off.