Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/PaulAnnekov/tuyaha
Implements the special Tuya Home Assistant API.
https://github.com/PaulAnnekov/tuyaha
home-assistant home-automation tuya
Last synced: 7 days ago
JSON representation
Implements the special Tuya Home Assistant API.
- Host: GitHub
- URL: https://github.com/PaulAnnekov/tuyaha
- Owner: PaulAnnekov
- License: other
- Archived: true
- Created: 2019-06-28T10:44:23.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-06T16:59:25.000Z (about 3 years ago)
- Last Synced: 2024-04-14T11:58:38.472Z (7 months ago)
- Topics: home-assistant, home-automation, tuya
- Language: Python
- Size: 47.9 KB
- Stars: 141
- Watchers: 16
- Forks: 106
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tuyaha
## This library was maintained exclusively for Home Assistant Tuya component. As HA 2021.10.0 switched to Tuya-supported [tuya-iot-py-sdk](https://pypi.org/project/tuya-iot-py-sdk/) library (finally 😮💨), there is no sense to continue supporting this library which uses deprecated API.
Cloned from the abandoned package [tuyapy](https://pypi.org/project/tuyapy/) v0.1.3. This package implements a Tuya
API endpoint that was specially designed for Home Assistant.This clone contains several critical fixes. Check commits.
## FAQ
### How to check whether the API this library using can control your device?- Copy [this script](https://github.com/PaulAnnekov/tuyaha/blob/master/tools/debug_discovery.py) to your PC with Python
installed or to https://repl.it/
- Set/update config inside and run it
- Check if your devices are listed
- If they are and description matches real device (e.g. lamp is lamp, not switch) - device is supported
- If they are not or description doesn't match real device - don't open an issue. Ask [Tuya support](mailto:[email protected]) to support your device in their
`/homeassistant` API
- Remove the updated script, so your credentials won't leak### My device is not listed in Tuya API response or contains incomplete state, what should I do?
Try new custom component from Tuya developers https://github.com/tuya/tuya-home-assistant/ or ask them to support your device.