shelly-homekit icon indicating copy to clipboard operation
shelly-homekit copied to clipboard

Request: allow user to determin LONG PRESS duration

Open andyblac opened this issue 4 years ago • 5 comments

can we add support to control how long the button has to be held down to action as a LONG PRESS, when in detached mode.

Some familly members and guests are holding the button to long and it is being detected as a LONG PRESS, but they just wanted a SHORT PRESS, it would be good if we can allow control of this in the webUI.

@ZeevoX is this something you could take a look at ?

andyblac avatar Jan 26 '21 14:01 andyblac

makes sense

rojer avatar Jan 26 '21 15:01 rojer

yeah maybe @timoschilling or @ZeevoX could take a look.

andyblac avatar Jan 26 '21 17:01 andyblac

@rojer could you point out the place where the value is set/used?

timoschilling avatar Jan 26 '21 22:01 timoschilling

i found these

https://github.com/mongoose-os-apps/shelly-homekit/blob/eb9dd677e677b9180a9f37eecf7b523cceeed81c/src/shelly_input_pin.cpp#L31 https://github.com/mongoose-os-apps/shelly-homekit/blob/47e0c4673637c3b7b5e5d6ec8022195de0a6c912/src/shelly_input_pin.hpp#L30 https://github.com/mongoose-os-apps/shelly-homekit/blob/ccf11f9e6c20cfc6136359956dfe81a2c4f5786c/src/shelly_main.cpp#L729

andyblac avatar Jan 26 '21 22:01 andyblac

default values are constants - set here

rojer avatar Jan 26 '21 22:01 rojer