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

ESP32 module stops working after one day in use #6

Open
BerndGaykema opened this issue Aug 15, 2024 · 6 comments
Open

ESP32 module stops working after one day in use #6

BerndGaykema opened this issue Aug 15, 2024 · 6 comments

Comments

@BerndGaykema
Copy link

After a reboot the ESP32-hub works great. All devices within range (on a much larger distance than Homey Pro 2023) react fast.
But before the 24 hours have passed the commands from Homey do no longer reach the curtains.

I use version 2.1 (loaded this version via OTA programming, file description says "Reset when memory below 20k".

I have 2x ESP32 in use with your hub-firmware. As a work-around I now have added a mechanical time switch to each of the power supplies which toggles the power every 12 hours for 15 minutes (both on different hours so that there is always a hub active). Problem "solved".....

If you have the time and want to challence this issue, please let me test new drops.

@AdyRock
Copy link
Owner

AdyRock commented Aug 15, 2024

I am working on it, trying to improve the auto-reboot. I still haven't tracked down where the memory goes, but I think it's in the BLE library.

@AdyRock
Copy link
Owner

AdyRock commented Aug 16, 2024

I have uploaded new code and the binary.

@BerndGaykema
Copy link
Author

Thanks.

I have loaded the two ESP32 hubs and it is working again, but time will tell if it keeps working over a day. I will keep you posted.

With your previous solution the hubs stopped working at all. It was possible to view all BLE devices but the communication with Homey seems broken. Only the curtain directly working with the Homey Pro base was moving, the rest was frozen. A power cycle did not help.

@AdyRock
Copy link
Owner

AdyRock commented Aug 17, 2024

I have seen on a couple of occasions the ESP32 send the notifications to Homey but Homey just rejects them with error code 400. On the occasions the only fix was to reboot the ESP32. I have assumed it is down to the same memory issue, so the ESP32 fails to format the data correctly.

@BerndGaykema
Copy link
Author

For the last couple of days I don't see any problems. Both ESP32-hubs I use keep working correctly. My curtains open and close when Homey tells them to do so.
THANK YOU !!!

@BerndGaykema
Copy link
Author

Hmmm, Yesterday September 18, 2024, the ESP32 unit stopped working. It was impossible to address the unit by its IP-address. A simple power cycle was enough to have a working hub again. Just FYI. I will monitor and come back when it fails again.

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