After you enable the widget access service, all devices that support quick toggle operations can be displayed in the widget.
You can go to the product development page corresponding to the IoT platform, select step 4 "Product Configuration", select "Quick toggle settings", click "Settings", and check "Switch", the product can be displayed on widget and controlled .