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.
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 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
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.
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.
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.
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).
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...
@@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 -- 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
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.
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"
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
@@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.
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.
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?
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)
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.
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)
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.
@@milandzuris i got it working with this guide github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md Listing Tuya devices from the Tuya Smart or Smart Life apps (highly recommended) but the API Explorer did not give me any data
These days I am facing issues with Tuya cloud every 2-3 months they say subscribe and pay this amount to continue using Tuya cloud, as such in every 3 months, I have to setup a new tuya cloud account and do the entire setup in home assistant again, which is very frustrating So my question is - After connecting using local tuya, even if free tier on tuya cloud ends it would not affect local tuya integration Am I right ?
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.
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... - > ua-cam.com/video/f8-7Hvrmh3Y/v-deo.html
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 ?
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.
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?
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
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...
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.
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.
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.
@@jo-johomburg481 Not bragging, stating a fact... "Google it"...that's what I did.... try 'Dr.Z' or 'digiblurDIY' on UA-cam... I learned a lot from these guys...
@@jamegrabham9992 I know all the articles. And for myself. I am able to flash to tasmota and capable to use it in the esp way. But still i agree with Will. It is a lot of effort. And only pieces are shared. Nobody is able to explain it to the normal end user. And Will does a great job supporting people with making their first sane choices
I was planning to do the Tuya-convert with a bulb and a light strip but they are with the new firmware. It is really not a big effort but simply doesn't work. Also Opening a light bulb to flash it (if at all possible due to the new chip) doesn't seem like a good idea. I think local Tuya is the way forward until they block it.
@@hipantcii I am sorry that it doesn't work for you. I have never had an issue with Tuya locking down their firmware, but then I have never purchased a device and completed a firmware update with Tuya because I have heard of Tuya doing this...I don't think that I would open a light bulb either...the Owfeel WiFi Smart Valve WiFi Control Water Valve was the last thing that I purchased about 6 months ago and had no problem flashing it OTA. But I did not do an update, in fact, I never even opened my 'smart life' app...I just put the device in pairing mode out of the box, and flashed!
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?
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?
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.
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
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
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
@@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
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
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.
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
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?
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
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".
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).....
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
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
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 .....
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!
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!
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?
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
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 :/
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.
Your videos are good, but this information is already horribly outdated. There does not seem to be an accurate description of how to obtain the product key at this time in any video I’ve found.
I'm sorry it's outdated, but it was made 9 months ago - I'm not currently using local tuya so havent tried since this video so can't comment I'm afraid
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. :(
hey Will, looks like the process for this has now changed quite a bit. Maybe time for an updated video? Thank you!
+1 please
Hi.. if we block the Internet option, does it means we will not be able to control the devices remotely?
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.
@@richardrrong my problem is when I do submit to get the info of the device them it said … invalid key…
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
Do you get energy usage?
@@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
What's this HACS store? Is it depreciated? I don't see TuyaLocal on the addon store.
I didn't even know this (local tuya control) was possible. Great video!
Glad I could help!
@@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.
Using the dev portal is much easier than the way I was getting the keys before. Thanks Will
No worries :)
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.
Fab!
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.
You're welcome!
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.
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).
Thank you for clearing that up :)
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...
@@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.
@@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.
@@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
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.
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"
I'm stuck at the same spot.
I'm stuck here too.
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
@@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.
@@nickelbers Many thanks, I should have read all comments, instead of after one hour and throwing my keyboard away 😂
Super clear explanation, keep going with this style 👍
Thank you 🙌
Things must have changed, I have a Tuya IoT access and secret asked for as well as account and password in HA?
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.
is this still working. Could not find tuya local on HACS. Installed HACS today
6:26 i didn't get a response, what did i fuck up ?
I did get a response but it just was {}
@@DirkTas same for me
@@TwanJaarsveld1 Likewise. Hmmmm.
add the plugin from the first comment...had the same issue after adding the addon.....works!
Im getting after installing the plugin
"msg": "permission deny",
Thanks!!! Will this work with Tuya cameras?
How will you do it for OPENHAB?
Will push notifications still work when I'm not on the network?
Could you do the same video with the new version of TUYA cloud?! it have been changed a lot
Wow I was just searching for something like this last night, thanks!
Glad I could help!
Hi Will, Can you update on the current status of your Local Tuya installation? Have you tried updating to v5.0 in Home Assistant?
Great video, just moved all my devices to local thanks to you dude :)
Great to hear!
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?
7:49 how do you block the device from communicating with the cloud server? In the router?
Yes that is something you can look to do with your router
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)
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.
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)
That's nice but will it work on video doorbells and security cameras?
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.
Any solution to inigrate Zigbee devices?
I didn't get a response from API Explorer
me 2
@@aklausen Im try all servers china america europe all. it still doesnt work.
@@milandzuris nothing here only response {}
@@milandzuris i got it working with this guide github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md
Listing Tuya devices from the Tuya Smart or Smart Life apps (highly recommended)
but the API Explorer did not give me any data
yea doesn't work for me either.
do you have videos how to install home assistant software in the laptop or desktop
Do you remove the products from the app after connection or does a connection still exists?
and how do i get that key to local tuya when my 1 month has expired
Super and great tutorial , I am glad I found this
Do all tuya produce intigrate or compatible with tuya local.?
My zigbee devices are not showing up. The tuya zigbee hub has problem being added
Does it work on hoobs?
In current version of HA local tuya is no longer listed in HA integration. There is a Tuya integration. Has this be renamed?
sorry to say, but, this is death by talk. At some point will this get hands-on ?
I have a led strip with 18w power bank but only getting red led strip..how to get colours please?
These days I am facing issues with Tuya cloud every 2-3 months they say subscribe and pay this amount to continue using Tuya cloud, as such in every 3 months, I have to setup a new tuya cloud account and do the entire setup in home assistant again, which is very frustrating
So my question is - After connecting using local tuya, even if free tier on tuya cloud ends it would not affect local tuya integration
Am I right ?
Had a problem where local tuya devices quit working.
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)
Does this also work for the tuya security cameras?
would this work with cameras too?
IR controller are not working in local tuya. Nor in cloud.
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.
Why are you so awesome man? Thanks a ton for this.
Happy to help!
Hello! I really liked this video very useful thank you!!!
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?
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... - > ua-cam.com/video/f8-7Hvrmh3Y/v-deo.html
I dont get any local key for any of my stuff
4:21 is where the tutorial starts, you can skip the first half of the video
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.
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?
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 ?
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.
Can you intergrate locally onto Alexa ?
hello from the future..is there a local tuya for android?
Or any non cloud app, that works locally?
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?
Check Mark Watts video and his following fault finding video.
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
still works, perhaps you need to select US region when you sign up.
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...
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.
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.
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.
Is local tuya free. Now Tuya has started a subscription for Tuya developer projects.
All my Tuya devices (60+) have been flashed with Tasmota...really nothing to it...!!! Then integrated with HA.
Tuya works good. But feels cheap. While you made it so perfect. Please share how you accomplished it. Instead of bragging about it
@@jo-johomburg481 Not bragging, stating a fact... "Google it"...that's what I did.... try 'Dr.Z' or 'digiblurDIY' on UA-cam... I learned a lot from these guys...
@@jamegrabham9992 I know all the articles. And for myself. I am able to flash to tasmota and capable to use it in the esp way. But still i agree with Will. It is a lot of effort. And only pieces are shared. Nobody is able to explain it to the normal end user. And Will does a great job supporting people with making their first sane choices
I was planning to do the Tuya-convert with a bulb and a light strip but they are with the new firmware. It is really not a big effort but simply doesn't work. Also Opening a light bulb to flash it (if at all possible due to the new chip) doesn't seem like a good idea.
I think local Tuya is the way forward until they block it.
@@hipantcii I am sorry that it doesn't work for you. I have never had an issue with Tuya locking down their firmware, but then I have never purchased a device and completed a firmware update with Tuya because I have heard of Tuya doing this...I don't think that I would open a light bulb either...the Owfeel WiFi Smart Valve WiFi Control Water Valve was the last thing that I purchased about 6 months ago and had no problem flashing it OTA. But I did not do an update, in fact, I never even opened my 'smart life' app...I just put the device in pairing mode out of the box, and flashed!
Is there a difference in terms of speed in using LocalTuya vs flashing Tasmota into the device?
And idea how often you have to refresh the device key?
Not in the App Store
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)
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?
Thanks for awesome video, helps a ton
No problem!
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?
Digging deeper, running the cURL call separately, I'm getting an "invalid token" so perhaps there's still a lingering approval that's pending.
I have the same problem, did you get any where ?
I'm having the same problem
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.
I get the same issue @willsurridgetech any ideas please?
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
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
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
LocalTuya doesn't show up among the Home Assistant integrations... what do to?
You need to install is through HACS first (and then reboot)
@@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
I was able to connect my sockets and white bulbs this way. But I have no idea how to integrate my RGB bulbs.
Lmao
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
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
After integration, i get only one entity (ON/OFF)... Where are the other entities (brightness , color, ..)) ?? thanks
any solution ? and with switch i get on/off i cant take current consumption - Voltage
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.
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
Fair enough!
Can you please tell me what you did for the fans?
if i moved tuya out from cloud can I still activate it using my cellular data?
Yes. And it's therefore marginally less vulnerable
Very useful. Thank you very much. I try asap.
You are most welcome
Tuya devices should have static IPs?
I can't remember whether it is required, but I'd definitely recommend it
Yeah, seems so. This is gonna be a problem with over 40 devices :-/
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?
I just got a reply from Tuya stating they are not the same app.. lol .
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
Its 2022 now and I can't find API groups ?????
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".
hi, thanks for the video. but...i can't find "tuya local"! why?
you need to search in hacs and install (and restart) before it appears in integrations
@@WillSurridgeTech i can t find it....very strange
hmm, try adding the repo as a custom integration in hacs
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).....
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
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
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 .....
What happens when you buy a new Tuya device after moving to Tuya Local? How would pairing setup work for the new Tuya device?
I believe you add it to tuya as normal, then add it to HA using local tuya
It does not work. Tuya looking for some crazy money for API access. No chance. I rid off all tuya devices from my house.
Is he being held hostage?
Lol
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!
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!
Useful video. Hope you can also feature how to install zigbee and ble devices on local tuya in your next video
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?
Not sure I'm afraid, worth a try though!
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
@@jlant1588 Finally I was able to get my door sensor's local key, but LocalTuya integration didn't discover the device...
is that a Zigbee sensor? I haven't been able to use Tuya Zigbee devices with localTuya either.
It's a Wi-Fi contact sensor. Unknown error occurs.
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 :/
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.
Your videos are good, but this information is already horribly outdated. There does not seem to be an accurate description of how to obtain the product key at this time in any video I’ve found.
I'm sorry it's outdated, but it was made 9 months ago - I'm not currently using local tuya so havent tried since this video so can't comment I'm afraid
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. :(
does this works also with thermostate? like HY312
I also want to know this