It would be very useful for me to have a “Button” in the MQTT Discovery.
I need to have a “Button” that sends the payload “on” and “off” on pressing / releasing.
At the same time, it should also have the status and availability always read by an MQTT topic.
In the topic and payload I can put what I want.
My problem is to make a button appear in the mqtt integrations which every time I click sends an “on” payload.
Switches and sensors make them appear quietly.
You have a device with a button, and you want to create a mqtt discovery message for it ?
What topic does it send on, and what are the values for on and off ?