Today I noticed the my Sonos was not working. I checked the log:
dev:102019-02-28 08:32:22.227 am warnNo route to host (Host unreachable)
Then I went into the HE Sonos app and it found a new Sonos, now I have two devices, one that’s stale and the other new one.
My question is, how does the app uniquely identify the Sonos? Is it IP address? MAC?
Any ideas on how to recover the existing Sonos?
If it's IP, how can I find the IP address of the old device?
thank you!
Sonos devices are identified by IP address.
You should set a DHCP address reservation in your router for each Sonos device (this records the Ethernet MAC address, which never changes, and ensures the router always allocates the same IP address to that device).
You will need to refer to your router's documentation for details on how to do this, as the details vary from one router to the next - the two key words you're looking for are "DHCP" and "reservation".
The IP address that Hubitat associates with each Sonos device is shown as the "DNI" entry in the devices list. For Sonos devices it is shown in hexadecimal form.
e.g. "C0A800A2" = C0.A8.00.A2 = 192.168.0.162
Without a DHCP address reservation, every time your Sonos device restarts your router will be assigning whatever it believes is the next free and available IP address for it to use. This will often be different to a previously used address, so Hubitat thinks it is a new device.
-
Find the DNI entry for the "Old device" in the Hubitat devices list.
-
Convert from hexadecimal to dotted decimal form
-
Configure a DHCP address reservation in your router for your Sonos device using the Sonos device's MAC address and the IP address from step 2.
-
Restart the Sonos device so that it requests an IP address from the router using DHCP and gets the now reserved address.
-
Confirm Hubitat is now controlling the Sonos device via the desired "device".
-
Delete the unwanted device from Hubitat.
(Note: If another device on your network is currently using the desired IP address you discover in steps 1 & 2, you will need to restart that device after step 3 (so that the router allocates it a new, unreserved IP address) but before step 4 (so that you don't have two devices on your network trying to use the same IP address)).
And you can find your Sonos device IP address(es) by going to Help > About in the Sonos Controller. It lists every one of your Sonos devices and its IP address.
thanks @Chuckles and @Eric.C.Miller
I added IP reservations for the old IP addresses, rebooted and am now back in businesses.