Skip to content

[tuya] Document wifi_reset, on_wifi_reset and on_wifi_select#6712

Open
dshcherb wants to merge 1 commit into
esphome:nextfrom
dshcherb:tuya-wifi-reset
Open

[tuya] Document wifi_reset, on_wifi_reset and on_wifi_select#6712
dshcherb wants to merge 1 commit into
esphome:nextfrom
dshcherb:tuya-wifi-reset

Conversation

@dshcherb
Copy link
Copy Markdown

Description

Add documentation for the new wifi_reset, on_wifi_reset, and on_wifi_select configuration options added to the Tuya MCU component.

When a Tuya MCU device has a physical button, long-pressing it triggers the MCU to send WIFI_RESET (0x04, EZ pairing) or WIFI_SELECT (0x05, AP pairing) commands to the WiFi module. Previously, ESPHome only acknowledged these commands and sent a fake WIFI_STATE progression to satisfy the MCU - no actual reset or pairing occurred.

The new options allow:

  • wifi_reset: true - clear saved WiFi credentials and reboot when the MCU sends a reset command
  • on_wifi_reset / on_wifi_select - automation triggers for custom logic (e.g., reboot without clearing credentials, notify Home Assistant, turn off relays before reset)

Related issue (if applicable):

Pull request in esphome with YAML changes (if applicable):

Checklist

  • I am merging into next because this is new documentation that has a matching pull-request in esphome as linked above.
    or

  • I am merging into current because this is a fix, change and/or adjustment in the current documentation and is not for a new component or feature.

  • Link added in /src/content/docs/components/index.mdx when creating new documents for new components or cookbook.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 31, 2026

Deploy Preview for esphome ready!

Name Link
🔨 Latest commit 179e306
🔍 Latest deploy log https://app.netlify.com/projects/esphome/deploys/6a1c161b2ac0b300090f5f6b
😎 Deploy Preview https://deploy-preview-6712--esphome.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant