-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
Flashing yellow and red pixels after some period of working hours #519
Comments
Can confirm this. Thought it was a hardware issue, but as my error is exactly the same pixel and the same behaviour it seems more like a software issue. Sadly in terms of bugtracking the issue is non reproducable atm. |
that's not a software issue. |
If it's not a software problem, what else could it be? Everything works perfectly after a restart. And mqtt via home assistant works seamlessly with other devices. The same applies to wifi. For me it seems to be a software error. I will reflash Mx Awtrix. |
MQTT tries to reconnect wich isn't asynchronous and awtrix freezes during that time. You can set debug_mode in dev.json and listen with serial terminal. If you think that's a software bug, than please give me instructions on how to reproduce this error. You must have configured something special, otherwise there would be more such reports with over 5000 users. Another possibility would of course be that the ESP is damaged. |
I have seen the yellow pixel on Awtrix too on a few rare occasions. |
There are also problems with ESP32 together with Unifi routers. |
I join this problem!!! |
How do I get back to the awtrix3 firmware version 0.95? Perhaps there will be no problems with this firmware! |
https://github.com/Blueforcer/awtrix3/releases but there was no change to wifi in 0.96 |
Can I join? I see the same issue, after a few hours, sometimes a day I loose the connection to Awtrix, This issue exists already for longer time and is, in my opinion, not related to the most recent Awtrix FW versions. I have Omda AP's but I'm using Unify switches and routers (not sure if it is related but I see a mention of ESP32 issues with Unifi. |
Interesting find. I'll take a look at uptime vs ram usage as well. |
Make sure to not trigger HA discovery entities very often. The used library has a memory leak. It's better to work with raw Mqtt or http API commands. |
Hi, I'm not doing any automatic discoveries in HA, everything is manual (MQTT wise). Is there any chance that we can reboot the AWTRIX3 automatically when running out of resources (and obviously a mechanism that prevents more than 1 automatic reboot every .. hours)? |
I'm running Awtrix 0.96 since a few weeks and haven't had any problems so far. I checked my HA logs for the Awtrix free ram and apart from one peak, where it goes down to 60K about a week ago, it is consistently between 120-130K free ram. Are you running custom applications? Maybe turn them off for a day and check if the problem goes away?
|
This is the free ram of my Awtrix 0.96 over the course of a week: Apart from the few occasional peaks, it's pretty stable between 120K and 130K free ram. I have three automations running on HA that continuously push data to Awtrix. (Outside temp, Solar power and Octoprint status). How many automations are you running in HA? If you enable them one after the other and check if there is one specific automation that causes the memory leak, we could try to investigate. Otherwise your question:
is just straining the capabilities of our crystal ball... ;-) |
I don't think there will be any update from the Creator of the lib. Last update was 2 years ago. |
@vitaha83 that is a very interesting solution for me. I wonder, how the change to qos:0, retain:false can have such a big impact on the awtrix since awtrix is just a consumer of the message. This sounds a bit like a problem in the mqtt library used by awtrix. I assume that retain: false/true doesn't affect the memory consumption on awtrix. |
Changing the automations solved my issue as well. |
I don't know how to implement a HA integration for Awtrix, but I took a look at the HA autodiscovery library that you are using, found it too big and clumsy and rolled my own. If you want, I can take a look at the HA autodiscovery. |
Mqtt itself doesn't have a memory leak, only when you access the entities from HA discovery. that's already tested. As I see the library builds the MQTT Payload string at runtime, maybe there is no release of the data. We have some experienced users in discord. I'm pretty sure together we can build an integration wich just uses MQTT or even better http. This would have the advantage that we can free Awtrix from some code and we have more RAM free. |
I do experience similar problems though I only get the blinking yellow indicator (lost mqtt connection I guess). I can still see the device from my router but I cannot ping the device anymore. I think that it did not start right after the upgrade to 0.96 but after I started using the lifetime property of apps. Could this be related? Might just be coincidence of course... I'm not using Home Assistant and no HA Autodiscovery. |
i think it's a power-related problem, when you power the esp & the leds from the onboard usb. i also experienced strange hangs, leds (the red and yellow ones) and extensively low WIFI signals reconnect errors etc.pp. but since i redesigned ma case anyway i added an extra usb-plug, like shown here: https://pixelit-project.github.io/hardware.html#wiring-guide And boom: WiFi good, no system hangs, no quirky leds etc. |
Then you have connected your middle button wrong. Needs to be active low. |
how would i do that? |
I had the same problem. I had one custom app that had a "lifetime" of one hour (3600s). I have removed this Lifetime and switched to deleting the app through my homeautomation after the hour and so far this seems to have solved the problem. (The "lifetime" didn't work anyways in my case, see Issue 335) |
Bug report
Describe the bug
My Ulanzi with Awtrix works fine for a few hours with HA over Mqtt. After 3-6 hours the wlan disconnects and on the left side two pixels (one yellow and one red) starts flashing.
With a restart (just possible via hardware buttons) everything works fine for the next few hours.
Wireless strength is really good and the Awtrix has a fixed IP address on my DHCP Server.
Additional information
To Reproduce
Running the Awtrix for some hours.
Screenshots
The text was updated successfully, but these errors were encountered: