Getting a Matter over wifi device back working after losing mains power

What is the best way to get bulbs/sockets working again after a power cut, they are visible but take ages to get working again