button-card
button-card copied to clipboard
Trigger hold action after period of time
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.
This would allow similar behavior to buttons in the IOS HomeKit App. A held button will automatically trigger an action after its delay
: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:
: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: