A custom Home Assistant integration that tracks your currently playing media and automatically fetches the track's BPM (Beats Per Minute) in real-time using the GetSongKEY API.
Note: This project was inspired by the abandoned myTselection/SongBPM repository, but has been completely rebuilt from scratch to use modern Home Assistant UI configuration and the reliable GetSongKEY REST API.
- Real-time Tracking: Instantly pulls the BPM when your track changes.
- Graceful Fallback: Drops to
0 BPMwhen the music is paused, stopped, or if a niche track isn't found in the database. - UI Configurable: No YAML required! Setup your media player and API key directly through the Home Assistant Devices & Services menu.
Before installing, you need a free API key from GetSongKEY:
- Go to getsongkey.com/api
- Fill out the quick form to instantly receive your free API Key.
Method 1: HACS (Recommended)
- Open HACS in your Home Assistant instance.
- Click the three dots in the top right corner and select Custom repositories.
- Add the URL to this repository and select Integration as the category.
- Click Download and restart Home Assistant.
Method 2: Manual
- Download this repository.
- Copy the
custom_components/songbpmfolder into your Home Assistantconfig/custom_componentsdirectory. - Restart Home Assistant.
- Go to Settings -> Devices & Services.
- Click Add Integration and search for SongBPM.
- Enter your GetSongKEY API Key and select the media player you want to track from the dropdown menu.
- Play a song! Your new
sensor.songbpmentity will instantly update with the current tempo.