I’d like to propose an enhancement to the Spotify integration in Home Assistant: an indicator for explicit content in the currently playing track.
Use Case:
I’d like to create automations that can detect and filter explicit content on my home speakers, especially during the hours when my kids are awake. For example, if a song is marked as explicit, I’d like to be able to skip the track automatically or trigger other actions to keep profanity out of shared spaces.
Technical Details:
Spotify’s API includes an explicit field in the “Currently Playing” endpoint, which could be used to provide this information. Adding this field to the Home Assistant Spotify integration would make it easier for families and other users to control content filtering at home.
Note that this is a different integration than the HA Spotify integration. The SpotifyPlus integration provides all of the features that the HA Spotify integration does, plus a whole lot more. Give it a try if you like; if not, no hard feelings. Either way, I liked your idea and implemented it. You can have both Spotify and SpotifyPlus implemented at the same time if you want to compare them.
[ 1.0.62 ] - 2024/10/27
Added the following extra state attribute: sp_track_is_explicit - denotes the nowplaying track contains explicit lyrics (true) or not (false).
Added service get_track_recommendations to get track recommendations for specified criteria.