nplan / HomeButtons

140 stars 9 forks source link

Question (not an issue) - Have you considered double-click functionality? #9

Closed JunghaJungha closed 1 year ago

JunghaJungha commented 2 years ago

Hi,

Is it possible to add double-click functionality to home buttons?

Thanks, Koen

nplan commented 2 years ago

No, not at the moment. It's on the list of future improvements.

gon0 commented 2 years ago

I received two homebuttons and I am willing to get more in the future. Great product! Iwould like to add as feature requests:

nplan commented 1 year ago

Added this feature in v2.0.2. It works slightly differently than what @gon0 suggested to be compatible with Home Assistant. There is now a separate topic and a separate trigger entity for single, double, triple and quadruple press. The payload is still "PRESS" in all cases. The LEDs flash the number of presses. Hold functionality is not implemented since it's used for controlling other features of Home Buttons.

MatthiasLohr commented 1 year ago

The LEDs flash the number of presses

Can't confirm that.

Single: LED just on Double: LED just on Triple: LED on - off - on Quadruple: LED on - off - on - off - on

Firmware v2.0.3

nplan commented 1 year ago

In sleep mode the last blink always holds until device goes back to sleep. In awake mode all blinks are the same length.

Is it actually registering the correct number of presses and just blinking wrong?

You might be clicking too quickly. See issue #26.

MatthiasLohr commented 1 year ago

You might be clicking too quickly. See issue #26.

Oh, yes! Giving it a bit more time and it works.