Shelly 1 Switch as "momentary switch" with new button device_class possible?

Hi!

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.

I additionally can not find “show as” in the UI.

Could anybody help me out with this?

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.

1 Like

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?

The entity in HA is not the switch connected to the Shelly but the relais itself, which has a state.

1 Like

I made a script but it is named “execute” instead of “push”. Should it be that way?