Button with three states "Pressed, Held, Released"

Three-state button.
Pressed, Held, Released

I am working on one open-source project (HA Bot) where I need to send MQTT messages to “HABot” for each button state.
the most important state for me is “Released” to stop the robot …
I hope people besides me will need this functionality

Thanks

I voted this, would be very helpful

  • How about short press, Long press, multi press options for user and integrations.
  • How about a button to ‘toggle’ an existing switch on and off. (instead of a script to toggle it, delay, toggle it back again)
  • How about a button to fire a web hook.
  • How about a Button to fire a shell_script

For my HA BOT project, I didn’t find a solution in HA. I implemented it with a webpage CARD

I believe there is solution in custom: button-card.
Check this: Button released events?