If i pair a Zigbee device, for example a line powered switch, and the device looses power for a longer while, will it be reconnected or is there a timeout that will see the device as a new one?
I dont have powered switches, but bulbs and it does not matter how long they have been powered off (no energy at all).
You need to trigger a reset of the devices. With my bulbs e.g. you need to turn them on and off 5 times very fast in a row.
Im pretty sure your line powered switches will have a similiar behavior.
Look up the documentation of the manufacturer. Im pretty sure they will tell how your device will behave with a power outage.
Most devices will use a flashcard, like the one in a USB stick, to store its settings.
So the settings will stay for as long as an USB stick will keep its data.
My question was more about the matching process. So if a Zigbee device has a unique node address (MAC address) like WiFi nodes do, then it may only up to my integration to know which HA device is bound to wich Zigbee-node, regardless of when and where it connects to the network.
So the device itself does not need to know anything about this all. But i have the feeling that it also knows where it connects to last time? This maybe the cause why sometimes devices fall off the network and it’s hard to get them back in, for whatever reason.