esphome / esphome/feature-requests
Allow using Tuya Dimmer’s “long press” (WIFI_SELECT) to fire double-click events
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 450
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the problem you have/What new integration you would like**
It would be nice if long-pressing a Tuya Dimmer switch’s main button triggered a double-click event, instead of returning “ESP_LOGE(TAG, "WIFI_SELECT is not handled");”
**Please describe your use case for this integration and alternatives you've tried:**
Firing a double-click event would allow additional automations to be triggered, increasing the functionality of existing switches.
**Additional context**
The main button on Tuya Dimmer switches is wired to the Tuya module, so normal GPIO pin-snooping can’t be used to detect long-presses or double/multi-clicks.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Tuya Dimmer handling for the WIFI_SELECT event and the source of the reported ESP_LOGE message. Compare the current event behavior with the requested long-press interaction. Done means long-pressing the main button reliably fires a double-click event instead of reporting that WIFI_SELECT is unhandled.
Written by the indexing model from the issue text.
Assessment
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100