Virtual Push button (push and release mechanism)

Hello Everyone,

I would like to create a push button that controls a relay switch.
My use case is simple yet I have difficulties trying to fin the correct syntax.

I want to virtually emulate a physical button that controls my desk going up or going down. When I press the “physical” up button, the desks goes up, when i release it, the desk stops.
I want to do the same on a software level via a relay switch already configure.
Ideally I would like to get something like that on the front en:
image
Thanks for any help !

Unfortunately Home Assistant dashboard actions do not support a release action (only tap and hold). So this is not possible:

You can vote here:

Having said that there may be a third party solution I am not aware of.

1 Like