Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support fo Tuya devices #7

Closed
guyluz11 opened this issue Jul 20, 2021 · 7 comments · Fixed by #82
Closed

Add support fo Tuya devices #7

guyluz11 opened this issue Jul 20, 2021 · 7 comments · Fixed by #82
Assignees
Labels
feature request Request to add new feature help wanted Extra attention is needed JavaScript knowledge JavaScript knowledge may help Python knowledge Python knowledge may help

Comments

@guyluz11
Copy link
Member

guyluz11 commented Jul 20, 2021

Tuya devices are popular option when its come to smart devices.
It is one of the most used smart devices in Home Assistant with 14.4% of its users using it.
So adding support for that takes priority.

image

@guyluz11
Copy link
Member Author

guyluz11 commented Jul 22, 2021

If my understanding is correct we can talk to tuya devices by calling the API endpoints .
Found also tuyapy in python 3 and the same library but this time in JavaScript that require port 6668 to be open.

@guyluz11
Copy link
Member Author

guyluz11 commented Jul 24, 2021

News news.

Tuya is add support out of the box for home assistant, home assistant can now control Tuya devices locally.

We prefer talking to the devices locally so this is perfect.
Lets implement Tuya API for Home Assistant in our code.

@guyluz11
Copy link
Member Author

guyluz11 commented Aug 30, 2021

If I understand correctly Tuya is creating devices with thair firmware for a lot of other companies.
With a quick search I found

  • SmartThings
  • Smart Homy
  • Lloyd
  • Baiyu Electronics
  • Calex

And the list go on.

I am hoping that adding integration for Tuya will add integration for all these companies but more research is required.

@guyluz11
Copy link
Member Author

guyluz11 commented Sep 10, 2021

It looks like tuyapi is our best option as it controls the device locally, it's written in JavaScript and the project can run by itself.

As the maintainer of this package said

This package is only for local control. Tuya has not released an API for local control, although they're planning to do so at some point.

So we can get news about official local support in the link in case they decide to release it.

Here is issue abot cloud support, maybe we can start with supporting the Yuya cloud if it easier.

guyluz11 added a commit that referenced this issue Sep 13, 2021
Add Xiaomi Miio to the VendorsAndServices in proto file
@guyluz11 guyluz11 added the help wanted Extra attention is needed label Sep 27, 2021
@guyluz11
Copy link
Member Author

Implementation of tuya cloud api using javascript cloudtuya.
Implementation of tuya cloud api using python tuyaha.

@guyluz11 guyluz11 added JavaScript knowledge JavaScript knowledge may help Python knowledge Python knowledge may help labels Sep 28, 2021
@guyluz11 guyluz11 self-assigned this Oct 6, 2021
@guyluz11 guyluz11 linked a pull request Oct 10, 2021 that will close this issue
@guyluz11
Copy link
Member Author

I am closing this issue for now as I have added support for Tuya cloud.

This issue can be open or referenced on the day that we decide to add support for local control as it collected a lot of information.

@guyluz11 guyluz11 moved this from Not supported yet to Partially Working in Supported Integrations Oct 17, 2021
@guyluz11
Copy link
Member Author

Saving smartlife implementation here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request to add new feature help wanted Extra attention is needed JavaScript knowledge JavaScript knowledge may help Python knowledge Python knowledge may help
Projects
Supported Integrations
Partially Working
Development

Successfully merging a pull request may close this issue.

1 participant