shelly-homekit
shelly-homekit copied to clipboard
Request: allow user to determin LONG PRESS duration
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 ?
makes sense
yeah maybe @timoschilling or @ZeevoX could take a look.
@rojer could you point out the place where the value is set/used?
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
default values are constants - set here