Network Management

Last Updated on : 2025-03-24 07:35:51download

Device pairing

Generic pairing

To start generic pairing, users can reset a device (for N times), or perform a specified action that makes the device ready for pairing.

UserSub-deviceTuya-enabledGatewayUserGet sub-device ready for pairingUse app to start pairing through gatewayThe sub-device scans for pairing.After successful pairing,its panel is displayed on the app.Operate the panel to remotely control the sub-device from the app.UserSub-deviceTuya-enabledGatewayUser

Local reset

Restore a device to the status prior to pairing. Users can also choose whether to clear data, for example, respecting groups, scenes, and device status.

UserSub-deviceTuya-enabledGatewayPress and hold the sub-device to make it leave the network.After the sub-device leaves the network, its offline status is displayed on the app.Unable to operate the panel on the app to remotely control the sub-device.UserSub-deviceTuya-enabledGateway

Network leave requested by the gateway

Restore a device to the status prior to pairing after the gateway sends a leave command to remove the device from the network.

Sub-deviceTuya-enabledGatewayUserTap Remove Device on theapp.After the sub-device leaves the network, the app does not display its panel.Sub-deviceTuya-enabledGatewayUser

Auto recovery

This capability can prevent a device from leaving a network by unintended operations. When a device gets ready for the pairing mode after local reset, if pairing timeout or device restart occurs, the device can automatically restore to the previous networking status. All data such as groups and scenes will be retained after restoration.

UserSub-deviceTuya-enabledGatewayPress and hold the sub-deviceto make it leave the network.After the sub-device leaves thenetwork, its offline status isdiaplayled on the app.Unable to operate the panel onthe app to remotely controlthe sub-device.The sub-device starts scanningfor networks after leaving thenetwork.If pairing timed out, thesub-device automaticallyrestarts once to join the lastnetwork. Its online status isdiaplayled on the app.Operate the panel to remotelycontrol the sub-device fromthe app.UserSub-deviceTuya-enabledGateway

Support and help

If you have any problems with TuyaOS development, you can post your questions in the Tuya Developer Forum.