polyedre / tuya-lan

A custom component to Home Assistant to integrate Tuya without the use of tuya servers
MIT License
11 stars 1 forks source link

+TITLE: Tuya-lan

A component to integrate Tuya devices to Home Assistant without relying on Tuya's servers. It is based on [[https://github.com/clach04/python-tuya][this python library]].

Copy =init.py=, =manifest.json=, =sensor.py= and =switch.py= in your Home Assistant configuration folder as below:

+BEGIN_EXAMPLE

.homeassistant ├── automations.yaml ├── configuration.yaml ├── custom_components │ └── tuya_lan │ ├── init.py │ ├── manifest.json │ ├── sensor.py │ └── switch.py

+END_EXAMPLE

Add to =configuration.yaml=:

+BEGIN_EXAMPLE

sensor:

You can get the =device_id= and the =local_key= by following [[https://github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md][this guide]].

Any pull request is welcome !

This project is licensed under the MIT License - see the [[LICENSE.md][LICENSE.md]] file for details.