Lighting Easter Egg

I’ve been on HA just over 100 days and it’s been a wild ride but the entire time, I had one goal in mind and it was this: Home Assistant Music/Lighting Easter Egg - YouTube
I’ve been obsessed with home automation since I was a kid and for the first time in my life, I have all 300+ devices under 1 hood which has allowed me to do dumb stuff like this! None of this would’ve been possible without bdraco’s persistent effort for over a YEAR on the TP-Link KL430’s for which I’m eternally grateful. The effects are bulletproof and I’ve never seen the devices so responsive.

This automation detects when the Living Room Sonos contains ‘RuPaul’ in the media artist field, then runs the scripts for the rainbow light strips and rainbow nanoleafs. When Sonos detects ‘Rupaul’ is not in the media artist field, it switches everything back with Adaptive Lighting. This was my test scenario and even I’m surprised by how well it works (how fast/responsive it is). Now that I know it works and I can control it without the entire house freaking out, I can hide media easter eggs all over the house.

6 Likes

This totally sounds awesome and welcome to your first year automating stuff with HA:)
One question which i had was how did you manage to search for the RuPaul thing in script is there any magic in it or do you check the state field of now playing?

A value template looks for these changes in an automation:

{{ 'RuPaul' in state_attr('media_player.living_room_sonos', 'media_artist') }}

{{ not 'RuPaul' in state_attr('media_player.living_room_sonos', 'media_artist') }}

2 Likes