Click "Automation" on the home page of the app, then click "+" in the upper right corner of the page, then add the trigger device and conditions in "IF", then add the trigger device. execution and the result of the execution in "THEN ".
A scene is a collection of multiple automations and can also be used as an automation run result.
For example, you need to configure the motion sensor to trigger the light to turn on when it detects someone: click the "+" in the upper right corner of the automation page, select the sensor of motion in "IF" > someone is moving, and select the light in "THEN" > turn on. And then you complete the automation settings.