A component to integrate Tuya devices to Home Assistant without relying on Tuya’s servers. It is based on 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:
- platform: tuya_lan
wifi_ssid: "<your_wifi_ssid>"
wifi_password: "<your_wifi_password>"
You can get the device_id and the local_key by following this guide.
Any pull request is welcome !
This project is licensed under the MIT License - see the LICENSE.md file for details.