Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove| Force_remove does not remove from HA MQTT discovery #2678

Closed
NewFolk opened this issue Jan 5, 2020 · 3 comments
Closed

Remove| Force_remove does not remove from HA MQTT discovery #2678

NewFolk opened this issue Jan 5, 2020 · 3 comments

Comments

@NewFolk
Copy link

NewFolk commented Jan 5, 2020

Hi,

I have HA 0.103.5 in docker and 1.8.0 Zigbee2MQTT.

Today I decide to remove one lamp.

zigbee2mqtt/bridge/config/remove 0x086bd7fffe2184dd
zigbee2mqtt/bridge/log {"type":"device_removed","message":"0x086bd7fffe2184dd"}
zigbee2mqtt/bridge/log {"type":"device_removed","message":"left_network","meta":{"friendly_name":"0x086bd7fffe2184dd"}}

But it does not leave Mqtt discovery integration and after Zigbee2MQTT restart i see this topic:
homeassistant/sensor/0x086bd7fffe2184dd/linkquality/config

zigbee2mqtt/bridge/config/force_remove does not hep me too.

But zigbee2mqtt/bridge/networkmap does not show me 0x086bd7fffe2184dd.
And it looks like it is some buffer special for home assistant

@nldroid
Copy link
Contributor

nldroid commented Jan 7, 2020

Could it be that it is still in your MQTT server?

https://community.home-assistant.io/t/easiest-way-to-remove-mqtt-device/130466

@NewFolk
Copy link
Author

NewFolk commented Jan 8, 2020

Hello, thank you for your link. I got a lot of new info from it.
I deleted information by MQTT Explorer, restart HA, but it does not help. Will take a lot at HA database.

I think that delete action from "homeassistant/" should be added to "Remove" command in z2m.

@Koenkk
Copy link
Owner

Koenkk commented Jan 9, 2020

@NewFolk agreed and implemented, latest zigbee2mqtt dev branch will now clear the HA discovery topics on device removal.

@Koenkk Koenkk closed this as completed Jan 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants