New to automation but a little experience in general networking
scenario:
HA on pi5 in the living room and i want the lights in my office to turn on when i open the door.
i install a zigbee2mqtt coordinator and plug it into the HA on pi5 in the living room
between the living room and the office I plugin a zigbee repeater/router
i install a zigbee light switch in the office walls and an aqara door sensor
aqara door sensor detects door opening and turns on the lights via zigbee light switch
is this how it is understood?