<span align="center">

<a href="https://github.com/iRayanKhan/Assets-Repo/blob/master/Tuya-Plugin-Branding.png?raw=true"><img alt="homebridge-verified" src="https://github.com/iRayanKhan/Assets-Repo/blob/master/Tuya-Plugin-Branding.png?raw=true" width="500px"></a>

# Homebridge-Tuya

<a href="https://www.npmjs.com/package/homebridge-tuya"><img title="npm version" src="https://badgen.net/npm/v/homebridge-tuya" ></a>
<a href="https://www.npmjs.com/package/homebridge-tuya"><img title="npm downloads" src="https://badgen.net/npm/dt/homebridge-tuya" ></a>

</span>


Homebridge-tuya is a homebridge plugin that lets you control your Tuya based devices with Homekit. 

Some devices may not be supported. Please check the common issues tab in the wiki for more info. 


## Installation 
To use this plugin, follow the steps below:

1) Install [Homebridge](https://github.com/homebridge/homebridge), if you haven't already.

2) Install this plugin. You may need to prefix this command with ```sudo``` if you run into any issues.

```npm i -g homebridge-tuya```

3) Add your device's parameters to your ```config.json``` file, then reload Homebridge.

To find your devices configuration parameters, please look at the Wiki.

**Note** The wiki has some inconsitencies with V1 and 2. I will fix this, I justt need to wait for V2, before it's all up-to-date. 

**To get ID and Key** Watch [this](https://www.youtube.com/watch?v=oq0JL_wicKg) video. 

## Issues

If you spot any errors with the plugin, or have a question, feel free to open a issue.

Please be sure to check the Common Issues tab in the wiki, before you open an issue.

My goal is to reply to an issue within 48 hours. If I am delayed, please @ me so I can get the notification, or shoot me a tweet @iRayanKhan. 

## Contribution guide

Any help is welcome! 

If you would like to make refinments to this plugin, add new device support, or anything else feel free to make a fork, and submit a PR detailing the changes you made, and why. 



## Credits

CodeTheWeb - Original repo

mxdanger   - Plugin branding 

Amoo-Miki  - Plugin core

Oznu       - config.schema, and various enhancements in V2.0.0

