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

Request: Long Press on each button and multi-touch? #22

Open
TeDeVPrime opened this issue Jun 11, 2024 · 4 comments
Open

Request: Long Press on each button and multi-touch? #22

TeDeVPrime opened this issue Jun 11, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@TeDeVPrime
Copy link

TeDeVPrime commented Jun 11, 2024

Is it me or did i see a double click / long click event in your code?

From the sensors i can see that you know if the button is being pressed or not so i am guessing it can be done?

that way i can have some actions run without mistakes.

for example Button 3 toggles the cover in the room.... i don't want to toggle the cover by accident so... if we had a long-click event that would make sure that i don't "touch" or "multi-touch" it by mistake

if i had a long-click on multi-touch, i could toggle the lights on the TX Ultimate in case that i don't want them at that time

@TeDeVPrime TeDeVPrime changed the title Request: Long Press on each button? Request: Long Press on each button and multi-touch? Jun 11, 2024
@edwardtfn
Copy link
Owner

Yes, I currently have events for click, double click and long click, but as I've set those as normal binary sensors we can use any of the automations available: https://esphome.io/components/binary_sensor/index.html#binary-sensor-automation

I have, however, to solve the issue with a click being detected on swipe or multi-fingers touch.

@edwardtfn
Copy link
Owner

By the way, the click, double-click and long-press events are sent to Home Assistant as events. You can monitor those on your Developer Tools / Events area and can use in your automations.

@edwardtfn
Copy link
Owner

I'm not sure I can detect a long multi-touch. Will have to look deeper on this.
Most likely we can.

@edwardtfn edwardtfn added the enhancement New feature or request label Jun 12, 2024
@Shach01
Copy link

Shach01 commented Jun 18, 2024

Hi Edward, thank you very much for the work. I am trying to decrypt the serial between the ESP32 and the touch controller. do you need to send a JSon or initilisation to the controller on boot? we are getting a constant generic stream over serial that does not change with touch inputs. any guidance would be much appreciated. Have a great day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants