HOW TO - Get All Local Tuya Keys (ALL KEYS, SIMPLE, NO SOLDERING)

preview_player
Показать описание
In this video we will be looking at a way to extract all of your Local Keys for all of your Tuya Devices. This will allow you to control your devices locally (NO TUYA CLOUD). This method uses Blue Stacks to emulate the Smart Life app (You can use your rooted android device instead). The Smart Life app generates a preference file that holds all the keys. We then get this file and take the keys from it!

No flashing! No soldering required.

Bit of a long winded intro sorry! The intro was more to address people that have had issues with the Tuya Developers tool method.

PLEASE NOTE - You must use the older version of Smart Life as the preference file is no longer generated in the new App.

I created this video as a follow up to my previous Local Tuya video. Since creating that video Tuya have changed there API stopping a method I showed for getting your keys.

If your interested in that video you can find it

This method will work until Tuya decide to block logins from older Smart Life Apps.

LINKS YOU WILL NEED

Smart Life APK

MY TUYA KEY EXTRACTION TOOL

▬ 🎥 VIDEO CHAPTERS: ▬▬▬▬▬▬▬▬▬▬▬▬▬▬
0:00​​ - Intro
0:19​ - Todays Video
0:41​ - Tuya Developer Tool Changes Warning! (Skip ahead if not interested)
0:58 - Tuya Developer Tool Changes
3:34- What's todays method (Android app config extraction)
4:00 - What do we need?
5:38 - Emulator Setup
6:46 - Smartlife APK install
7:35 - Getting the Preference File with BSTweaker
9:39 - Android Info
11:38 - My Key Extraction Tool (Available on GitHub)
12:25 - Demo of My Extraction Tool
14:05 - Brief look at setting up Local Tuya with these keys
15:27 - Summary of this video
16:02 - Questions
16:38 - Outro

––––––––––––––––––––––––––––––

=================================================================
CONSOLE APP WONT OPEN? - Make sure you have .netCore runtime installed

You can get it here :

==================================================================

Local Tuya GitHub

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

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 ] ▬

▬ Follow Me on Social Media ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

▬ 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 :
► Buy Me a Coffee:
––––––––––––––––––––––––––––––
🎵 Track Info:
Title: All That
––––––––––––––––––––––––––––––

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

Woohoo just got my local keys with this method.Very clear & easy to follow instructions, thanks Mark! After the Tuya outage issue recently, I had to physically switch off my lights, which simply won’t do! Also used your C# Tuya key extractor app and it worked a treat! Terrific content!

otoolepw
Автор

You sir, are a champion. After setting up home assistant about 12 months ago and not adding anything to it, and getting a few new items recently and not being able to use the tuya developer site, this saved lots of frustration. Cheers!

neuro-A-typical
Автор

One of the best home assistant channel on Youtube. Thank you!

viciovb
Автор

Hi Mark, I just wanted to say thank you for this totorial. I had all but given up on LocalTuya; after following your instructions I now have a working light fixture. Only 27 more to add.. cheers!

bobdurk
Автор

After two days of working on it and repeatedly watching your video/s, I finally managed to integrate my i was already so much annoyed that I was almost ready to return them. Thanks a lot for this video, and the previous one.
I've shared this video on my post on Tuya integration on Home Assistant FB group.
100 likes to you Mark.!

TheNikesh
Автор

Spot on - I instantly refer back to this video as like any good old skool techie - I never write things down so always forget the path where the prefs file is located.

steverae
Автор

For anyone interested like my when my tuya iot sub ended and can not get local key from website it still works! (make sure you have compatible version of bluestack and bstweaker)
Nice guide and good work. You helped me a lot! Thank you

AReKeev
Автор

This is a game changer for me, finally I'm taking out of the cloud my smartlife dehumidifier, and dropping inconsistencies in the method I've been using. Thank you.

darksiderall
Автор

Thank you! Perfect explanation and the key extractor is awesome!

GianlucaRomito
Автор

Congratulations! Great work! Everything worked as it should... Thank you very much!

mwramos
Автор

I've been meaning to add a comment to this but haven't had the time so here it. I want to thank you for this tutorial because it managed to help me get my devices into my installation of home assistant but to start I have to admit that I wasn't going to use it because I didn't want to use the Smart Life app and basically delete all my hard work under the tuya app. I managed to find a version 3.6 of the tuya app that allowed for the same method to be used to get the keys and all the devices are working great now except for cameras, haven't figured that one out yet. I do have to say there was some finagling I had to do because sometimes the keys didn't work and had to re-add the device multiple times until I got a key that worked properly but I managed to get everything into my home assistant setup and for that I have to thank you. Keep up the good work

kickjc
Автор

Thankyou very much. This all worked well. My tuya oit account does not work so this was the answer. Your program key extractor worked well on my Alienware computer. Good Teacher.

powermate
Автор

The Extractor works for me, thanks for a great video.

josephzajdler
Автор

I liked it 78 times because I have a lot of devices. Congratulations!

rogeriocamargo
Автор

Thanks for a clear and concise video. I had previous;y spent days trying via the Tuya IOT method but failed because of the frequent changes Tuya make to their web pages. This method worked 100% first time, outstanding !
I only have one question, the most important requirements for monitoring devices is power consumption and energy used. The local Tuya provides power (W) but not energy (Wh). It is available on the Smart Life app on my phone, how do I access energy used within HA?

glendower
Автор

Love this method, way better than the previous dev website method

LevyHappyClapper
Автор

Question: I need absolutly a Tuya Zigbee HUB to intregreate the devices in the Cloud to create the data, right!? I User a Sonoff Dongle and have no HUB from tuya, thats my Problem...

OtakuTv
Автор

I know this is a somewhat older video. However, after downloading the smart life app (3.6.1) on my rooted tablet, the application wasn't under (root)/data/data. Only in (Internal storage)/Android/data/. However this doesn't have any preferences_global_key file. Not even an xml file. Then I looked a bit further, I found that I have an com.tuya.smartlife folder under (root)/data/app/. Unfortunately, this only has lib files.
Is there something I'm doing wrong here?

Thanks in advance!

adoolaard
Автор

Thanks for the great video! Can I ask if the local tuya integration supports other entity types like RF blinds via the tuya universal remote?

bookofjames
Автор

Awesome, thank you very much. All worked perfectly!

PaPaTheGMan