-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
Hanging after setting MQTT settings with HA discovery toggle #420
Comments
Check serial console, and check your mqtt messages via mqtt explorer. |
Thanks for the response! Sorry, my bad, it seems it isn't a reboot loop, the device I identified getting a DHCPoffer every few seconds wasn't the MAC of the TC001 but a very similar one. Should have checked better. The problem seems to be in the toggle of "Homeassistant Discovery". If I save MQTT credentials without that toggle and reboot, the device comes up fine and I see it responding in MQTT explorer. The only thing that is responding is the IP via ping, but nothing else. Also I doesn't seem to get any console output out of the device. Perhaps wrong settings? Haven't found any that produce any output at all. |
10 seconds is the interval of the mqtt reconnect, so maybe awtrix can't connect and do a reconnect wich isn't asynchronous, so the Programm stops in that time. You're writing "Newest 0.9 firmware flashed". But newest is 0.91. is it a typo? |
As the device hang with MQTT... again there was no going forward, so I re-flashed and erased again. So it's definetly 0.91 now. What is puzzling (I didn't think about it earlier), if I set up network with static IP settings (toggle is definetly on) the device does still does DHCP:
Reconfigured the base settings of the clock after flashing 0.91 again:
then restarted the device.
so the boot worked. But DHCP server showed:
So it still asks DHCP for IP even with static IP toggle on. If I can toggle some deeper debugging mode before trying the HA discovery toggle again, I'm up for it? Thanks, |
DHCP has nothing to to with homeassistant discovery. |
Bug report
Describe the bug
I have already read (#165) but that didn't seem to be my problem? Anyway as per my title I have the problem of a reboot loop every time I enter the MQTT settings. I can configure every part of AWTRIX but as soon as I touch MQTT, the device is gone, doesn't get anywhere near getting configurable again (no HTTP available anymore/not responding).
Newest 0.9 firmware flashed. MQTT Broker is on the same network as the device (a separate VLAN where IoT stuff is housed) and is a simple mosquitto instance that was set up without much configuration at all. Simple setup, configured user/passwords to test. I already connected several Tasmota devices to test with the broker which do just fine and pop up as soon as I save the settings.
But as soon as I enter the MQTT host, user, pass in AWTRIX, the device reboots and after checking my DHCP server logs, I see it reconnect/getting an IP around every 10s so the device doesn't even get in a usable state anymore where I could reach the HTTP server.
So I'm open to debugging but at a loss what to provide to get it to talk to my broker.
Edit: seems the device just hangs, not reboots - my bad!
Additional information
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Happy to provide any other data I've available, mosquitto is just freshly installed, no special configuration besides pwfile.
The text was updated successfully, but these errors were encountered: