HOW TO - Setup Local Tuya in Home Assistant

preview_player
Показать описание
In this video we will be running through the setup process for Local Tuya. We will also be having a look at some of the differences between using the Tuya Cloud service and using Local Tuya. This is just a brief comparison with no techy specs.

Local Tuya is away of accessing your Tuya devices locally. There are other options available too.

Did you find the Easter Egg in todays episode?

🙏Support my Channel - Become a PATRON🙏
Consider supporting the channel by becoming a Patron. Any and all funds go into creating new content and bigger projects.

▬ Video Chapters ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
0:00​​ - Intro
0:15​ - Todays Video
0:41​ - About Tuya
2:04​ - About Local Tuya
4:32 - Local Tuya Home Assistant Integration (Via HACS)
5:43​ - Tuya Developer Account Setup
8:57 - Cloud Project Setup
11:56 - API Setup
14:31 - Local Key extraction
15:13 - Setup Local Tuya using obtained local keys
18:59 - Summary and troubleshooting link
19:40 - Outro
––––––––––––––––––––––––––––––

!!! UPDATE !!!
SEE MY PINNED POST ABOUT TUYA DEVELOPER CHANGES

▬ Handy Video Links ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Tuya Developer Signup

Local Tuya GitHub

Fixing Issues setting up Local Tuya

Not sure what values to use for Lights etc? Check out :

There's a section on the different values available.

=========================================
P L E A S E N O T E !
==========================================
The Tuya Dev Website has been a little unstable and had a lot of issues the past few days. I ran into a fair few problems during this process so it's not 100% full proof. If enough people are interested I can show another method for setting up Local Tuya that doesn't need the Tuya Developer account / website.

In this video we will be running through the setup process for Local Tuya. We will also be having a look at some of the differences between using the Tuya Cloud service and using Local Tuya. This is just a brief comparison with no techy specs.

=========================================
I S S U E S W I T H T H I S S E T U P
=========================================
Problems following some steps ?
Because I ran into a few issues I have also put together a quick video separate to this one showing some issues and fixes.

Why is this separate? - Not everyone will have these problems (some are website specific so may be resolved by now or in the future) so I didn't want to fill the video with unnecessary issues and fixes

Local Tuya is not a standard integration. You will need to have HACS installed to access it. Check my links below for info on how to install HACS.

▬ [ M y R e f e r e n c e d V i d e o s ] ▬
- NEW METHOD : NEW Method to get Local KEYS

📣FOLLOW ME ON SOCIAL MEDIA📣
Follow me on all of the places for exclusive insights and updates;

▬ Become a Patreon ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Consider supporting the channel by becoming a Patreon member.

▬ Buy Me a Coffee ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
☕ Found my content helpful?
Any and all funds will go towards helping improve future content.
Plus there are an extra few perks to becoming a member.

☕ If your interested check it out :

––––––––––––––––––––––––––––––
🎵 Track Info:
Title: All That
––––––––––––––––––––––––––––––

#markwatttech​​ #homeassistant​​ #localtuya
Рекомендации по теме
Комментарии
Автор

This Tutorial was created a few months ago now. Since then the Tuya API and menus have updated and changed slightly. The steps still work but the menus are now in different places. I will be creating a NEW Tutorial for this soon.

Cheers.

MarkWattTech
Автор

