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

MQTT failure after restart HA #19

Open
thomasshawn opened this issue Jan 22, 2024 · 4 comments
Open

MQTT failure after restart HA #19

thomasshawn opened this issue Jan 22, 2024 · 4 comments

Comments

@thomasshawn
Copy link

As above, was working fine.
Busy making new dashboard for it and rebooted HA for some updates when I did it lost the device. All sensors show as unavailable. All other mqtt devices are working.
I see the traffic on mqtt Explorer
I rebooted the lora and also went as far as to delete the entity from mqtt hoping it would rediscover after reboot of both HA and the Lora device.

Thoughts?

@G-Two
Copy link
Owner

G-Two commented Jan 22, 2024

Is this after a HA reboot or an ESP32 reboot?

Is MQTT discovery and birth message enabled on both sides?

@thomasshawn
Copy link
Author

Is this after a HA reboot or an ESP32 reboot?

Is MQTT discovery and birth message enabled on both sides?

Reboot of Home assistant led to the unavailable across all entities of this project. All my other entities still functioning correctly.
Not sure how to check the discovery and birth enabled.

Not sure what happened to my previous reply..

@thomasshawn
Copy link
Author

Got it working for now and it has survived 2 restarts of both ESP32 and HA.

no clue what fixed it but here's what i did in order

powered off thermoworks device, powered off esp32. rebooted HA. powered everything back on
nothing
went into mqtt explorer and deleted all smoke-x references to remove any bad commands/topics. checked for retained and all clear---
rebooted

nothing

reset any webui mqtt topics to match those in the initial setup/rebooted.
nothing.
toggled off mqtt and autodiscovery on the webui. rebooted and then toggled back on, rebooted both esp and HA.
nothing.
was about to reflash the whole unit when I rebooted everything one last time and it worked.

it's been up now for about 2 hours and hasn't been an issue again.

fingers crossed.

@G-Two
Copy link
Owner

G-Two commented Jan 23, 2024

You can check discovery and birth message settings in the HA MQTT configuration menu.
image
The birth message will help when HA reboots by signaling the ESP32 to resend the discovery message.

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

2 participants