In today’s video I will show you how to control Tuya devices from Home Assistant. I’ll use this 4 inch WiFi RGBW Led Downlight from Zemismart, but you can use the same approach for any Tuya compatible device out there.
Let’s start with some basic questions like:
What is Tuya?
This is an IoT platform that enables brands and manufacturers to provide one common solution for their clients to control their products remotely.
In other words if you see on a product that is Tuya compatible, that means you can control that product with your phone via TuyaSmart application. This application can be found for free in your smart phone store.
Why to integrate Tuya devices with Home Assistant?
You may ask yourself why should I care to integrate a Tuya device with Home Assistant when I can use the TuyaSmart app? And this is pretty reasonable question. But at the end of the day you may want (at least I do) to have all of your smart devices in one place, so you can make better scenes and automations.
For example: If you have smart devices from different brands like Philips, Samsung, Ikea, Sonoff, Shelly and so on and so on it is a lot better to control them all from one hub like Home Assistant.
So, I will demonstrate you step by step how to Integrate this Zemismart Downlight which is Tuya compatible with Home Assistant.
And if you watch the video till the end you will learn how to use the same method for any Tuya compatible: Fan, Light, Cover, Switch, Air Conditioner or Heater.
So without further ado lets go to the Requirements:
To complete this tutorial you will need:
- Smashed Like button for the YouTube algorithm, but really it takes only 2 seconds.
- Any Tuya compatible device like this nice Zemismart Downlight – https://amzn.to/2SpJE4P
- Working Home Assistant – but if you still don’t have it check this video article
- TuyaSmart app installed (from your mobile phone sore) with added some Tuya devices inside.
In Configuration file:
You will need your Tuya account information (username, password and account country code) to discover and control your devices.
Your account country code, e.g., 1 for USA or 86 for China, again enquoted. https://www.countrycode.org/
Add your Tuya devices into your Home Assistant installation, add the following to your configuration.yaml file:
tuya: username: YOUR_TUYA_USERNAME password: YOUR_TUYA_PASSWORD country_code: YOUR_ACCOUNT_COUNTRYCODE
Then restart your Home Assistant
In Home Assistant Interface:
To add the device on your Home Assistant Dashboard – create a card by clicking on “Configure UI” in the upper right corner.
After that choose your Tuya device in the “Entity” dropdown menu and click “Save”.
You can also go to Developer tools > Services and add the following to make the lamp glow red with very high brightness.
The Home Assistant integration with the Tuya compatible Zemismart Downlight is completed and it is working very well.
This is my first Tuya compatible device in my house and I wonder do you have any Tuya devices in your home already? If yes, are you happy with them? Or maybe you are planning to buy something?
Let me know your thoughts in the comments below and I will promise to respond you back.
I will show you very quickly how this downlight is working with the TuyaSmart app
Support my work:
Also feel free to add me on Twitter by searching for @KPeyanski.
I really hope that you find this information useful and you now can control Tuya compatible devices like this Zemismart Downlight from Home Assistant.
Thank you for watching/reading, stay safe and see you next time.