A community-maintained Homebridge plugin for controlling Tuya devices locally over LAN. Control your supported Tuya accessories locally in HomeKit, with an optional Tuya Cloud fallback for devices the LAN can't reach.
- Supported Device Types
- Supported Tuya Protocol Versions
- Installation Instructions
- Configuration
- Known Issues
- Troubleshooting
- Credits
- License
- Donating
Click the number next to your device to find the possible DataPoint "DP" values, then add as needed to your config.
- Air Conditioner1
- Air Purifiers2
- Convectors3
- Dehumidifers4
- Dimmers5
- Fan6
- Fan v27
- Garages8
- Heaters9
- Irrigation Systems / Sprinklers17 (multi-valve, per-zone timers, battery)
- Lights
- Oil Diffusers13
- Outlets14
- Switches15
- Vertical Blinds16
The plugin is LAN-first — everything is controlled locally by default. If you add Tuya Cloud credentials in a top-level cloud block, it keeps a cloud session in the background and uses it as a fallback: each device is tried on the LAN first, and only falls back to the cloud when it can't be reached locally — a brief LAN hiccup, or hardware that never appears on the LAN at all (e.g. battery-powered "sleepy" devices). It's opt-in and local always comes first, and existing configs need no changes — so it's also a handy fix if some devices occasionally show as "No Response".
See the Tuya Cloud Setup guide for credentials and setup.
Search for "Tuya" in homebridge-config-ui-x and install homebridge-tuya-plus.
sudo npm install -g homebridge-tuya-plus
Every commit to main is automatically published to npm under the dev tag — a
separate, unstable channel. To try the latest in-development build:
sudo npm install -g homebridge-tuya-plus@dev
These are versioned like 3.14.0-dev.<n> and may be unstable; use the default
install above for production.
UI
- Navigate to the Plugins page in homebridge-config-ui-x.
- Click the Settings button for the Tuya plugin.
- Add your device types
- Add device parameters10
- Restart Homebridge for the changes to take effect.
Manual
- Edit the config.json file to add your device types, and parameters.
- Restart Homebridge
- If your devices add, but you can't control them, make sure you entered the DataPoint "DP" values for your device.
If you have new accessory logic for a new device, please add a function defined by manufacturer, and describe your changes in the readME file.
- iRayanKhan - developer of the original homebridge-tuya plugin.
- AMoo-Miki - developer of the Tuya-Lan plugin which this plugin is based off.
- mxDanger - Plugin branding.
- CodeTheWeb - developer of TuyaApi, who gratiously provided this repo's name.
- Oznu - developer of Homebridge, added
config.schema.json, fixed dependencies, and helped inspire this readME off his gsh plugin.
Check out my other Homebridge plugins:
