My Raspberry Pi plays Spotify in the living room, and I wanted a pause button in Home Assistant.
But librespot has no local control at all: no HTTP API, no D-Bus, nothing.
I ended up with three pull requests to librespot:
https://blog.lyrixx.info/posts/how-to-control-spotify-on-a-raspberry-pi-from-home-assistant/

Grégoire PineauHow to control Spotify on a Raspberry Pi from Home Assistantraspotify turns a Raspberry Pi into a Spotify speaker, but nothing can control it locally. Here is how I plugged it into Home Assistant, with MQTT, MPRIS, and three pull requests to librespot.
commit 2c9b06a