whats-up-docker icon indicating copy to clipboard operation
whats-up-docker copied to clipboard

Container retained in mqtt after deletion

Open Isa-78 opened this issue 2 years ago • 3 comments

Hi @fmartinou , I just noticed that when deleting a container from a docker, it doesn't remove the information from the mqtt server. Which means that on each cron, I receive an update message in mqtt for a container that doesn't exist anymore. Can you please check if you can pass the info to mqtt and remove the container? Or is there something that I've missed in the config? Many thanks, Isa

Isa-78 avatar Feb 02 '23 16:02 Isa-78

Same problem here.

alemape avatar May 24 '23 14:05 alemape

Yep, have been seeing the same so I have to go to Mosquitto and clear out the entries.

the-jeffski avatar Jul 08 '23 15:07 the-jeffski

I'd like to add, this also happens if a previously watched container has the wud.watch=false label applied. It disappears from the WUD UI, but persists its state in Home Assistant.

To clean up the entries from Home Assistant, you can call the mqtt.publish service with an empty payload.

Example below:

service: mqtt.publish
data:
  topic: homeassistant/update/wud_container_local_mongodb/config
  payload: ""
  retain: true

geekifier avatar Jul 03 '24 19:07 geekifier