And I think you could already do this--using such a driver, just run a custom command on it that publishes whatever you want. I'm no longer using MQTT for anything so can't test this myself, but there are a coupe community solutions (a beta of a full-featured MQTT client that username kevin is working on, and a newer MQTT client intended for simple cases like HASS integration). Either of these looks like the driver component has custom commands that could do what you're looking for.
1 Like