Watched your video first and then a second time following your lead. Other than a few changes to the Tuya Developer page, everything went well. Had some issues with the settings a for light. Using the yaml on the Github link for reference, I set:
ID: 20, Brightness: 22, Color Temp: 23, Color Mode: 21, Color: 24, Scene: 25. Brightness values: 29/1000; Color Temps: 2700/6500 (though I'm not sure about the value and temp settings).
Next up: setting up VLANs and restricting internet access.

d_sellers
Автор

you helped me a lot thank you.

I was already giving up on local integration, now the spirit is back.

FlavioOliveira
Автор

Wow, did not expect this to be such a process. One would think that simply adding the Tuya API within Home Assistant would automatically store the devices locally. I've done a very simple process to store all my Sonoff devices locally and it works amazing! Hopefully Tuya can simplify this process in the future, for now I think I'll just stick with the cloud service. My Tuya devices are the only devices working via the cloud...

frankthedsigner
Автор

The portal changed a lot from your video, but I managed to stumble through and fetch the local key through trial and error. Thanks for the guide man 👍

bdbgh
Автор

Really thorough explanation unlike another I tried to follow unsuccessfully. I had numerous problems with the registration. Keep them coming.

davidtjac
Автор

Thanks for a great video. I was unable to use Tuya convert on most of my switches, this gives a good alternative. I'll try it soon.

tazeemn
Автор

You asked a few weeks ago if you could improve your videos in any way. This video shows that you’ve learned a lot from the feedback and improved significantly. Congratulations 👏👏👏

Thanks for this, I’ll give it a go and try following your instructions. All failures will probably be due to my inadequacies. 😉

ThisOldManOfTheSea
Автор

watching this a couple of years later, could eventually link devices (once i linked the correct datacenter) and then took a while sifting through options until i found the one that gave a local key - site rearranged a lot sinceyour video, but the principle still worked ! Thanks.

irishpete
Автор

Thanks so much. Great video.
In my case I had to open a ticket to the Tuya guys to switch my newly made account from Chinese Mainland to Greece.
Took 48h but it did the trick and I could eventually follow your guide.
All good and everything worked! 😃

manosioa
Автор

Mark, I am fairly new to Home Assistant and have been using your videos as a reference. This is yet another good video. Thanks for taking the time and effort to educate me on my venture into Home Assistant.

BlakeSpence
Автор

Came back for adding new devices, still an awesome video.

CA-FE-C-FF-EE-
Автор

Awesome, that is a great help. Had real problems trying to find my local key. Had to get around the new menus and such but found it in the end. Thanks.

fredflinstone
Автор

Thanks for helping us take our devices out of the butt.

chesshooligan
Автор

UPDATE - April 20th 2021
It looks like a few days after this post Tuya changed the options again. You should be able to follow this guide okay. But for anyone struggling, I have created another video detailing an alternate method for extracting the keys. Cheers

UPDATE - March 25th 2021
As of today it looks like Tuya have updated the way there Dev accounts work. So it may be harder to link devices via an app. Another reason your devices are at the mercy of the cloud gods!

I WILL BE CREATING A NEW VIDEO : on another method that doesn’t require the dev account. There's a few more steps involved but it wont require the Tuya Developer account and it will give you all your keys at once. Stay tuned 👀





PRIOR TO THE UPDATE - PRE March 25th
(If you already setup a dev account)

If your stuck or having any issues with this setup, I've also created a supporting video which goes over a couple of issues I had and the fixes. It may help you out.

MarkWattTech
Автор

Account on Tuya opened on 09/05/2021. Today is 18/05/2021 and method works!

dmitrykopelev
Автор

excellent video, describing step by step with all the required details! well done! I hope you keep up the great work :)

MegaUndertaker
Автор

Thanks Mark, a clear and understandable video, even with the Tuya developer portal changing quite a lot. Tuya local now doesn’t require you to find the local_id for a device, it automatically pulls it in when you add a new device to the integration in HA.
On balance have decided to not use Tuya local and remain with the core Tuya integration. Whilst I was able to get my Tuya shed alarm system working as a ‘select’ entity (armed, disarmed, sos, etc), the UI of the Tuya core integration is better; and when I try to add my Tuya Temperature and Humidity sensors to Tuya Local, I just get an “unknown error see log” - maybe not supported even though its just numeric output. Hey ho!

geoffreycoan
Автор

Whew. Looks like a lot of work. Great video. Will try the local integration soon.

bill_automated
Автор

Brilliant channel, thanks for helping me setting up local tuya and other stuff on HA

WoutScheper