There was a recent ask about MQTT support for Volumio 4. The old status2mqtt plugin is abandoned - original author moved on to other solutions. Rather than let it sit, I put together a fresh implementation over the weekend.
What it does:
Publishes Volumio state to MQTT broker (track info, playback status, volume, etc.)
I already maintain several Volumio plugins as a volunteer in my spare time. This one exists because it was not difficult to scribble together for an average nerd on a Saturday evening. It works for me. It might work for you.
Available in the plugin store once publishing completes.
Source will be available. If you want to fork it, adopt it, improve it - go ahead. Pull requests welcome. If someone wants to take over as primary maintainer, even better.
Once configured, as hoped it’s a full drop-in replacement for the old status2MQTT plugin.
Thus far running happily on three systems (2x Pi Zero 2W and 1s Pi3) and feeding the status etc back to my network and Home Assistant set-up perfectly, and fully controllable by HASS.
The only thing for me is the MQTT control of the devices.
I gave it a quick run-out, and whilst it seems to work, the devices take a while to respond (trying to toggle them). Just to confirm if I’m doing it right, tried sending volumio/radiopi/set/toggle/ with the payload of “toggle” (based on your two examples above - I’m assuming the payload is ignored here anyway).
I’ll play with it some more - I think it’s working but the lag (probably due to being a Pi Zero2) is making it a bit difficult to be fully certain.
Great job anyway though, especially for a quick weekend project