Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

A Homebridge plugin to control Tuya devices locally.

License

Notifications You must be signed in to change notification settings

ayushsharma82/homebridge-tuya-local

 
 

Repository files navigation


Homebridge-Tuya-Local

npm npm verified-by-homebridge

[DEPRECATED] This fork was created due to lack of timely updates in upstream repository of iRayanKhan. Now that his repository is receiving frequent updates along with fix for new local keys, it's recommended to switch to his plugin back for all the latest changes and improvements. I'm marking this plugin as deprecated.

Control your supported Tuya accessories locally in HomeKit using Homebridge!

Supported Device Types

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
  • Lights
    • On/Off10
    • Brightness11
    • Color12 (Hue, Saturation, Adaptive Lighting)
  • Oil Diffusers13
  • Outlets14
  • Presence Sensor (ZY-M100)
  • Switches15

Note: Motion, and other sensor types don't behave well with responce requests, so they will not be added.

Installation Instructions

Option 1: Install via Homebridge Config UI X:

Search for "Tuya" in homebridge-config-ui-x and install homebridge-tuya-local.

Option 2: Manually Install:

sudo npm install -g homebridge-tuya-local

Configuration

UI

  1. Navigate to the Plugins page in homebridge-config-ui-x.
  2. Click the Settings button for the Homebridge Tuya Local plugin.
  3. Add your device types
  4. Add device parameters10
  5. Restart Homebridge for the changes to take effect.

Manual

  1. Edit the config.json file to add your device types, and parameters.
  2. Restart Homebridge

Known Issues

  1. If your devices add, but you can't control them, make sure you entered the DataPoint "DP" values for your device.

Troubleshooting

  1. Make sure the plugin is up-to date
  2. Check for existing issues

Contributing

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.

Credits

  • Eliran Sapir (https://github.com/sapireli) - updated fork of @iRayanKhan's work.
  • 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.

License

Donating

Please donate to a local pet shelter, or food pantry. It's been a wild time, but we can do our part by helping others.

About

A Homebridge plugin to control Tuya devices locally.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%