esphome / esphome/feature-requests

Allow using Tuya Dimmer’s “long press” (WIFI_SELECT) to fire double-click events

Open
#1,912 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

component: tuya
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.