【Step 1: Turn On Linkage Switch when Motion is Detected】
1. Access the motion sensor's control page.2. Go to settings and select "Smart Routine."3. Add a new automation rule by clicking the "+" symbol.4. Choose "When the Device Status Changes" as the trigger.5. Select the motion sensor and set it to "Motion Detector."6. Add an action to run the switch device and set it to "On."7. Save the settings.【Step 2: Turn Off Linkage Switch When No Motion is Detected】
1. Access the motion sensor's control page.2. Go to settings and select "Smart Routine."3. Add a new automation rule by clicking the "+" symbol.4. Choose "When the Device Status Changes" as the trigger.5. Select the motion sensor and set the duration for "No one."6. Add an action to run the switch device and set it to "Off."7. Save the settings.