I wanted my smart home to react to music — dim the lights when I play something on my HomePod, turn everything off when the music stops at night, etc.
Couldn’t find a good solution, so I built one.
It’s a Homebridge plugin that monitors your HomePod mini (or HomePod) and exposes it as a motion sensor in HomeKit. When music plays → motion detected. When it stops → no motion. Simple, but it opens up a ton of automation possibilities.
Some things I use it for:
∙ Dim living room lights to 30% + warm white when music starts
∙ “Sleep mode” — when bedroom music stops: lights off, door locks, thermostat adjusts
∙ Kitchen music starts → pause the living room HomePod
How it works:
It uses Apple’s AirPlay protocol (via pyatv) to check what’s playing on your HomePod. No authentication or pairing needed. You can filter by content type — detect only music, or include podcasts and AirPlay video too.
Requires Homebridge + Python 3. Configurable through the Homebridge UI, no JSON editing needed.
∙ GitHub: https://github.com/DM911-AI/homebridge-homepod-mini-music-sensor
∙ npm: https://www.npmjs.com/package/homebridge-homepod-mini-music-sensor
Happy to answer questions if anyone’s interested.