Skip to content

dlnraja/com.tuya.zigbee

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5,175 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tuya Unified Zigbee App for Homey

Version Fingerprints Drivers Flow Cards SDK License Homey

A community-driven Homey app that brings local control to Tuya Zigbee devices — no cloud, no internet needed. Covers switches, sensors, lights, thermostats, covers, locks, and more across 228 drivers and 10,875+ device fingerprints.

Key features:

  • Local-only — everything runs on your Homey, nothing goes to the cloud
  • Hybrid mode — auto-detects whether a device speaks Tuya DP or standard ZCL
  • Smart battery — voltage-based fallback when devices don't report percentage
  • 2,453+ flow cards — triggers, conditions & actions in EN, FR, NL, DE
  • SDK3 — built on the latest Homey platform

Installation

Method Link
Homey App Store Install from Homey App Store
Test Version Install Test Version
GitHub Releases View Releases

Statistics

Metric Value
App Version v7.5.41
Device Fingerprints 10,875+
Unique Product IDs 560
Drivers 228 (178 Zigbee + 50 WiFi)
Flow Cards 2,453
Unique Capabilities 135
SVG Icons 388
Languages EN, FR, NL, DE
SDK Version 3
Homey Compatibility >=12.2.0
Last Updated 2026-05-17

Top 20 Drivers by Fingerprint Count

# Driver Fingerprints
1 climate_sensor 2,031
2 switch_1gang 972
3 radiator_valve 524
4 plug_energy_monitor 442
5 dimmer_wall_1gang 384
6 curtain_motor 361
7 generic_tuya 352
8 presence_sensor_radar 294
9 contact_sensor 270
10 switch_2gang 258
11 bulb_rgbw 256
12 motion_sensor 245
13 switch_4gang 236
14 diy_custom_zigbee 206
15 thermostat_tuya_dp 201
16 switch_3gang 184
17 bulb_tunable_white 138
18 water_leak_sensor 136
19 bulb_dimmable 120
20 button_emergency_sos 115

Drivers by Device Class

Class Count
sensor 60
socket 53
light 24
other 19
thermostat 18
remote 17
fan 10
windowcoverings 5
doorbell 4
lock 4
heater 4
garagedoor 3
button 2
curtain 2
camera 1
vacuumcleaner 1
speaker 1

Latest Updates

