How to use Tuya ZigBee Wifi with local tuya

I have a few wifi tuya switches. Just from curiosity I tried tuya local to gain local control. And this works, as I tested it without internet.

I see. Do you need set up the cloud api in localtuya? I think the intergation may have refetch those keys.

Yeah, you need to set up cloud and use device key to set tuya local. I don’t know will it works if you remove device from the cloud. Maybe it will. Devices does work without internet.