button-card icon indicating copy to clipboard operation
button-card copied to clipboard

Trigger hold action after period of time

Open fabianluque opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. Currently I'm using this piece of YAML to trigger a popup using browser_mod:

   hold_action:
     repeat: 250
     haptic: heavy
     action: fire-dom-event
     browser_mod:
       command: popup 

Of course this triggers the popup multiple times but executes the action after 250ms.

Would it be possible to implement a feature where the hold action triggers right after the 250ms has passed just once. The current behavior for hold action is to trigger when you release the tap/click.

fabianluque avatar Feb 09 '22 22:02 fabianluque

This would allow similar behavior to buttons in the IOS HomeKit App. A held button will automatically trigger an action after its delay

MattZera avatar Mar 05 '22 23:03 MattZera

:tada: This issue has been resolved in version 4.0.0-dev.8 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Jul 24 '23 19:07 github-actions[bot]

:tada: This issue has been resolved in version 4.0.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Jul 29 '23 00:07 github-actions[bot]