Skip to content

romasku/tuya-zigbee-switch

Repository files navigation

GitHub stars GitHub issues StandWithUkraine Discord

🔓 Custom firmware for Tuya Zigbee switches

Feature-rich custom firmware for Telink/Silabs Zigbee switches, modules, sockets

🤔 Why?

The main driver for this project was a frustrating bug in the factory firmware:

When you pressed one button, the device shortly ignored input from the others.
As a result, simultaneously pressing two buttons toggled a single relay.

Users also consider this the missing piece of a reliable smart home, because it allows using a light switch as a Zigbee remote.

Most cheap switches on the market don't allow binding to other devices out-of-the-box.

✨ Features

Already implemented

  • Super fast reaction time (choose action moment: press / release)
  • Detached mode (unlink switch and relay)
  • Outgoing binds (remotely control Zigbee lights - state & brightness)
  • Supports all button types: toggle, momentary NO, momentary NC
  • Configurable Long press for push-switches (action & duration)
  • Custom switch action modes (sync: switch position - relay state - bound devices)
  • Both Router & EndDevice modes for no-Neutral devices
  • Power-on behavior (on, off, previous, toggle)
  • Wireless flashing and updating (OTA from original fw, further OTA updates)
  • Multiple reset options (10x switch press, on-board button)

Work in progress

  • Wireless switches (battery-powered remotes)
  • FW-level multi-press (double or triple click)
  • Countdown timers (on_with_timed_off)
  • Inching (pulse relay output)
  • Scenes (send and receive)
  • Power monitoring
  • Touchlink
  • Integrate converters with Z2M

📲 Installation

If your device is already on supported_devices.md, the firmware can be installed:

Otherwise, check contribute/porting.md.

📑 Documentation

Information and diagrams are available in docs/

Some quick links:

💬 Chat

Discuss, troubleshoot and follow the updates on Discord 🙂

Discord

🙏 Acknowledgements

⭐ Star History

Star History Chart

About

Feature-rich custom firmware for Telink/Silabs Zigbee switches, modules, sockets

Resources

License

Stars

Watchers

Forks

Packages

No packages published