Im looking for someone to help me understand how ZigBee actually works in junction with HomeAssistant and a ZigBee Integration(ZHA, Zigbee2Mqtt or otherwise). For example, Im assuming HomeAssistant(ZigBee integration) is literally just a middle man broker\facilitator between the coordinator and the end device to get it paired, correct? In other words, clicking the Add New ZigBee Device button in HomeAssistant is really just instructing the coordinator to go into pairing mode in conjunction with you putting a end device into pairing mode. Which then allows both to see each other and facilitate the association between the coordinator and that device now, correct?
Im assuming HomeAssistant has no real enforcement or dictation of devices staying paired and thats all stored in the memory\storage of the coordinator once a pairing happens, correct? And HomeAssistant at that point is really just an interface to see device information and perform automations between those devices since it has direct communication with the coordinator?
Is that why you can pair a device to the coordinator, allow the device to be present in HomeAssistant. But then remove the device in HomeAssistant and it magically comes back unless you factory reset the end device and therefore break the pairing information on the coordinator?