Momentary push button functionality

Hi,

I’m adding a Sonoff 4Ch relay device into my system, and I would like to add buttons to the LL dashboard, that would have the functionality that would close the relay while the button is held, and open the relay when the button is released. If the button is tapped, I would like to close the relay for a number of milliseconds, a bit like the inching function which is available in the original ewelink app.

I have done some searching, and I came across a PR that adds the release_action functionality, but this has not been implemented into the release as of yet:

The PR lists some buggy functionality, some issues etc, so I’m not keen on implementing this PR in my system.

There must be some other way of implementing this, perhaps via the hold functionality and automations, services, timings etc to approximate something similar.

Any help or suggestions would be greatly appreciated.

Thanks.