#Getting off the Tuya Cloud

19 messages · Page 1 of 1 (latest)

stoic valley
#

I've been using HA for a couple of years now and it has been great. The first devices I setup in it were a number of Tuya based lights and switches using the main Tuya integration and it is therefore dependant on the Tuya Cloud. That has also been fine until a recent Internet outage meant I couldn't control anything properly for about 36 hours! So I am now looking at trying to migrate 36 Tuya based devices to either "Tuya Local" or "Local Tuya".

First, I have to try to determine which integration to use. Why are there 2 that seemingly do the same thing???

Secondly, no doubt that adding all the devices to HA again via a new integration will mean I need to go and modify quite a large number of automations along with all my dashboards that show the Tuya devices. Is there any way to either avoid that or at least make it a bit easier???

tranquil hound
#

There's more than two, there's at least half a dozen different options - and all have slightly different capabilities and devices they support

#

Sadly if you used devices then there's no simple migration - if you used entities then you can at least rename those to match what they used to be.

At least as long as the new integration creates the same general entities as the old one

native pelican
#

And if the Tuya device uses Zigbee, it’s worth skipping the Tuya integration entirely and connecting it directly via ZHA or Zigbee2MQTT.

stoic valley
#

Thanks for the replies guys!

My devices are all WiFi (these were my first smart home devices).

I've just checked my automations and a few of the first ones I created were using devices (which I have now updated to use entities) and all the later ones are using entities so the renaming idea might work. I guess I need to create a list of all the current Tuya devices and corresponding entity names so when I setup the new integration I can name them accordingly.

Which one of the integrations is the preferred one or what is the best way to try to work that out myself? I certainly don't want to have to go through the migration exercise more than once.

native pelican
tight moth
#

Yeah, Tuya Local seems really solid for me so far. More stable than the core integration, more automated than the Local Tuya one, and gives me the right colors for my lights.

Tuya Developer portal was fun to dig into. I learned a lot about my devices over the weekend!

stoic valley
#

I tried setting up Tuya Local this morning with just one light as a proof of concept. I connected my cloud account so it can grab the Local Key for each device but it can't get the local IP addresses. All my lights are DHCP so chances are the addresses change from time to time. I really don't want to have to create DHCP reservations for them and there may be more than the router supports for reservations. Anyway, I pushed on just to see if I could get this one light setup. I looked on the router to get the local IP and while I can see all the lights there I have no idea which one is which. There are far too many to try to sort it out so the Tuya Local project has come to a fast end.

native pelican
stoic valley
#

@tight moth If you have just been down the path of converting from Tuya cloud to Tuya Local, how did you get the local IP address of each of your devices? I can see them in my router's DHCP table but I have 32 lights that are all the same so I have no way of identifying which IP address relates to which light. I can't turn the lights off to do it either as they are all downlights and there are many in each room on the one switch. The only way to turn one off would be to remove it from the ceiling and unplug it and that's all too hard.

Getting the IP address is only the beginning. I'm then not sure if my router will allow 32 DHCP reservations so the lights effectively have a fixed IP address.

I knew this wasn't going to be an easy undertaking but I didn't think I'd run into IP addressing issues.

UPDATE: I figured out where to find the MAC addresses of each device in the Tuya app. From that I can find the current IP address of each device in the router DHCP table and make a reservation for it. I still don't know how many reservations it will allow but there is one way to find out ........

UPDATE 2: I have my first light working with Tuya Local!!! I've left it setup in the cloud as well for now but that means I can't rename the entity. I just want to make sure it stays online (I have read issues about devices going offline when using Tuya Local) for a few days and then I will embark on the task of migrating the other 31 lights and 3 switches.

UPDATE 3: I've managed to create all the DHCP reservations so I'm over that hurdle. I've saved them to a spreadsheet too so I don't have to work it all out again if the router dies. I retired from work 6 months ago after 42 years in the electronics/computer/IT industries. It feels like I am back at work again!!!

native pelican
stoic valley
#

Mine are only 2.5 years old and there are 32 of them. I will replace them with Zigbee devices if when they fail but it would be quite a cost to replace them all so I do hope they last a while. At least having them local will help with reliability and Internet outage resilience.

My first light passed the final test tonight. It’s an outdoor light with a Zigbee motion sensor to turn it on when there is motion after sunset. It worked perfectly and the response was instant. I’ve generated a list of all the existing entities and names so I will just work through them one by one over the next few days.

tight moth
stoic valley
#

And the good news is ..... I dedicated some hours to the migration this morning and I now have everything setup locally and it is all working perfectly.

Thank you for your assistance and moral support as I went through this 🙂

tight moth
#

Loved being taken on this journey. clap

rigid parrot
#

🟢 NEW TO HA

Hi Everyone. I have been reading throug the various local Tuya threads in discord before just starting a new one and this one was the most relevant in my case.

I came across a video posted two weeks ago by TechHut where he explains that the Local Tuya Fork (only vailable on HACS with custom repository) has been the most comptable with newer devices and more refined. I have tried to look up the reason behind this fork.. and cannot find anything.

Im not stuck trying to decide between Tuya Local and LocalTuya Fork (from custom repository on HACS)

Can anyone help get the bees out of my head.

I have a bunch of AliExpress specials (Tuya lights) and the standard cloud integration is driving me nuts.

tight moth
#

I’d have to look at the fork, but I’ve found Tuya Local supports so much and the last update added some more stuff.

Legitimately, I find that each Tuya integration has something useful over another one.

#

I’m still writing a guide for setting things up with that integration, too.