Recently, I started to move all my Xiaomi sensor/device from The Gateway Xiamoi to Zigbee2mqtt.
I am in the middle of this, so I have an hybrid situation:
plugs and windows sensors are on the mqtt
movement sensors are still on the xiaomi gw.
This Aqara plug is already on mqtt and it’s working but HA, also, still see it with the discover enabled.
If the Gateway is on when HA restart I find these lines in my core.entity_registry:
{
"config_entry_id": null,
"device_id": null,
"disabled_by": null,
"entity_id": "switch.plug_158d0001bc2dbe",
"name": null,
"platform": "xiaomi_aqara",
"unique_id": "status158d0001bc2dbe"
}
With the gateway disconnected I don’t see it anymore.
In the MiHome app I already disconnected the plug and I don’t see it on any server.
EDIT:
I try to delete every row with enitity_id=‘switch.plug_158d0001bc2dbe’ from the DB, but it still pops up.
How to get rid of it ?