Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GENERAL] Detect and output double tap, triple tap, long press and sustained hold input events #3

Open
raintonr opened this issue Feb 1, 2016 · 3 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@raintonr
Copy link

raintonr commented Feb 1, 2016

As discussed: http://forum.unipi.technology/viewtopic.php?f=14&t=189

For home automation lighting I'm guessing you'd connect digital inputs to momentary contact light switches.

In such an application it would be very useful to have double tap, triple tap, long press events detected. I'm guessing the best way to do that is in the evok layer and have it spit out different events.

What about sustained holding of an input? Would that be best handled with an 'input on' / 'input off' event pair? Here I'm thinking for controlling dimmable lights or blinds manually rather than setting to predefined levels.

@MervColton
Copy link

I'm planning on having momentary switches for light switches in my house, doing something similar. The useful purpose for me is to be able to turn off ALL the lights in the whole house from the entry/exit door, and from beside the bed.

I'll be interested in watching this space, and contributing if I can. Just got my unipi this weekend, but forgot to get a power supply :-(

Merv.

@MervColton
Copy link

An update to this: I implemented momentary switches for lights, and it works great. If you do a long-press, over 2 seconds i use that as a signal to turn off all the lights. I implemented this through Python as I could record the start and end time of each press.

@tknot tknot self-assigned this Aug 9, 2017
@tknot tknot added enhancement New feature or request question Further information is requested labels Aug 10, 2017
@tknot tknot changed the title Detect and output double tap, triple tap, long press and sustained hold input events [GENERAL] Detect and output double tap, triple tap, long press and sustained hold input events Sep 14, 2017
@tknot tknot added the request label Oct 9, 2017
@PlazzmiK
Copy link

This would be an awesome feature! I'm currently using Node-RED to implement this because I'm already using it to send everything over MQTT. It would simplify my flow so much.

@tknot tknot removed their assignment Mar 1, 2019
@cleveHEX cleveHEX removed the request label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants