DON'T use the Tuya Integration - get your devices off the cloud with Local Tuya

Looking at integrating tuya devices into Home Assistant. Using both the standard tuya integration, and the local tuya integration.
Local Tuya integration removes the need for internet access and cloud polling to control your devices, making it more secure, reliable, and fast.
Local Tuya Github: github.com/rospogrigio/localtuya
Tuya Developer: auth.tuya.com/?from=https%3A%...
Intro: 0:00
Tuya Convert: 1:29
Tuya Cloud: 2:46
Local Tuya: 4:18
Teckin Plugs: amzn.to/3kiadXe
All opinions in this video are my own, and completely unbiased - they do not represent any entity with which I have, am, or will be associated.
As an Amazon Associate I earn from qualifying purchases. By buying through any of the links in the description I will earn commission at no extra cost to you.
The smart home tech I have is here: kit.co/WillSurridgeTech/smart...
▼ My HA setup
Raspberry Pi 3B+: amzn.to/3gF588j
64GB San-Disk: amzn.to/3iDUErN
▼ Amazon Products
Amazon Music Unlimited: www.amazon.co.uk/music/unlimi...
Amazon Prime - 30 day free trial: www.amazon.co.uk/tryprimefree?...
Audible Free trial: www.amazon.co.uk/Audible-Memb...
Kindle Unlimited free trial: www.amazon.co.uk/kindle-dbs/h...
Amazon Business: www.amazon.co.uk/tryab?tag=ws...
▼ Camera Gear
Canon M50: amzn.to/3iGsGeU
Manfrotto Element Tripod: amzn.to/3e7FYxF
Boya Mic: amzn.to/3fez8Ic
64GB San-Disk: amzn.to/2Z78vPC
▼ DJI Products
Buy a Mavic Air: click.dji.com/AO_0cxV8Qmj5tig...
Buy a Mavic Mini: click.dji.com/AMWoUtCGIPFYetJ...
Buy an Osmo Mobile: click.dji.com/AM9khwrxMoEKDKV...
▼ Social Media
Remember to subscribe: / @willsurridgetech
Instagram: / willsurridgetech
Facebook: www. WillSurridgeTech