Version Changes
v7.5.41 v7.5.40: Fixed empty battery reports on sleepy Tuya devices by implementing greedy adaptive battery listeners with ZC...
v7.5.40 Bug fix: Empty battery reports on sleepy devices resolved with adaptive battery listeners and ZCL/IAS fallbacks.
v7.5.39 Updated 3202 fingerprints across 228 drivers. Added new device support and minor fixes.
v7.5.38 No user-facing changes in this release.
v7.5.37 Fix all runtime syntax errors, resolve unclosed braces, add support for wall_remote_2_gang assets and validate SDK3 c...
v7.5.35 v7.5.34: Fixed condition card registration in air_quality_comprehensive and din_rail_meter drivers (resolved runt...
v7.5.34 v7.5.34: Fixed condition card registration in air_quality_comprehensive and din_rail_meter drivers. Standardized butt...
v7.5.33 Fixed condition cards in air quality & DIN rail meter drivers. Added standardized button flow triggers (press, double...
v7.5.32 v7.5.32: . Harmonized driver icons, updated app store assets, and restored draft-to-test fixes.
v7.5.31 v7.5.31: Harmonized 228 driver icons with new SVG assets. Updated app store images. Fixed various device icon inconsi...
v7.5.30 Harmonized icons across all 228 drivers, updated app store assets, and added support for new soil sensor fingerprint ...
v7.5.29 Bug fixes and improvements for Tuya Zigbee devices. Added support for new soil sensor fingerprint. Updated diagnostic...
v7.5.28 Added 3,208 new fingerprints, improved driver matching for soil sensors, and fixed various device initialization issues.
v7.5.27 v7.5.27: . New IR pairing wizard, improved power clamp meter, and various bug fixes.
v7.5.26 Fixed SDK3 deprecation warnings across all 45 drivers by migrating from deprecated getTriggerCard to getDeviceTrigger...

Key Features

Dual Protocol Support

  • Tuya DP Protocol (Cluster 0xEF00) - For Tuya-specific devices
  • Standard ZCL - For native Zigbee 3.0 devices
  • Auto-Detection - Observes device for 15 min, then picks the best protocol

Smart Battery Management

  • 8 battery chemistries supported
  • 4 calculation algorithms
  • Voltage-based fallback when percentage unavailable

Energy Monitoring

  • Full kWh, W, V, A support
  • Configurable ZCL energy divisors
  • Auto-removal of unused energy capabilities after 15 min

Physical Button Detection

  • 2000ms timeout-based detection
  • Flow triggers for physical button presses per gang
  • Deduplication to prevent duplicate triggers

Supported Device Categories

Category Examples Protocol
Switches (1-8 gang) Wall switches, smart relays, BSEED, Zemismart ZCL + Tuya DP
Dimmers Wall dimmers, LED dimmers, rotary knobs ZCL + Tuya DP
Lights RGB, RGBW, CCT bulbs, LED strips ZCL
Plugs & Sockets Smart plugs, energy monitors, power strips ZCL + Tuya DP
Sensors Temp/humidity, motion, contact, water leak, smoke, air quality ZCL + Tuya DP
Presence Radars mmWave, PIR+radar hybrid, HOBEIAN ZG-204ZM ZCL + Tuya DP
Thermostats & TRVs Radiator valves, floor heating, AVATTO, Moes Tuya DP
Covers Curtain motors, roller blinds, garage doors Tuya DP + ZCL
Buttons & Remotes Scene switches (1-4 button), SOS buttons, rotary ZCL
Locks Smart door locks, fingerprint locks Tuya DP
Climate Air purifiers, fans, IR blasters, humidifiers Tuya DP
Water Valves, tank monitors, garden timers Tuya DP
WiFi Devices Tuya WiFi switches, plugs, sensors (via cloud API) WiFi/Cloud

Supported Brands

BSEED, Zemismart, Moes, AVATTO, Lonsonho, HOBEIAN, Lidl/Silvercrest, eWeLink/SONOFF, Girier, Benexmart, Owon, and hundreds more via Tuya OEM fingerprints.


Architecture

Homey Pro
  └─ Tuya Unified Zigbee App (SDK3)
       ├─ Hybrid Protocol Engine
       │    ├─ Tuya DP (Cluster 0xEF00) ─ DP1-DP255 data points
       │    └─ Standard ZCL ─ onOff, levelControl, colorControl, etc.
       ├─ DeviceProfileRegistry (149 profiles)
       │    └─ Per-fingerprint: DP mappings, quirks, timing
       ├─ BatteryManager (8 chemistries, voltage fallback)
       ├─ PhysicalButtonMixin (2000ms detection)
       └─ 228 Drivers ─ 10,875+ fingerprints

Data Sources

Source Usage
Zigbee2MQTT Device discovery, DP mappings, manufacturer names
Blakadder Cross-checking rebranded Tuya devices
ZHA / zigpy Device signatures, custom quirks
deCONZ REST plugin device data
CSA Zigbee 3.0 certified products
Homey Community Forum User reports, device interviews
JohanBendz Fork Community contributions

Automation Workflows

Workflow Schedule Description
Daily Everything Daily 2 AM UTC Forum + GitHub auto-response with AI
Forum Responder Every 6h Monitors topics 140352, 26439
GitHub Scanner Mon/Thu Issues, PRs, forks analysis
Enrichment Scanner Mon/Thu Z2M, ZHA, deCONZ, Blakadder sync
Sunday Master Sunday 7 AM Full triage, fork scan, forum scan
Monthly Comprehensive 1st of month Deep scan all sources

Known Firmware Limitations

Issue Affected Devices Status
TS0601 Time Sync LCD climate sensors (TZE284*) Some firmwares ignore Zigbee time responses
Battery 0% TS0044 buttons (_TZ3000_wkai4ga5) Reports 0% always - firmware bug
Cloud-only devices Some TS0601 variants MCU ignores local Zigbee commands

Re-pairing required after driver updates to apply new mappings.


Development

Prerequisites

  • Node.js 18+
  • Homey CLI: npm install -g homey

Quick Start

git clone https://github.com/dlnraja/com.tuya.zigbee.git
cd com.tuya.zigbee
npm install
homey app run

Build & Validate

homey app build
homey app validate --level publish
homey app run

Links

App Store Tuya Unified Zigbee
Test Version Install Test
Forum Community Thread
Device Finder Smart Device Finder
GitHub github.com/dlnraja/com.tuya.zigbee
Issues Report a Bug

FAQ

My device shows as "unknown Zigbee device"

Your device's fingerprint (manufacturerName + productId) is not yet in the app. Open a GitHub issue with your device interview from Homey Developer Tools.

Device paired but doesn't respond to commands
  1. Try re-pairing the device (remove and add again)
  2. Check if it's a Tuya DP device (TS0601) — these need specific DP mappings
  3. For BSEED/Zemismart: these are ZCL-only, ensure explicit binding is working
Battery always shows 0%

Some devices (e.g., TS0044 _TZ3000_wkai4ga5) have a firmware bug that always reports 0%. The app uses voltage-based fallback when available, but some devices don't report voltage either.

Temperature/humidity values are wrong (divided by 10 or 100)

This is usually a double-division bug. The app auto-detects divisors from Tuya DP values. If values are still wrong after re-pairing, open an issue with your exact manufacturerName.

How to get the test version?

Install from: Test Version — this is auto-promoted from draft builds daily.


Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feat/my-device)
  3. Validate: homey app validate --level publish
  4. Submit a pull request with description

Report a New Device

  1. Get a device interview from Homey Developer Tools
  2. Check Zigbee2MQTT for DP mappings
  3. Check Blakadder for cross-references
  4. Open an issue with: manufacturerName, modelId, and interview data

Report a Bug

  1. Go to Settings > Apps > Tuya Unified Zigbee > Send Diagnostics
  2. Open a bug report with: device model, error messages, and diagnostics code

Support This Project

This app is developed in my free time, powered by passion and coffee!

Method Link
PayPal @dlnraja
Revolut Revolut.Me

100% optional - Your feedback and bug reports are equally valuable!


Credits & Thanks

A massive thank you to the maintainers and contributors of:

  • Koenkk and all contributors to Zigbee2MQTT
  • blakadder and the Zigbee Device Compatibility Repository
  • The zigpy / ZHA / zha-device-handlers maintainers
  • The CSA (Connectivity Standards Alliance) for the Zigbee specifications
  • All developers and testers who share device logs, diagnostics, and fingerprints

License

GPL-3.0 - See LICENSE file

Project License
Zigbee2MQTT GPL-3.0
ZHA Apache-2.0
Blakadder MIT
deCONZ BSD-3-Clause

Made with love by Dylan Rajasekaram & the Zigbee community

Last updated: 2026-05-17

About

new updated version

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 85.5%
  • HTML 14.2%
  • Other 0.3%