I have a few difficulties with the new device_class.
My garage has a shelly 1 attached to it’s external signal with a momentary switch attached. The button could be pressed and the shelly would deactivate it after a second.
With an external binary sensor I am monitoring the gate if it is open or closed.
That all runs fine. But since the new device_class I was asking myself if it would be possible to change the device_class of the shelly to a “button” so there is no switch in the UI. It does not make since at all to have a switch there when it turns of again instantly.
Button entities can only be provided by integrations.
A button entity is stateless, a relais like the shelly always has a state.
If you want something to press make a script with a service call.
Thank you for your feedback. That is what I guessed from what I have read in the docs.
Would that even make no difference if the button type in the shelly app is set to momentary?