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:
.homeassistant ├── automations.yaml ├── configuration.yaml ├── custom_components │ └── tuya_lan │ ├── init.py │ ├── manifest.json │ ├── sensor.py │ └── switch.py
Add to =configuration.yaml=:
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.