Thank you for this. After spending all evening trying to get my smart_life socket to work… moving to the tuya app fixed it straight away.
Thank you for marking this. Btw looking forward for the next iOS app update! I see you have a lot of awesome features in this next version.
Any plan to support also cameras? It would be great
And any plans to support window/door contacts?
I would like to request support for tuya cameras ans motion detectors
I have the Tuya/Smart Life door sensors and I have come up with a reasonably easy workaround to get them to communicate with HA. It does require having an Amazon Echo together with the Emulated Hue HA component.
The basic workflow is this:
- When Alexa senses that the door is open , turn an emulated hue bulb off, which actually runs an HA script turning off an input boolean.
- When Alexa senses that the door is closed , turn an emulated hue bulb off, which actually runs an HA script turning on an input boolean.
- Once you have the input boolean sorted, you can trigger automations and other scripts based on its state.
In my case, I just wanted to know whether the door was open or closed in my UI. I created a template sensor which is fed by the input boolean and then used the custom button card in Lovelace and mapped it’s ‘on’ and ‘off’ states to ‘closed’ and ‘open’ with a label template.
I’m sure this workflow would also work with motion sensors, albeit with a little less control than you’d perhaps want, but it might be useful to someone!
FYI for others that come looking: The Tuya component does currently directly support Tuya Smart app, Smart Life app, and Jinvoo Smart app, so you don’t even have to switch to the Tuya Smart app if you don’t want to.
It was dead simple to connect it to my Smart Life account and get my LED strip light working in Home Assistant.
How did you do this? I have a LED strip added through the Smart Life app and it does not show up at all for me in Home Assistant. I tried calling the Tuya Home Assistant API, and it doesn’t show up there either.
In the Tuya Home Assistant component you need to configure your account for Smart Life. My entry in configuration.yaml looks like this:
tuya:
username: [email protected] (but this could be your phone number if that's what you used in Smart Life app)
password: mypasswordfromtheSmartLifeApp
country_code: 1 (because I'm in the US)
platform: smart_life
Also note that the Tuya component has a recent bug that makes switches not show the correct state, should be fixed in Home Assistant 0.98 https://github.com/home-assistant/home-assistant/issues/25992
I’ve just used a Kali Linux virtualbox image with https://github.com/ct-Open-Source/tuya-convert to put custom firmware on my Tuya/Smart Life devices instead, now using ESPHome https://esphome.io
Yes did this too. All other lights show, but not the LED strip. Seems they are not part of the platform.
Adding platform: smart_life for me I get the following error after restarting.
The following components and platforms could not be set up:
tuya
Please check your config.
Hello, I’m considering buying a couple Alfawise PME1606 plugs that are on sale right now on Gearbest.
From what I understand, power consumption reporting is still not working, correct?
Closing this thread as its been implemented for a while. Please open a new thread if you want to discuss Smart Life/Tuya more.