heruwinar / tuya-lan

A custom component to Home Assistant to integrate Tuya without the use of tuya servers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tuya-lan

A component to integrate Tuya devices to Home Assistant without relying on Tuya’s servers. It is based on this python library.

Getting Started

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.

Contributing

Any pull request is welcome !

License

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

About

A custom component to Home Assistant to integrate Tuya without the use of tuya servers

License:MIT License


Languages

Language:Python 100.0%