What is the difference between preconditions and if-triggers?
State conditions are only used to determine whether the automation scene is effective and will not trigger the execution of the scene.
For example, if the trigger condition of the scene is "when device A is turned on" and the state condition is "when device B is turned on", the action is to turn off device C.
Only when device A is turned on and device B is also turned on will the scene be triggered to turn off device C.
Turning on or off device B alone will not trigger the scene.