OpenEPaperLink / Home_Assistant_Integration

Home assistant Integration for the OpenEPaperLink project
https://openepaperlink.de
Apache License 2.0
159 stars 35 forks source link

Tag button presses generates multiple events #190

Closed quack3d closed 3 weeks ago

quack3d commented 1 month ago

When pressing the buttons of a tag (at least it's happening on my M3 tags), there are sometimes multiple events generated in Home Assistant. This is troublesome when using buttons for automations in HA.

To reproduce: Go /developer-tools/event and start listening to open_epaper_link_event and press a button. Sometimes (not sure when), BUTTON1 will show several times, even after several seconds.

We've discussed it on Discord before but I thought I put it in here to keep track of the issue. I'm not sure whether anyone has looked at it yet.

g4bri3lDev commented 1 month ago

I can take a look at this; a possible fix might be to add a software debounce when the button press event is fired, but the underlying issue could lie elsewhere

jonasniesner commented 1 month ago

This is also related to #1