I would like to use MQTT for a media player.
I am using shairport to airplay music in a whole-home audio solution. Shairport supports MQTT, and I am able to get shairport to publish topics for status. I am also able to control Shairport via MQTT.
I found the “Universal Media Player” Configuration in the documentation (https://www.home-assistant.io/integrations/universal/) that might do what I’m looking for.
If I were to use Universal media player, I imagine it would look something like:
media_player: - platform: universal name: Shairport commands: volume_down: service: mqtt.publish data: topic: shairport-sync/snapcast/remote payload: "volumedown" qos: 2 retain: false ...
Would that be possible or am I totally off on how to implement this?