Remove sensor from xiaomi gateway

hi all, i notice that it was intrroduced the possibility to delete a sensor from the gateway directly from ha (xiaomi_aqara.remove_device). can someone explain to me how it works? i remove a sensor from the gateway and it is not removed from ha.
thanks

This post is 2 years old, but it might help someone else.

image

The device_id is the combination of letters and numbers on each sensor, like this one:
image

After sending the service command, restart HA and it should be gone.

3 Likes