Any way to restore LocalTuya setup from previous YAML files?

I’ve been using HA with LocalTuya (running in Docker on a little dell Mini 9) to automate my dozens of home Tuya lights for the last year and a half. A few days ago my server drive suddenly gave up the ghost. I don’t have a backup of the whole drive but I have the whole /config folder, with all the YAML files etc.

After getting a new drive, I installed the latest HA version, and it seems like nothing works at all now. Most importantly, I can’t for the life of me figure out how to get my scenes, bulbs, and animations back. The “new” localtuya is very poorly documented and I’ve just wasted about 12 hours unproductively trying to get this working again. I thought having all the YAML files would be enough but apparently the new version doesn’t use them.

isn’t there any way I can just use the previous config folder and YAML files to tell it what to set up, or alternatively just go back to what I had before, without all these bugs and errors preventing me from getting anything at all done? It’s only letting me re-enter everything by hand, which seems silly since I have YAML files containing all the necessary information, which worked until the crash forced me to install the latest HA version.

I did, BTW, try just using the old Config folder as it was. That resulted in most of the wasted time, and only by gradulation deleting most of the old config folder could I get the new version of HACS to work even a little.

BTW this is my first time posting in a while, but that obnoxious “Your topic is similar to…” box covering half of what I’m trying to type is really, really annoying. That’s the same sort of inexplicable breaking design decision that’s been repeatedly standing in my way for 12 hours now.

I would suggest, that you install one of previous Localtuya versions (which still used yaml configuration) and copy the localtuya config from your backup, so it properly sets up. After that (and after you confirmed, it’s working) update Localtuya to the newest version and it shall transfer the yaml settings directly to the new configiration by itself. After that you can again delete the yaml part of localtuya configuration.