Using Go-out mode or Go-in Mode to trigger automation or a SwitchBot Scene could easily control the home appliances by opening or closing a door.
① Setting Go-out mode as a trigger, then add bot turn off as an action. The light will be turned off by the bot when you close the door.
② Set Go-in mode as a trigger, then add Curtain slide 30% as an action. The Curtain could be open to 30% when you go home.