In the UK, the home broadband provider wants to scrap the existing home hub and swap in a new one. Will that lose wifi device pairings which home assistant recognizes ? Will new pairing completely change everything in the states_meta table of the _v2.db ? Will home assistant work at all before some laborious device pairing work ?
You don’t “pair” WiFi per say, but the devices get ip addresses from the router. Chances are that they will change IP addresses (most likely if you haven’t set static IPs), so yes you would probably need to add the devices again.
tuya and tapo smart home sensors do bluetooth wifi pairing, and then home assistant asks the tuya and tapo integrations to list known entities. Then a stupid “allow” option in the smart phone app needs poking because its default is to hide your stuff..
Will a new ethernet and wifi hub with new ip address by dhcp renumber stuff in the home assistant states_meta table of the _v2.db ?
It depends…
What is currently hosting your wifi?
If you have seperate wifi access points, probably not much will change as you ssid and password will not be affected.
Normally a router does take care of IP addresses (dhcp-server), so a few IP addresses might change (one of the reasons i reserved most of my IP addresses). You could also use static IP addresses.
And bluetooth is only used for the initial wifi setup (so if ssid/password stays the same, no need to use bluetooth to reset wifi either)
FIRST, As a backup, make a list of your current MAC addresses/IP addresses. (With my Asus router I was able to do a copy-paste into text editor … with some regex magic, I ended up with a nice list)
It is essentially certain that devices that are using DHCP will get new IP address when a router is replaced. If you already have reserved addresses, you probably can, and should, recreate this in your new router.
Devices that have hard coded fixed IP address will be the same. Be sure those address are not in the DHCP block of addresses.
I would assume that devices with DHCP assigned address will not have a problem because the application that accesses that device will (should) anticipate an IP address change. Some technologies, like Tasmota, are IP address agnostic. ESPHome may be the same (can someone confirm this?).
If necessary, from your back up, you can manually enter this data into the reserved addresses of your new router. After entering the data into your new router, turn off the router for 1(?) minute which will, in many cases, require your devices to request a new IP addresses. The new address should then be the same as the old one. You may have to power cycle some devices. This may be painful and tedious, but once done, everything should be working as it was.
Set your DHCP ranges the same, set the firewall(s) and everything else the same, and chances are it will just work.
Fail to do so, it will all break.
I don’t think the .db contains any references to IP addresses, so as long as you change the new routers WiFi SSID and password the same as the old, and set the DHCP start and end addresses the same, everything will seamlessly connect.
The correct answers are from @Sir_Goodenough and @mightybosstone
You make note of your current network setup and just copy over the settings to the new host once its up and running with the current out of box config. Do not forget to change the admin password away from the one it comes with and to something you can remember.
Due to the level of the question posed I also assume that your current wifi setup was using the default SSID that it came with, at this point I would just pair all wifi devices again to the new network but using a dedicated IoT SSiD to make future migration easier.
Ethernet Hub ??? Do you mean an ISP-provided router? Or an ISP-Provided switch?
Use Advanced IP Scanner.