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. Then the light could be turned off by the bot when you close the door.
② Setting Go-in mode as a trigger, then add Curtain slide 30% as an action. Then the Curtain could be open to 30% when you go home.