Many, many Yeelights - new Wifi-Router. A way to reconnect ALL lights at once with the new device?

Hello, upgrading my WiFi and looking for a smart method to connect all my yeelights (bulbs, strips) without going through the proces for every device?