fmartinou / whats-up-docker

What's up Docker ( aka WUD ) gets you notified when a new version of your Docker Container is available.
https://fmartinou.github.io/whats-up-docker
MIT License
1.02k stars 33 forks source link

Feature Request - Send MQTT update when pressing Watch Now #142

Closed robertalexa closed 11 months ago

robertalexa commented 2 years ago

Hi @fmartinou

Just a feature request as per the title suggests. Force an MQTT update when the button is pressed. Of course at the end of the verification process for each of the containers.

To provide some context, I have just updated my hosts after the entity id patch, because wud had updated, this send an MQTT update and the entities in HA have the correct expected ids binary_sensor.wud_container_homepi_wud

But as the other containers did not have an update (docker image) yet, the entity ids are still wrong. I have also had another (similar outcome) situation where 1 container had an update that wud found, and updated HA about it. I updated that container, only that at the same time wud was down during the process. Wud of course says there is no update available, but HA still think there is?

Ideally forcing a new mqtt message can correct such behaviour. What do you think, is this something you can have a look at? I can try to investigate myself and do a PR but i am currently preparing for a month long holiday, so I will deffo be under the radar for the next while.

Thanks in advance!

LE: I think i might be wrong about this... I can see the entities updating in HA when i press the button, but maybe just the status might not update? I am not sure anymore.

Nonetheless, when pressing the button each container gets 2 messages send? e.g. a duplicate, or maybe 2 unique events one after the other? image