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
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.
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.
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.
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
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?
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.
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.
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.
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.
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.
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
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)
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.
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
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.
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 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.
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 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
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.
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
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 ?
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.
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 ?
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?
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.
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
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.
I can't agree with you that the process described is easier than Tuya convert and tasmota. it seems to be a heap of messing about, and after all that you still can't use the device in Node RED... Good video though. Thanks for publishing it.
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 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.
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.
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 :/
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... - > ruclips.net/video/f8-7Hvrmh3Y/видео.html
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. :(
This is now outdated and does not work so straight forward. Tuya has changed their IoT site and now requires the devices to be added directly to a new the development app, (on iOS only available on TestFlight) , rather than scanning the QRCode from within the Tuya/Smart Life app. To make it work you have to pair every device to this new app which disables it from the Tuya/Smart Life app, and that is annoying.
This is all well and good but we are not all as tech savvy as you are, I'm having a nightmare trying to get my electric gate to open with Google assistant
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...
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
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
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?
Thanks for your great video. It made installing local tuya and integrating devices so easy and straight forward...at least after the last comment about the issue with an empty return {}. But I've to ask for help about the parameters to enter when including a device in HAS - which you described in your video for a single tuya plug. In addition to normal single plugs I own two Gosund Smart WLAN powerstrips with 3 AC-plugs and 3 USB ports integrated. Each of the three AC-plugs and all three USB-ports together are switchable on/off and powerconsumption of the complete powerstrip can be displayed in Tuya app. Can you provide some info about the correct paramets I've to enter when integrating these power strips in local tuya? Second I own some window shutter switches with buttons up, down and stop. Maybe you can give some info about the correct parameter for shutter switches too? Sorry if this is a dumb question, but I'm new to HAS and couldn't find any info about those integrations.
@@jo-johomburg481 Not bragging, stating a fact... "Google it"...that's what I did.... try 'Dr.Z' or 'digiblurDIY' on RUclips... 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!
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
The {} Response occurs for me as well as others in the comments...rather than getting any response.. let alone identify the local key. Tried without Windows10 firewall and with Chrome less secure. On the Americas server, and have been able to link all my devices via the account, and have Device Management open under the Trial License.
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?
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?
Not necessarily - especially with the ease of HA these days. Also flashing the plug involves dismantling it which obviously voids any warranty and could be dangerous as you're dealing with mains voltage
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
The main reason cheap devices are Tuya based is most likely the fact that the companies selling them don’t have the competence or money to develop and operate software and cloud services.
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.
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…
Using the dev portal is much easier than the way I was getting the keys before. Thanks Will
No worries :)
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!
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!
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.
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
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?
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 😂
tuya changed their interface, nothing in this video works any more
😅
ruclips.net/video/R_8uypFHKTs/видео.html&ab_channel=TheHomeAutomationProject
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.
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.
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)
Hi Will, Can you update on the current status of your Local Tuya installation? Have you tried updating to v5.0 in Home Assistant?
Thanks!!! Will this work with Tuya cameras?
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.
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.
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?
Could you do the same video with the new version of TUYA cloud?! it have been changed a lot
Will push notifications still work when I'm not on the network?
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
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)
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.
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)
Things must have changed, I have a Tuya IoT access and secret asked for as well as account and password in HA?
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?
Super clear explanation, keep going with this style 👍
Thank you 🙌
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
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?
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.
@@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.
Wow I was just searching for something like this last night, thanks!
Glad I could help!
That's nice but will it work on video doorbells and security cameras?
Do you remove the products from the app after connection or does a connection still exists?
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!
hello from the future..is there a local tuya for android?
Or any non cloud app, that works locally?
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
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.
I have a led strip with 18w power bank but only getting red led strip..how to get colours please?
do you have videos how to install home assistant software in the laptop or desktop
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
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 ?
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.
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 ?
Great video, just moved all my devices to local thanks to you dude :)
Great to hear!
Is there a difference in terms of speed in using LocalTuya vs flashing Tasmota into the device?
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?
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.
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.
In current version of HA local tuya is no longer listed in HA integration. There is a Tuya integration. Has this be renamed?
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.
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.
I can't agree with you that the process described is easier than Tuya convert and tasmota. it seems to be a heap of messing about, and after all that you still can't use the device in Node RED... Good video though. Thanks for publishing it.
How will you do it for OPENHAB?
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 .....
Do all tuya produce intigrate or compatible with tuya local.?
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.
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?
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
Firewall or pihole
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 :/
Super and great tutorial , I am glad I found this
Hello! I really liked this video very useful thank you!!!
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
Useful video. Hope you can also feature how to install zigbee and ble devices on local tuya in your next video
Why are you so awesome man? Thanks a ton for this.
Happy to help!
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
My zigbee devices are not showing up. The tuya zigbee hub has problem being added
Does this also work for the tuya security cameras?
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... - > ruclips.net/video/f8-7Hvrmh3Y/видео.html
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. :(
This is now outdated and does not work so straight forward. Tuya has changed their IoT site and now requires the devices to be added directly to a new the development app, (on iOS only available on TestFlight) , rather than scanning the QRCode from within the Tuya/Smart Life app. To make it work you have to pair every device to this new app which disables it from the Tuya/Smart Life app, and that is annoying.
and how do i get that key to local tuya when my 1 month has expired
This is all well and good but we are not all as tech savvy as you are, I'm having a nightmare trying to get my electric gate to open with Google assistant
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.
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...
would this work with cameras too?
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
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.
Is local tuya free. Now Tuya has started a subscription for Tuya developer projects.
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
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?
@@bertmonkey8457 Same here. Has anyone found a solution?
@@FlyersPh9 I got that initially and found that windows capitalised the first letter of the id
Thanks for your great video. It made installing local tuya and integrating devices so easy and straight forward...at least after the last comment about the issue with an empty return {}.
But I've to ask for help about the parameters to enter when including a device in HAS - which you described in your video for a single tuya plug.
In addition to normal single plugs I own two Gosund Smart WLAN powerstrips with 3 AC-plugs and 3 USB ports integrated. Each of the three AC-plugs and all three USB-ports together are switchable on/off and powerconsumption of the complete powerstrip can be displayed in Tuya app. Can you provide some info about the correct paramets I've to enter when integrating these power strips in local tuya?
Second I own some window shutter switches with buttons up, down and stop. Maybe you can give some info about the correct parameter for shutter switches too? Sorry if this is a dumb question, but I'm new to HAS and couldn't find any info about those integrations.
have you figured out how to integrate the 3-ac plug? I am having the same issue. What parameters did you include?
@@MaddinPi sorry, I don't have a solution as I moved to Athom Homey controller for my smart home.
@@michaelguennewig6722 thank you anyways for your reply.
And idea how often you have to refresh the device key?
IR controller are not working in local tuya. Nor in cloud.
I think a vascectomy is needed first. This looks like such a ballache that I would want mine cut off before even contemplating it.
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 RUclips... 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!
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
The {} Response occurs for me as well as others in the comments...rather than getting any response.. let alone identify the local key. Tried without Windows10 firewall and with Chrome less secure. On the Americas server, and have been able to link all my devices via the account, and have Device Management open under the Trial License.
Does it work on hoobs?
Thanks for awesome video, helps a ton
No problem!
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?
It's called jinvoo
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?
I had the same, rebooted the HA, tried again and it worked...
@@TexSweden many thanks. I got it working and don't recall how anymore! I suspect I may have rebooted HA.
Reboot FTW
If you can work out how to set up home assistant then flashing a tuya plug with tasmota will be a breeze.
Not necessarily - especially with the ease of HA these days. Also flashing the plug involves dismantling it which obviously voids any warranty and could be dangerous as you're dealing with mains voltage
Slapped
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
Had a problem where local tuya devices quit working.
Can you intergrate locally onto Alexa ?
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
I was able to connect my sockets and white bulbs this way. But I have no idea how to integrate my RGB bulbs.
Lmao
Very useful. Thank you very much. I try asap.
You are most welcome
The main reason cheap devices are Tuya based is most likely the fact that the companies selling them don’t have the competence or money to develop and operate software and cloud services.
Good point - just outsourcing all the effort!
That's a rather positive way of looking at it
sorry to say, but, this is death by talk. At some point will this get hands-on ?