Tuya and Local Tuya together
First, I want to congratulate Local Tuya developers in making it much easier to add devices by importing the local key automatically. That is a great improvement!
I would nevertheless like to make a plea to make it easier to run Tuya and Local Tuya side by side in HA. I would ideally like to have all my Wi-Fi devices under Local Tuya but I cannot migrate all of them because
- some give errors in Local Tuya (reported separately as bugs)
- some are recognised but unsupported - i.e. they have no meaningful entities. E.g. I use an IR blaster as universal remote and rely on Smart Life scenes for each button push; I can only do this with cloud Tuya.
- some have a lot of entities and I need more time to work out which is which before I can use them meaningfully under Local Tuya.
You CAN run both together, but it takes a lot of work. When you add a device to Local Tuya is it not removed from cloud Tuya so the device is in HA twice. The name is the same in each because they originate from the same Smart Life app. Normally HA keeps the entity ids distinct by adding a suffix like â_2â but it can still get very confusing when editing automations, scripts etc. and lead to errors.
My approach is: for each device in Tuya that I also have in Local Tuya, I edit the name by adding XXX to the end, I assign it to an area called DEFUNCT and I disable it. I say yes to renaming the entities accordingly. I also delete any âSwitch by Xâ entities associated with the cloud Tuya version of the device.
These measures make it easier to identify the correct version of the device to use in automations, scripts etc. I then go back to Local Tuya and edit the suffixes from the entity ids, so they are as they were before. That does not mean they are re-linked to automations, scripts etc., though; I still have to do that manually - including the re-creation of all Switch by X helpers. On several occasions I have encountered the âthis device has no unique idâ error â then you have to delete the device from Local Tuya and start again.
I welcome comments from anyone with a simpler approach than mine!
It would be great if the developers could make this process easier. What I really want is to have the Local Tuya version of the device âtake overâ from the old cloud Tuya version - i.e. take on the same entity ids and replace the entities in Switch by X helpers, automations, scripts etc. I would be happy for the old version of the device and its entities to disappear; at least it should be automatically disabled and have its name and entity ids changed to something different.
Any thoughts?