MusicSync for Home Assistant!

ezgif-7-97ae95c545

I wrote a little app for iOS that makes it possible to sync/react my Zigbee and non-Zigbee devices to music via Home Assistant!

It uses the microphone of the phone to get the volume, then does some audio processing and finally sends the requests to Home Assistant. Most of the time went to optimizing the timing. Because the challenge was to make it pretty reactive but also not overwhelm Home Assistant/Zigbee controller with too many fast requests.

Here’s a YouTube for a better demo: https://youtu.be/_Uf4p5cjexU

This is more like a proof of concept. The app is not done at all, but it is getting there!
I was even able to sync it with my tuya devices.

Tell me what you think!

Link to GitHub repo: GitHub - DeDelner/MusicSync: MusicSync is an iOS app that allows you to synchronize any kind of light entity accessible via Home Assistant with your music in real-time. It uses the microphone of your device to analyze the music and sync the lights accordingly.

7 Likes

One word, annoying. But hey each to their own. I am admittedly a grumpy old man!

That picture is very flash triggering. I almost flagged it…

a different approach which is running locally on your ESP device:

it does have many options for DIY LEDs and syncs across different real time protocols to other WLED installations

Yeah but with my approach, it is not limited to just to WLED. If you want, you can try to sync any type of light, as long as the device itself reacts quickly enough to requests. As I stated in the original post, it worked even with my tuya galaxy projector. Another example are the Philips Hue filament lights. They don’t have support for the Hue Entertainment if you have the Hue Bridge. With my approach, you can even sync them too! Heck, even the indicator light of my humidifier

1 Like

Cool! Any way to make it work with just a music or audio source that’s not the microphone? I’m thinking listening to a sound device directly to avoid people speaking or other external noises affecting the lights.

Theoretically yes, for desktop. Actually that was my first approach. For simplicity’s sake, I decided to ise the microphone of the phone instead. To avoid noise, just place the phone directly to the speaker. Works surprisingly well :slight_smile:

wow, thats what i need in my life, im looking forward to testing

1 Like

I was looking for a solution like this. I have Shelly and hue connected via ZHA at home. And I don’t want to have WLED on Shelly cause I read create overhead on the WiFi.

Would you like to share your project on a GitHub. I’m also a developer and in case I would be happy to improve the solution (if not final yet :smiley:).

Sure! Here’s the link to the repo: GitHub - DeDelner/MusicSync: MusicSync is an iOS app that allows you to synchronize any kind of light entity accessible via Home Assistant with your music in real-time. It uses the microphone of your device to analyze the music and sync the lights accordingly.

1 Like

I was just looking for a project like this. I tried to join via TestFlight but it looks like the link is expired/not looking for any new testers. Are you able to open it up or provide a new link.

Thanks!

1 Like

'+ 1, was looking for a project like this
would be keen to obtain an invitation ^^

+1 for me as wel. My kids would love this
Could you send me an invitation so i could use TestFlight? Thank you! :facepunch:t2::facepunch:t2: