Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.
/ tuyaha Public archive

Implements the special Tuya Home Assistant API.

License

Notifications You must be signed in to change notification settings

PaulAnnekov/tuyaha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tuyaha

This library was maintained exclusively for Home Assistant Tuya component. As HA 2021.10.0 switched to Tuya-supported 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 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 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 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.