Add Support for Smart Life Components

This would be so awesome. Seeing how the app (Smart Life) works well with so many different (low cost) devices, it would indeed be an immense “upgrade” to HA.

5 Likes

Everyone make sure to click the vote button at the top so that we can make this happen!

2 Likes

One more vote for Tuya/Smart life integration from me.
I think the experts can get info after registering here:
https://developer.tuya.com/

1 Like

Smart Life Bulbs are great value for money , I would love to be able to have them in my Home Assistant setup

3 Likes

Another vote for Smart Life support.

4 Likes
1 Like

Awesome! I’m gonna give this a try sometime during the week and see if I can get it set up. Still wish we could get this set up as an integrated platform though.

This work with my Smart Bulbs. I can turn them on and off. Is it possible to control brightness and color ?

That would be great!

Has anyone started working on this or anything?

1 Like

another vote for smart life!!

3 Likes

There this python library to communicate with Tuya devices: https://github.com/clach04/python-tuya

Guess is just a matter of creating a HA plugin.

EDIT

Which already exists: https://github.com/sean6541/tuya-homeassistant

If anyone able to get it setup, please post your finding or steps.

I tried unsuccessfully, to get the Device Key various ways.

The plugin says it only works with switches.

What did you do to forward all traffic to your computer? I’m a bit confused by step 1 in this documentation (http://seandev.org/tuyainst/). I’ve got plenty of port forwards, but I don’t understand what I’m being asked to do. Know of any guides that might help? Thank you so much!

Also just voted! How many do we need?

We’re almost there. There’s the https://github.com/sean6541/tuya-homeassistant project which implements https://github.com/clach04/python-tuya. And its latest fork https://github.com/theit8514/tuya-homeassistant/tree/multiple-switches allows for multiple switches in one device.
There also exists a fork of python-tuya which implements light bulbs https://github.com/samuscherer/python-tuya. This however hasn’t been implemented in the tuya-homeassistant repo yet but it shouldn’t be very hard to do (it’s only 3 days old as well). So if someone wants to tinker around merging those three together or stimulating the devs to continue to work on it please go ahead!

2 Likes

Hey everyone! I am the owner of the repo updated 3 days ago Jolanrensen mentioned. It was fairly easy to figure out how to change the colour and the brightness etc. but there are still a few values I don’t quite understand. Other than that the code does work so far. I might open a pull request so that it can be merged into the original python-tuya repository. I’m fairly new to HA (just started today) but I might be able to take a look at the tuya-homeassistant repo these days. If there’s someone else with more time to spare, feel free to do what you need to do with my repo :wink:

5 Likes

Would love to see this all integrated and easily working in home assistant. I have switches and a light bulb now that uses the Smart Life/Tuya protocol

1 Like

To give you guys a status update:
I’m now working on a better implementation of the bulb into python-tuya. This will probably be done within the next two days. After that I’ll get back to tuya-homeassistant. I already was able to switch the bulbs on/off via HA but I had some problems with setting the colour.

I’ll keep you updated!

2 Likes

Working thanks very much for the information.