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

Regularly resend HA discovery Data #2641

Closed
SciLor opened this issue Oct 3, 2023 · 3 comments
Closed

Regularly resend HA discovery Data #2641

SciLor opened this issue Oct 3, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@SciLor
Copy link

SciLor commented Oct 3, 2023

The Feature

If I am restarting my server, including HASS and my MQTT Server, the discovery information is gone and HASS doesn't find the device anymore.

So the discovery information should be resend once a while to mitigate this problem.

@SciLor SciLor added the enhancement New feature or request label Oct 3, 2023
@caco3
Copy link
Collaborator

caco3 commented Oct 5, 2023

Restarting a server is not something that happens during normal operation. Also, when you enable retention, this will not be a problem.
Additionally, the UI has a button to resend those topics.

We on purpose decided no to resend those topics periodically to reduce the load on the ESP.

@caco3 caco3 closed this as completed Oct 5, 2023
@SciLor
Copy link
Author

SciLor commented Oct 6, 2023

Home Assistant and the mqtt servers restart regularly for updates. Is there any mqtt command / API endpoint to automate this process?

@caco3
Copy link
Collaborator

caco3 commented Oct 6, 2023

Its missing in the docs (I will add it to https://jomjol.github.io/AI-on-the-edge-device-docs/REST-API/). But just call http://<IP>/mqtt_publish_discovery

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants