niceboygithub / AqaraGateway

Aqara Gateway/Hub integration for Home Assistant
523 stars 66 forks source link

How to delete duplicated device if migrated from one gateway to the other? #296

Open tidegu opened 2 months ago

tidegu commented 2 months ago

I use both Aqara Home app and HA (HAOS on ESXi host). I have a TH sensor connected to a M1S gateway before, and later I set up a new P3 gateway, and as per required by the Aqara Home app, it asked me to connect the TH sensor to the P3. I did so and in the Aqara Home app, I can see it is correctly migrated to the new gateway (P3) and everything works fine. However, in HA, I can see this device is under both gateway, and in the device page, it shows two gateways in the device info box (see attached screenshot). I wonder how can I remove the link to the previous gateway and keep it only shown in the new gateway? I tried to reconfigure both gateways in HA (without deleting and adding again), it doesn't work. Restarting HAOS various times also does not work.

Snipaste_2024-09-03_01-07-08 Snipaste_2024-09-03_01-10-42

BTW, if I go to the M1s' device info page, the TH sensor does not show in the connected device.

It's OK for me to manually edit some yaml file (if needed), but I don't know where to find these files.