nplan/HomeButtons

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

Closed this issue · 6 comments

Hi,

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

Thanks,
Koen

nplan commented

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

gon0 commented

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

  • SINGLE, DOUBLE, TRIPLE, QUAD, PENTA instead of "PRESS" (like tasmota )
  • HOLD and RELEASE (see tasmota)
  • LED Feedback should confirm the detected Press-Mode via flashes
nplan commented

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.

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

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.

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

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