Yes it’s from the firmware version, old one are working, new one need the “tuya unlock sequence”. But the device firmware, not the gateway one.
But it’s tuya stuff, there is less problem with ikea stuff, and their firmwares are publics. With the devices you are trying to add can you give too your deconz version ?