Пікірлер: 307

  • @StopTh3Idiots
    @StopTh3Idiots2 жыл бұрын

    tuya changed their interface, nothing in this video works any more

  • @j.ballsdeep420

    @j.ballsdeep420

    2 жыл бұрын

    😅

  • @davidyoung623
    @davidyoung6233 жыл бұрын

    Is anyone using this integration with bulbs that are also controlled by the Adaptive Lighting integration? I tried this some months back, but the bulbs seemed to never report their state back correctly, so adapting was inconsistent.

  • @jjanovec
    @jjanovec3 жыл бұрын

    Hi, I am having troubles to get JSON response similar to yours. It only returns mac, uuid and id, plus some more, but definitely not the keys, etc. Any hint where did I go wrong?

  • @4sayken
    @4sayken3 жыл бұрын

    Using the dev portal is much easier than the way I was getting the keys before. Thanks Will

  • @WillSurridgeTech

    @WillSurridgeTech

    3 жыл бұрын

    No worries :)

  • @MichaelSimmonds
    @MichaelSimmonds3 жыл бұрын

    For anyone trying to figure out which IDs to use in the final setup steps, I found for my cheap Tuya Round white plugs the Power Monitoring IDs to use are Current = 18 Current Consumption = 19 Voltage = 20

  • @sethkazzim731

    @sethkazzim731

    3 жыл бұрын

    Do you get energy usage?

  • @MichaelSimmonds

    @MichaelSimmonds

    3 жыл бұрын

    @@sethkazzim731 no just those two outputs, you would need to log the overall usage somewhere. I know the app keeps track but the plug does not keep a record itself

  • @analogdistortion

    @analogdistortion

    8 ай бұрын

    What's this HACS store? Is it depreciated? I don't see TuyaLocal on the addon store.

  • @jproveta
    @jproveta3 жыл бұрын

    Hi, thank you for your video. What do I get with Lucal Tuya? because I can't remove it from the SmartLife app, if do, it's turned off in HA, and if I don't have Internet access I can operate directly, this is, I can turn the lights on and off by pressing the switch directly.

  • @bobdurk5180
    @bobdurk5180 Жыл бұрын

    Hi Will, Can you update on the current status of your Local Tuya installation? Have you tried updating to v5.0 in Home Assistant?

  • @JeffNaranjo
    @JeffNaranjo2 жыл бұрын

    hey Will, looks like the process for this has now changed quite a bit. Maybe time for an updated video? Thank you!

  • @detriez2528

    @detriez2528

    2 жыл бұрын

    +1 please

  • @timzlow

    @timzlow

    2 жыл бұрын

    Hi.. if we block the Internet option, does it means we will not be able to control the devices remotely?

  • @richardrrong

    @richardrrong

    2 жыл бұрын

    This process worked for me: Click 'API explorer' in your project, a new window opens. Open 'Smart Home Management System' > 'Device Management' > 'Get Device Details', fill in the device ID and press 'Submit Request'. You will find your local key in the response window.

  • @darienturcaz7721

    @darienturcaz7721

    2 жыл бұрын

    @@richardrrong my problem is when I do submit to get the info of the device them it said … invalid key…

  • @paras_pc
    @paras_pc3 жыл бұрын

    Hey could you please help me I wanted to download the homebridge magic home plugin but I don't know where to enter the commands

  • @Jcarlier50
    @Jcarlier503 жыл бұрын

    After integration , you have only one entity (On/Off)... how to get the other entities for the device (brightness,color etc...) ????????????? (thanks for your answer)

  • @enriquewood6783
    @enriquewood6783 Жыл бұрын

    Is there a difference in terms of speed in using LocalTuya vs flashing Tasmota into the device?

  • @sarasagar76
    @sarasagar763 жыл бұрын

    By adding this local tuya integration,. If I physically push button and turn on/off device then can it shows on/off state perfectly in home assistance?

  • @JeffNazriHussein
    @JeffNazriHussein2 жыл бұрын

    Sorry I am new on this. What is the url for the website shown in 3:33? I have a Smart Life account and app but dont know how and where those data are stored in the Tuya cloud.

  • @huguitosilva1
    @huguitosilva13 жыл бұрын

    Can you explain how to setup a switch in local tuya with Voltage, Amperage and Watts. And how to define 2 plugs in one switch?

  • @pratahsinnetamby
    @pratahsinnetamby3 жыл бұрын

    Brilliant video - wanting to do this but never knew how. Flashing a hundred devices was never going to happen. Looks like a job for the week-end and it is likely to need heaps of work on the scripts/automations. Many thanks.

  • @WillSurridgeTech

    @WillSurridgeTech

    3 жыл бұрын

    You're welcome!

  • @Matrix21rms
    @Matrix21rms2 жыл бұрын

    how can I find IP addresses for some devices that are not showing into the local tuya menu? everything else except IP. and I can control them from tuya app, from home assistant but I can't add one device locally.

  • @louienoble4179
    @louienoble41792 ай бұрын

    I have a led strip with 18w power bank but only getting red led strip..how to get colours please?

  • @HardstyleGamerz
    @HardstyleGamerz Жыл бұрын

    Do you remove the products from the app after connection or does a connection still exists?

  • @PVflying
    @PVflying2 жыл бұрын

    Hi, is there any way to integrate tuya devices so they can be controlled via a xiaomi hub? I have my xiaomi system with light level sensor and want to trigger my tuya smart wifi breaker which sits on my LAN, but I can’t find a way to set up conditional logic to switch the tuya based on the lux level measured by the xiaomi sensor. The xiaomi hub integrates with Apple HomeKit, but the tuya doesn’t. Both can be added to Google home, but it lacks the ability to set a rule to trigger one from the other. I have no home assistant, so just need an app which will work. I looked at Yeti app but it seems to be withdrawn.

  • @wirtestenallesde2524
    @wirtestenallesde25243 жыл бұрын

    My HA is ready, I only have one problem. I have several WiFi window contacts in use in my smart home, which are integrated via the Smart Life app. So they all work very well via the app and with Alexa etc. only in the HA I don't get them integrated. I read all sorts of things, but unfortunately couldn't find a solution for it. Do you have any idea how to do that? MfG Alex

  • @KBalu-zn6bk
    @KBalu-zn6bk2 жыл бұрын

    In current version of HA local tuya is no longer listed in HA integration. There is a Tuya integration. Has this be renamed?

  • @refaelganesh3277
    @refaelganesh3277 Жыл бұрын

    Hey, Thanks a lot for the video, I have a question about the API, In local Tuya' can I make REST API calls? (to local machine)

  • @johnwalker3180
    @johnwalker31803 жыл бұрын

    I didn't even know this (local tuya control) was possible. Great video!

  • @WillSurridgeTech

    @WillSurridgeTech

    3 жыл бұрын

    Glad I could help!

  • @analogdistortion

    @analogdistortion

    8 ай бұрын

    @@WillSurridgeTech Could you help me out a little please? What's this HACS store? Is it depreciated? I don't see TuyaLocal on the addon store.

  • @rkbest9783
    @rkbest97832 жыл бұрын

    is this still working. Could not find tuya local on HACS. Installed HACS today

  • @mamlukavlogs6353
    @mamlukavlogs63532 ай бұрын

    do you have videos how to install home assistant software in the laptop or desktop

  • @Ramon314
    @Ramon314 Жыл бұрын

    Does this also work for the tuya security cameras?

  • @johnbrumfield6212
    @johnbrumfield62123 жыл бұрын

    Thanks!!! Will this work with Tuya cameras?

  • @whiteravenagain
    @whiteravenagain3 жыл бұрын

    Super clear explanation, keep going with this style 👍

  • @WillSurridgeTech

    @WillSurridgeTech

    3 жыл бұрын

    Thank you 🙌

  • @eclecticlight.design
    @eclecticlight.design3 жыл бұрын

    Wow I was just searching for something like this last night, thanks!

  • @WillSurridgeTech

    @WillSurridgeTech

    3 жыл бұрын

    Glad I could help!

  • @nehajain2974
    @nehajain2974 Жыл бұрын

    I have a tuya based contact sensor. I have the local key, id and the ip address for it, I am not able to add it to local tuya in homeassistant. Please guide how can I add it via .yaml configuration to local tuya. Kindly guide.

  • @ElGoogKO
    @ElGoogKOАй бұрын

    hello from the future..is there a local tuya for android? Or any non cloud app, that works locally?

  • @respireparlenez
    @respireparlenez3 жыл бұрын

    Opened a developer account but then they ask to verify my identity and open a ticket when I start a project from the cloud icon... looks as if GOC has introduced controls...

  • @tomaszbe1386
    @tomaszbe1386 Жыл бұрын

    I am doing the mentioned steps for 3 energy meter switches (SP111 and DDS238-2 WIFI) and in results for each only 1 switch and entity are added so I have only the ability to turn on/off the device but no energy consumption information. Something is wrong here... I've repeated all of the steps a couple times with same result also after removing integration.... :( Any tips ?

  • @RoterFruchtZwerg
    @RoterFruchtZwerg Жыл бұрын

    Thx for the great instructions video! However, I noticed my Gosund EP2 (V1.0.4) Smart-Plugs won't update their power/current/voltage values when I prevent them from connecting to the cloud. I can still connect to them with local tuya and switch them on/off, but the power/current/voltage values they report get static as soon as I disable the cloud (block internet access via my router) and stay zero when I power-cycle the plug. As soon as I let them connect to the cloud again, the power/current/voltage values are available again. Anyone else noticed this? That's really a bummer :/

  • @infotechcsvn
    @infotechcsvn2 жыл бұрын

    I have problem in step : Add Tuya device. when i press submit, there is the following message : "Connection to device succeeded but no datapoints found, please try again. Create a new issue and include debug logs if problem persists." Please help me, i'm using IR and RF - Infrared Device Control Center, I have set up to control the device successfully but don't add to HASS.

  • @willdwyer6782
    @willdwyer67822 жыл бұрын

    That's nice but will it work on video doorbells and security cameras?

  • @SeanRynearson
    @SeanRynearson3 жыл бұрын

    And idea how often you have to refresh the device key?

  • @jonasdromberg4365
    @jonasdromberg4365 Жыл бұрын

    and how do i get that key to local tuya when my 1 month has expired

  • @garethkendall1985
    @garethkendall19853 жыл бұрын

    Great video, just moved all my devices to local thanks to you dude :)

  • @WillSurridgeTech

    @WillSurridgeTech

    3 жыл бұрын

    Great to hear!

  • @oldcrazyeye6482
    @oldcrazyeye64823 жыл бұрын

    Just set up Local Tuya yesterday. It works so much better than the Tuya integration. Couldn't control my rgb bulbs or my fan controls from the tuya integration. With local tuya I can control the rgb bulbs with effects that weren't normally there and all my fans work with the exception when I switch to high my fan turns off. Gotta dig back through the options and figure that out. In my opinion, if you're scared to flash a device then Local Tuya is where it's at. I will be attempting my first wired firmware flash with tasmota this weekend on some treatlife single pull switches. I also have two of them running with Local Tuya so I'll be able to compare.

  • @WillSurridgeTech

    @WillSurridgeTech

    3 жыл бұрын

    Fab!

  • @crissto8591
    @crissto85912 жыл бұрын

    would this work with cameras too?

  • @littlepetebexley
    @littlepetebexley2 жыл бұрын

    My zigbee devices are not showing up. The tuya zigbee hub has problem being added

  • @jnlltd
    @jnlltd2 жыл бұрын

    Do all tuya produce intigrate or compatible with tuya local.?

  • @cubebox391
    @cubebox3912 жыл бұрын

    How will you do it for OPENHAB?

  • @Mr_Gadge
    @Mr_Gadge Жыл бұрын

    Things must have changed, I have a Tuya IoT access and secret asked for as well as account and password in HA?

  • @fatimajuma1398
    @fatimajuma13982 жыл бұрын

    Hi, would you be able to tell me can your devices work interchangebly on the tuya or smart life app ( since they are the same program? I read that Smart Life has IFTTT, but the stores state you have to use the app it states. But I just used smart life lights on the tuya app and worked. So im presuming the reverse should work too? any insight?

  • @fatimajuma1398

    @fatimajuma1398

    2 жыл бұрын

    I just got a reply from Tuya stating they are not the same app.. lol .

  • @j.ballsdeep420

    @j.ballsdeep420

    2 жыл бұрын

    They are not the same app but all devices should recognize on both (I personally have "Tuya" devices that that don't mention of SmartLife and fully functional). Smart Life has API tie with IFTTT, yes, but you would want to make a worlflow on their site to see what it can/can't do

  • @brunonovais8801
    @brunonovais88016 ай бұрын

    it not work very well. alot of devices will not respond to it. like you need a hub. but i cant find a compatible hub.

  • @the-bu3lb
    @the-bu3lb2 жыл бұрын

    I purchased recessed lighting rgbw that work on the Tuya app and the smart life app. But they won’t work on HomeKit. Setting the up with shortcuts for Siri is a waste can’t say change color red ect or turn down 50% ect. If I use what your speaking of will it work with apple or do I need to just use homebridge and install a plug-in ? Thanks

  • @andrewbeary

    @andrewbeary

    Жыл бұрын

    Using home assistant, I added the integration for home kit which exposes all of my lights, cameras, ect with apple home kit and I am now able to use homekit (and siri) to control all my smart home devices regardless of their original platform. I have a simplisafe security system and all my tuya lights/cameras now in the homekit app! Hope that answers your question

  • @BBalasa
    @BBalasa2 жыл бұрын

    Super and great tutorial , I am glad I found this

  • @MuhammadUmarMeo
    @MuhammadUmarMeo3 жыл бұрын

    Hello, Please make a video for adding 4 Gang switch with fan as its very confusing that how to get IDs of 4 buttons for ON/OFF and ID for the FAN button and IDs for speed control. I am stuck here. I have added smart socket successfully because it's simply ON/OFF. But for my switches I am not able to do anything. :(

  • @charles9860
    @charles98602 жыл бұрын

    Does it work on hoobs?

  • @user-mb2hv7sc1i
    @user-mb2hv7sc1i Жыл бұрын

    What about this massage : Connection to device succeeded but no datapoints found, please try again. Create a new issue and include debug logs if problem persists.

  • @rolandoa.valenzuela2756
    @rolandoa.valenzuela27562 жыл бұрын

    The "try for free" only last 12 months, does that means that after a year I need to either pay or create another dev account?

  • @RJ-gu3wp

    @RJ-gu3wp

    2 жыл бұрын

    No. From the way it was explained it will just renew for another year. This is because the new Tuya integration needs the user to have access. It is explained here... - > kzread.info/dash/bejne/mGxhmaqvotDOY7w.html

  • @violettray2679
    @violettray26793 жыл бұрын

    7:49 how do you block the device from communicating with the cloud server? In the router?

  • @WillSurridgeTech

    @WillSurridgeTech

    3 жыл бұрын

    Yes that is something you can look to do with your router

  • @Electronieks

    @Electronieks

    2 жыл бұрын

    Firewall or pihole

  • @TwanJaarsveld1
    @TwanJaarsveld13 жыл бұрын

    Can someone show me how to get RGB working ?

  • @PM13501
    @PM135013 жыл бұрын

    What happens when you buy a new Tuya device after moving to Tuya Local? How would pairing setup work for the new Tuya device?

  • @WillSurridgeTech

    @WillSurridgeTech

    3 жыл бұрын

    I believe you add it to tuya as normal, then add it to HA using local tuya

  • @Yashuu96
    @Yashuu962 жыл бұрын

    Why are you so awesome man? Thanks a ton for this.

  • @WillSurridgeTech

    @WillSurridgeTech

    2 жыл бұрын

    Happy to help!

  • @GarySchiltz
    @GarySchiltz3 жыл бұрын

    He mentions being able to use either the Tuya Smart Life app or something else - it sounded like "gin view", but I couldn't understand for sure. Anyone know?

  • @WillSurridgeTech

    @WillSurridgeTech

    3 жыл бұрын

    It's called jinvoo

  • @nickelbers
    @nickelbers3 жыл бұрын

    Did they change their website? I do not see the API groups section but I see a API products where I can subscribe to an api. However when I try that I get an error "product has been removed"

  • @MichaelTrites

    @MichaelTrites

    3 жыл бұрын

    I'm stuck at the same spot.

  • @steveroberts5272

    @steveroberts5272

    3 жыл бұрын

    I'm stuck here too.

  • @nickelbers

    @nickelbers

    3 жыл бұрын

    I finally got it working. It looks like the tuya website changed a little bit: - go to api products (instead of api group) and subscribe to Smart Home Devices Management - go again to api products > Smart Home Devices Management and select the tap "project" - click on "new authorization" to connect your project to the api - install the chrome extension and turn it on

  • @MichaelTrites

    @MichaelTrites

    3 жыл бұрын

    @@nickelbers THANK YOU! I think the site wasn't working right when I tried these steps yesterday, but I tried again after seeing your message and got it to work.

  • @Dennis-qm4rd

    @Dennis-qm4rd

    3 жыл бұрын

    @@nickelbers Many thanks, I should have read all comments, instead of after one hour and throwing my keyboard away 😂

  • @oldcrazyeye6482
    @oldcrazyeye64823 жыл бұрын

    Also as far as the options to choose from when configuring the device, I just used the yaml config example to get the number values. It seemed to work well for lights and switches but for the fans I had to play around a bit

  • @WillSurridgeTech

    @WillSurridgeTech

    3 жыл бұрын

    Fair enough!

  • @Tarikmoe

    @Tarikmoe

    2 жыл бұрын

    Can you please tell me what you did for the fans?

  • @71ruca
    @71ruca Жыл бұрын

    Hello! I really liked this video very useful thank you!!!

  • @baldymarius
    @baldymarius2 жыл бұрын

    Can you intergrate locally onto Alexa ?

  • @michaellavelle7354
    @michaellavelle73543 жыл бұрын

    Following this video, just 3 weeks after it was posted, I make it to the point where the return result from requesting Device Details says "You don't have access to this API". Any suggestions?

  • @ianmcneilly2906

    @ianmcneilly2906

    3 жыл бұрын

    Check Mark Watts video and his following fault finding video.

  • @davidpoh83

    @davidpoh83

    3 жыл бұрын

    Yes, the interface changes and you have to "Buy" the API for free. For your issue is simple, just need to provide your project the authorization. 1. Go to Cloud (icon) -> API Products -> Subscribed Products 2. Click Smart Home Devices Management api 3. Click the Project tab 4. Click add new authorization and then select your project name

  • @Saw-IT

    @Saw-IT

    3 жыл бұрын

    still works, perhaps you need to select US region when you sign up.

  • @garysteo3398
    @garysteo33983 жыл бұрын

    Hi Will thanks for the video, but for me I only got as far as trying to get the local key, I do not get the response back, any clue what to try

  • @bertmonkey8457

    @bertmonkey8457

    3 жыл бұрын

    Hi Gary, I am the same. I get the top section of URL info but no "Response" info which is where Will was showing the info including "Local Key". Gary, did you have any luck getting the local key?

  • @FlyersPh9

    @FlyersPh9

    3 жыл бұрын

    @@bertmonkey8457 Same here. Has anyone found a solution?

  • @Saw-IT

    @Saw-IT

    3 жыл бұрын

    @@FlyersPh9 I got that initially and found that windows capitalised the first letter of the id

  • @vaughanza
    @vaughanza3 жыл бұрын

    Thanks for awesome video, helps a ton

  • @WillSurridgeTech

    @WillSurridgeTech

    3 жыл бұрын

    No problem!

  • @mcasper73
    @mcasper733 жыл бұрын

    Very useful. Thank you very much. I try asap.

  • @WillSurridgeTech

    @WillSurridgeTech

    3 жыл бұрын

    You are most welcome

  • @zam_ii
    @zam_ii2 жыл бұрын

    Anyone know if can use this method for homebrige plugin tuya lan?

  • @DeepakCG

    @DeepakCG

    2 жыл бұрын

    Yes, works for Homebridge or Hoobs

  • @foreverinPanama
    @foreverinPanama3 жыл бұрын

    Has anyone used local tuya to integrate wall dimmer switches? This video adds a basic binary sensor for smart switches which works well enough. I just have a bigger need for wall switches with dimming enabled.

  • @pratahsinnetamby
    @pratahsinnetamby3 жыл бұрын

    Thanks for the video again! I've managed to get all the way until I'm installing Tuyalocal HACS integration. When I put in the details it fails to install. I used to have the HA - Tuya cloud integration. Do I need to disable that first or is it possible to have both running at the same time for the same device? Any thoughts anyone?

  • @TexSweden

    @TexSweden

    3 жыл бұрын

    I had the same, rebooted the HA, tried again and it worked...

  • @pratahsinnetamby

    @pratahsinnetamby

    3 жыл бұрын

    @@TexSweden many thanks. I got it working and don't recall how anymore! I suspect I may have rebooted HA.

  • @j.ballsdeep420

    @j.ballsdeep420

    2 жыл бұрын

    Reboot FTW

  • @zdenekchmelar3287
    @zdenekchmelar32872 жыл бұрын

    Unfortunately, this solution does not remove the cloud dependency. After registering the device via Local Tuya in HA, I tried to remove it from Smart Life app which also deactivated device in HA. When I did the device registration again (via Smart Life), device received new Device ID as well as new Local Key which were different from the old ones. New registration in HA was needed after that. Means, the device is cloud dependend and can't be isolated to local HA only (or at least I didn't find a way how to make it really just and only local device)

  • @tp-project

    @tp-project

    Жыл бұрын

    This is correct, however it does continue to work if you pull the internet and it does work a bit faster. I took all my Tuya lights back to the store though and replaced them with Zigbee. I was tired of certain devices losing connectivity with localtuya (despite still working with normal Tuya integration) and it's a pain in the ass to reconfigure them all the time.

  • @darienturcaz7721
    @darienturcaz77212 жыл бұрын

    Could you do the same video with the new version of TUYA cloud?! it have been changed a lot

  • @Jcarlier50
    @Jcarlier503 жыл бұрын

    After integration, i get only one entity (ON/OFF)... Where are the other entities (brightness , color, ..)) ?? thanks

  • @HeLiaCa

    @HeLiaCa

    3 жыл бұрын

    any solution ? and with switch i get on/off i cant take current consumption - Voltage

  • @bernisworlds
    @bernisworlds3 жыл бұрын

    does this works also with thermostate? like HY312

  • @lukejay

    @lukejay

    3 жыл бұрын

    I also want to know this

  • @HoldMySoda
    @HoldMySoda3 жыл бұрын

    I was able to connect my sockets and white bulbs this way. But I have no idea how to integrate my RGB bulbs.

  • @j.ballsdeep420

    @j.ballsdeep420

    2 жыл бұрын

    Lmao

  • @EddyYama
    @EddyYama3 жыл бұрын

    My Tuya door sensor works with Tuya Smart Life app, but it is not shown in Tuya integration in Home Assistant. If switched to the local Tuya integration, can the sensor be used in Home Assistant?

  • @WillSurridgeTech

    @WillSurridgeTech

    3 жыл бұрын

    Not sure I'm afraid, worth a try though!

  • @jlant1588

    @jlant1588

    3 жыл бұрын

    I had a switch with same problem and got it to work fine with LocalTuya . As long as you see it in "Device List" on Tuya site and you get the local key, you can create a "binary sensor" using LocalTuya integration. Good luck

  • @EddyYama

    @EddyYama

    3 жыл бұрын

    @@jlant1588 Finally I was able to get my door sensor's local key, but LocalTuya integration didn't discover the device...

  • @jlant1588

    @jlant1588

    3 жыл бұрын

    is that a Zigbee sensor? I haven't been able to use Tuya Zigbee devices with localTuya either.

  • @EddyYama

    @EddyYama

    3 жыл бұрын

    It's a Wi-Fi contact sensor. Unknown error occurs.

  • @GeorgeBark
    @GeorgeBark3 жыл бұрын

    I generally like your videos but I feel this one lacks a bit of research... the options you get when integrating a device are the pins for each of the functionalities, in your example, your switch was off at the moment of integrating it, hence the False and the value was coming out of pin 1. Your particular switch didn’t have power monitoring so there are no extra pins where to get the current and consumption from (which are the extra 3 drop downs). Also, the last step is not to add an extra device but to create a new entity from the same device. For instance, a separate sensor for the voltage (although this can also be done with a template in HA).

  • @WillSurridgeTech

    @WillSurridgeTech

    3 жыл бұрын

    Thank you for clearing that up :)

  • @amilevin8610

    @amilevin8610

    3 жыл бұрын

    Thanks for that info Jorge, When I try to add a consumption switch I can figure which value I should choose for current voltage etc.. What I can't figure out is what I choose for the ID of the entity.. I can't understand which value form the drop down should I choose...

  • @GeorgeBark

    @GeorgeBark

    3 жыл бұрын

    @@amilevin8610 In the ID goes the main source of information. In your case I guess it would be pin 1 (True/False) which controls the On/Off status. If you were to add more sensors from the same switch, voltage for instance, for that new sensor the ID would be the pin that gives the voltage. Hope it makes sense.

  • @amilevin8610

    @amilevin8610

    3 жыл бұрын

    @@GeorgeBark thanks, yeah, I figured it out, it was the on/off. Later on I tried to do the same for a wifi oil diffuser but it was more complicated.

  • @j.ballsdeep420

    @j.ballsdeep420

    2 жыл бұрын

    @@amilevin8610 -- why would have the act of a relay be more difficult: Genuinely asking. Just seems like you could create conditions for most any scenario for an oil diffusers such as on/off/runtime. Just curious

  • @chrislagasse1562
    @chrislagasse15623 жыл бұрын

    Following the steps, I hit a wall with "Get Device Details" in the API Explorer, even in the correct region/data center. I've reviewed the steps you've followed leading up to that query several times, and waited nearly 24 hours before tinkering with the API Explorer. For some reason my devices are returning an empty result set {} -- Even if I try to get a list. I see the devices in the Project and the "Device List" sections in the correct region ("America") so I'm really at a loss for what else I can try. It does appear that my API access is restricted, though there are no errors advising such. Any thoughts as to why this would be not returning data?

  • @chrislagasse1562

    @chrislagasse1562

    3 жыл бұрын

    Digging deeper, running the cURL call separately, I'm getting an "invalid token" so perhaps there's still a lingering approval that's pending.

  • @rrrrrrrr290

    @rrrrrrrr290

    3 жыл бұрын

    I have the same problem, did you get any where ?

  • @paulbarrett2109

    @paulbarrett2109

    3 жыл бұрын

    I'm having the same problem

  • @AnquetGuru

    @AnquetGuru

    3 жыл бұрын

    For all my devices I get code: 1106, msg: permission deny. Any idea why? Could it be I only have free account. I was able to get required integration info from xml dump from smart life but this looks easier.

  • @martynpriest7118

    @martynpriest7118

    3 жыл бұрын

    I get the same issue @willsurridgetech any ideas please?

  • @i_am_not_a_pro_but_lets_try
    @i_am_not_a_pro_but_lets_try2 жыл бұрын

    if you only want to control switches, then fair enough to use local Tuya - but local Tuya does not support a hell of a lot of devices (TRVs, etc)

  • @Tntdruid
    @Tntdruid2 жыл бұрын

    I dont get any local key for any of my stuff

  • @rommiei
    @rommiei2 жыл бұрын

    Useful video. Hope you can also feature how to install zigbee and ble devices on local tuya in your next video

  • @WeSmiths
    @WeSmiths2 жыл бұрын

    Absolutely ideal, but I am guessing that Tuya have changed their UI since this video as from about 8:30 their interface does not resemble the one you are showing - so, sadly, couldn't follow it any further.

  • @wywlf6912
    @wywlf69122 жыл бұрын

    if i moved tuya out from cloud can I still activate it using my cellular data?

  • @j.ballsdeep420

    @j.ballsdeep420

    2 жыл бұрын

    Yes. And it's therefore marginally less vulnerable

  • @oscarvanhees2009
    @oscarvanhees20093 жыл бұрын

    Hi, Great explanation, I had tried using Local Tuya once before, but every time I "stumbled" when looking up Local Key. By means of this API explorer would make this a bit easier ..... Unfortunately, I don't get a response. Despite the correct server etc ..... Has Tuya blocked this again? (written with google translate).....

  • @TempusWarrior

    @TempusWarrior

    3 жыл бұрын

    I have the same issue. The API explorer doesn't return any response and neither does using the provided curl. When using curl the response is that the token is invalid

  • @TempusWarrior

    @TempusWarrior

    3 жыл бұрын

    I ended up using the npm program listed here:: github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md But adding devices via the config flow or YAML always shows devices as unavailable

  • @oscarvanhees2009

    @oscarvanhees2009

    3 жыл бұрын

    With the explanation of the disabled on modern browsers it has now worked, it was quite a job as I have a lot of Tuya devices, but it works perfectly, thanks for the explanation .....

  • @cajuudoido
    @cajuudoido2 жыл бұрын

    Unfortunately I can`t really not use Tuya Cloud, aka remove devices internet access and remove them from the cloud. Works for a couple of days but the devices go to a zombie mode. LocalTuya does not fix this, even trying the DP refresh thing (some times the device revive, but some don't). So LocalTuya in the end is not really local, at least using 4.0.

  • @johnmanz3397
    @johnmanz339711 ай бұрын

    Had a problem where local tuya devices quit working.

  • @sanderdevries7718
    @sanderdevries77182 жыл бұрын

    Hey - Thanks for explaining this process as I wasn't having any success with OTA Tuya Convert on 3 separate Amazon smart plugs now! As mentioned in the other comments, the Tuya IoT website has changed now so your screens are a little outdated - but I was still able to figure it all out. Question! At the end you mentioned blocking the internet access of the switches at mark 07:54. How would I do something like that? Thanks again!

  • @darienturcaz7721

    @darienturcaz7721

    2 жыл бұрын

    Hi Sander, you said you did figure out how to do it with a new interface of tuya cloud, i am not sure if you remember this option in 6:29 but i am not getting the same he got, this is the message i get { "code": 1010, "msg": "token invalid", "success": false, "t": 1635241124159 } that was part of your issues to get it working? I could not find "API GROUPS" option neither!

  • @petermarin
    @petermarin3 жыл бұрын

    LocalTuya doesn't show up among the Home Assistant integrations... what do to?

  • @WillSurridgeTech

    @WillSurridgeTech

    3 жыл бұрын

    You need to install is through HACS first (and then reboot)

  • @LikeABawzs

    @LikeABawzs

    3 жыл бұрын

    @@WillSurridgeTech I have the same issue. Tried restarting multiple times. Does not show up as an integration. It does show in HACS as installed. So annoying. Spend so much time on finding the local keys

  • @braveskunk
    @braveskunk Жыл бұрын

    Generally I would prefer the local instance. I'm just little concerned about integrating all appliances using developer account(again cloud) which terms and conditions can change anytime. Also, statement that local tuya is more reliable seem incorrect to me. One of cloud key concepts is the reliability due to distributed processing. I can't see how single local instance of tuya, using single ISP and probably controller and power source to run it is more reliable. More controllable and traceable, sure. Faster, probably. Reliable with all those single points of failures not really to me. I'm using cloud at the moment but was thinking about getting some local instance running. Getting some home controller to which you could connect directly over internet would be nice.

  • @whiteravenagain
    @whiteravenagain3 жыл бұрын

    Local Tuya is almost perfect except the situation that after HA restart some devices randomly going into zombie state (for HA they are unavailable but from Tuya app everything is ok, the same devices are ok even in HA via stand Tuya integration). Anyone had the same issues?

  • @user-kc5cy6fz3z

    @user-kc5cy6fz3z

    2 жыл бұрын

    I am having the same problem. Sensors that are not connected to power supply go to sleep mode and ping only when there is a change. and go back to sleep after some time. Did you solve it? what did you do?

  • @whiteravenagain

    @whiteravenagain

    2 жыл бұрын

    @@user-kc5cy6fz3z I found that these devices need to be blocked on the router to have no access to the world but I didn't try it yet.

  • @user-kc5cy6fz3z

    @user-kc5cy6fz3z

    2 жыл бұрын

    Okay thanks. I will do that and come back with results. Will you try it too?

  • @whiteravenagain

    @whiteravenagain

    2 жыл бұрын

    @@user-kc5cy6fz3z At some point of time yes but now I have no time for it.

  • @user-kc5cy6fz3z

    @user-kc5cy6fz3z

    2 жыл бұрын

    @@whiteravenagain okay, thank you very much

  • @milandzuris
    @milandzuris3 жыл бұрын

    I dont have in entity confg. falue: False only True or value 0

  • @simonecasadei3457
    @simonecasadei34573 жыл бұрын

    hi, thanks for the video. but...i can't find "tuya local"! why?

  • @WillSurridgeTech

    @WillSurridgeTech

    3 жыл бұрын

    you need to search in hacs and install (and restart) before it appears in integrations

  • @simonecasadei3457

    @simonecasadei3457

    3 жыл бұрын

    @@WillSurridgeTech i can t find it....very strange

  • @WillSurridgeTech

    @WillSurridgeTech

    3 жыл бұрын

    hmm, try adding the repo as a custom integration in hacs

  • @dat1beats
    @dat1beats2 жыл бұрын

    Not in the App Store

  • @bikerchrisukk
    @bikerchrisukk2 жыл бұрын

    You've got more patience than I will ever have, well done. I've got a load of Tuya-like sockets/plug adaptors, the only down side with using HA is that it only gives me the on/off option, and not the power usage info that the phone app has. May be that just takes a little more work?

  • @rishabMehta7

    @rishabMehta7

    2 жыл бұрын

    That's where the other fields come in. Which he skipped by entering 1s. Fill them up appropriately and you will have all the info.

  • @bikerchrisukk

    @bikerchrisukk

    2 жыл бұрын

    @@rishabMehta7 Thanks for that, I'll give it another look. I did buy some "pre flashed" tasmota plugs and they work really well when it comes to displaying power.

  • @jlant1588
    @jlant15883 жыл бұрын

    Tuya wants to verify my Enterprise account ... anyone else having trouble with that?

  • @legromorph2854

    @legromorph2854

    3 жыл бұрын

    You need to set your location to United States in the creation of your acc

  • @TheWhisleblower
    @TheWhisleblower2 жыл бұрын

    Its 2022 now and I can't find API groups ?????

  • @zdenekchmelar3287

    @zdenekchmelar3287

    2 жыл бұрын

    The Tuya web interface has changed. Try to navigate to Cloud menu - API explorer - General Device management - Get device information - fill "device id" - Look for "Local Key" in the section "Response" Under submenu "General Device management" there is also "Get the device information" section but that does not include Local Key info. Use the section without "the".

  • @TwanJaarsveld1
    @TwanJaarsveld13 жыл бұрын

    6:26 i didn't get a response, what did i fuck up ?

  • @DirkTas

    @DirkTas

    3 жыл бұрын

    I did get a response but it just was {}

  • @TwanJaarsveld1

    @TwanJaarsveld1

    3 жыл бұрын

    @@DirkTas same for me

  • @ArthurEtchellsiv

    @ArthurEtchellsiv

    3 жыл бұрын

    @@TwanJaarsveld1 Likewise. Hmmmm.

  • @RolandG-y3w

    @RolandG-y3w

    3 жыл бұрын

    add the plugin from the first comment...had the same issue after adding the addon.....works!

  • @liminalnetworks7691

    @liminalnetworks7691

    3 жыл бұрын

    Im getting after installing the plugin "msg": "permission deny",

  • @yousaf.saleem
    @yousaf.saleem3 жыл бұрын

    Is local tuya free. Now Tuya has started a subscription for Tuya developer projects.

  • @justinanderson8518
    @justinanderson85182 жыл бұрын

    Wtf! There's no projects option under cloud like in video. There is a creative cloud project option but you must select a "data center" when you try to scan the qr code you get an error that you cant link data center accounts..I'm going nuts with this runaround on their website

  • @stringztoo
    @stringztoo3 жыл бұрын

    So...To create a new project with Tuya you need to be "verified" by Tuya 1) logged into tuya website 2) added cellphone # to account settings 3) found Clinet ID number in Tuya app Account settings (called Client ID) 4) went to website and clicked "verify" in settings 5) entered my phone number / name / ID number 6-10) failed over and over and over again