I bought it thinking it was the same as the Truya “Smart Life” devices, but apparently it’s not. After trying to use the Truya configuration, Home Assistant would not start – it complained something about a “secret” not defined.
Can someone point me in the right direction, or tell me this is a lost cause?
With all Tuya compatible devices, you have to add the device to Tuya first, so you would have to use the app to associate with your account. Adding the “Tuya” integration doesn’t really do anything without having devices tied to it.
Hello Jack, So how do I read that you have the “Smart Life” app in use? If so, you have to replace “tuya” with “smart_life” in the configuration.yaml. Look here:
The correct formatting in the configuration is also very important !!! After saving the configuration.yaml go to “Configuration” -> “Server Control” click here on “Check Config”, if everything is ok restart HA with “Restart” …
I see the problem. I found the documentation on “secrets”. I was using the “!secret tuya_user” to mean that I should replace “tuya user” (and “tuya password”) with my own. Instead, the “!secret” tells HA to look in the “secrets.yaml” file, which I had not created. Thus, the error about not having configured secrets. I’ll follow the instructions for Storing Secrets, and will change “tuya” to “home_life” and report results here…
Correction. I removed “!secret” (for testing). I no longer get the error about missing secrets.
Here’s the actual code used in configuration.yaml (with credentials removed):
# For the Smart Life AW39
home_life:
username: [my username]
password: [my password]
country_code: 1
platform: smart_life
But my home-assistant.log file has the following error now: 2019-11-28 11:08:27 ERROR (MainThread) [homeassistant.components.homeassistant] Component error: home_life - Integration 'home_life' not found.
I suspect there may be an API required.
You need tuya: at the root of that config, and you add an option to state it’s a smart_life account. Follow the directions.
Under tuya: you add platform: smart_life
I cleared the home-assistant.log file and restarted HA. This time, it had no errors related to tuya or for this device. But I still don’t see anything new in “Integrations” or “Devices”. What should I be looking for?
I found it. Now it’s on the main panel, or whatever that’s called. Once again, we have progress!
Next step is to figure out how to firewall it from the internet. I used Comcast’s Xfinity tools to “pause” the device, but it became unreachable even from inside the LAN. Before pausing it, it returned pings. After pausing it, it did not. Not happy with Comcast for dumbing-down their modem/router. Long term, the plan is to replace it with something more customizable (probably a Ubiquiti product).