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
Shelly 2.5 reboots every x-minutes #252
Comments
go to |
@patricks |
It rebooted a few times today (see it via the uptime in the web ui) but there is no core dump. |
No it is in the switch mode |
reboot with no crash dump likely points to hardware issue, voltage instability (sags, spikes) or some such. |
possibly over heat too ? |
overheating just disables HAP service, it doesn't reboot the device |
Ok good to know thanks |
Hi guys! I have 4 Shelly 2.5s setup as light switches (each only as a single switch), and I have the exact same problem. I thought I had defective units, which seemed unlikely since multiple units face the same issue. It’s reassuring to know others are seeing the same problem, so hopefully we can solve it. Some more details about my specific issue. Sometimes, the Shelly will run “stable” for many days. Sometimes, they will restart every few hours. A couple times, the Shelly seemed like it was on a restart loop, every few seconds. It was bizarre. I rolled back the stock firmware and set those affected units up on a timer (sunset till 11pm), and the lights seemed to stay on consistently. When the 2.4.0 firmware came out, I thought I would try HomeKit again but the issue persists. Separately, I’ve also noticed that an automation in HomeKit to turn off all my lights in the evening had failed on one of the Shellys. When I try to access that Shelly by (static) IP, the web server is completely unresponsive until I power down and back up the Shelly. Also, the WiFi signal is not strong to the Shellys that exhibit these issues, but it’s not terrible either (-63 to -72). I’m not sure if that is playing any part in the restart issue. Please let me know if you’d like any more details, tests, or logs from me. Keep it up 👍 I love your work! |
hm. naturally, i'd like to see logs. |
Hey @rojer I've emailed you the core dump files. I'm installing the beta FW on 2 of my Shellys (the most problematic ones). I also wanted to point out that the temperatures of the Shellys (as per the UI) are: 74°C, 95°C, 92°C, and 86°C. I will also note my electrical wiring has no N wire at the switch, so my Shellys are installed at the light end (inside the housing, so maybe that's also why its getting hot in there). @patricks Can you share more details about your setup? Is it the standard wiring behind the light switch? How's your temp? |
More notes 😊 Some more bizarre behavior. I check in the UI and see the Shelly has recently rebooted, reporting "Uptime: 0:00:00:31". A few moments later, I wanted to check if the Shelly rebooted again, but now (less than 10 minutes later), it's reporting "Uptime: 0:01:13:07". I recall this weird behavior occurring in the previous firmware as well, before I installed 2.5.0-beta1. A little while later, one of the Shellys starting behaving possessed. Within 4 minutes, it rebooted 10 times. I used the stopwatch on my phone, and here's the duration between each reboot: I've now switched them off, I'll try them again shortly. But super weird behavior. I'm wondering if anyone else has had this issue. The only other / last time this happened was about 3 weeks ago. |
@rudyemm i've taken a look at the core dumps - looks like stack is smashed, i'm not getting a meaningful stack trace out of it right away, will need more digging. |
Sure, let me know if I can provide any other dumps, logs, etc and I’m happy to help you experiment 👍 |
i've take a closer look at the dumps.
i see other people reporting it as well, but without any reason or resolution... |
Oh nice, thank you so much for your investigation. This makes some sense, at least I feel confident there is no malfunction with the Shelly. This could be a result of the 2 most problematic Shellys connecting to my WiFi repeater(they’re located in the garden) while the other 2 “stable” Shellys connect straight to my UniFi network inside the house and do not exhibit so much of the restart problem. I restarted my WiFi repeater, and theShellys connected to it have been stable for a full day without restarting. I will keep testing and perhaps extend my UniFi to these Shellys that keep restarting, and I’ll report back with my findings. @patricks can you confirm how the Shellys are configured in your home network? Do you have any WiFi repeaters? Separately @rojer do you think the temperatures I’m seeing with my Shellys of up to 95°C could be causing any stability issues, and more importantly is this normal or is it dangerous to be running that hot? Thanks again for everyone’s help, and keep up the great work 👍👍 |
This sounds interesting, @rudyemm it looks like I have a very similar WiFi setup. UniFi Amplifi Router + WiFi repeater. The problematic shelly is also the only one which is connected via the repeater. I have already tried to reboot my router and then the Shelly works for a few days, but after a few days I have the same problems. |
@rudyemm are your problems gone since the router restart? I have the same problems again. |
Hi, at what voltage do you run your shellys. There are problems with 24 volts. |
@konagar mine is on 230v @patricks after a lot of testing, my conclusion is that a weak WiFi signal is causing the FW to crash and reboot – even after completely removing the repeater. My network setup is enterprise Unifi, not the Amplifi. I have moved my access point closer to the Shelly although the signal is still weak (they are in my garden). The web server is still slow to respond and the Shelly is still exhibiting the reboot behavior. There is still a scenario when it falls in a reboot loop – I’m not sure what causes this. I dunno if the high temperature has any effect on this behavior. I have ordered another access point to provide better WiFi to the Shellys, and will report back with my findings of the Shellys once they have a good WiFi signal. @rojer perhaps it’s worth testing the reliability/stability of the FW with a weak signal (RSSI: -80 or lower)? |
I've been experiencing the same issue with a Shelly 2.5 I had installed. I have over 15 other Shelly 1's and 1PM's running the firmware that have been running perfectly for over 6 months now on the same network config. I purchased some more 2.5's and have just done some more testing. The 2.5 I started having this issue with is next to a 1PM behind a switch and is about 3m away from the closest Nano HD access point. I have 2 Nano HD's and I have a 2.4G SSID setup on each one which makes sure the Shellys only connect to the closest AP to them physically and don't hop between AP's. RSSI is -52 so I don't think signal strength is an issue. Reverted to stock firmware and ran for a week with no issues on the same network config. I setup a second new 2.5 yesterday on the bench and it ran for about 8hrs before dropping off. I've got some other devices on that SSID that I'm going to move off and test again, failing that I'm going to try and setup a VLAN on Unifi Controller with only the 2.5 on it and see if that has any impact. |
this is interesting, there must be something to the 2.5 that causes it... but at the moment i have no idea what it could be. |
If you could point me in the direction of the right kind of serial usb adapter and how to capture the logs I'll have a crack at it. I'd love to get these working as reliably as the 1's and PM's as they're probably more reliable than some of my genuine homekit stuff ha ha. |
i wish i could... i have a custom thing i use. but you need an isolated TTL level serial converter to USB |
i use this https://www.amazon.co.uk/gp/product/B07BBPX8B8/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1 |
@andyblac it's not isolated, never connect it while the device is connected to mains, you know what happens if you do :) |
ye, i always remove all wires 1st 😄 |
@andyjp80 hi there 👋 great to hear your feedback. Are you facing (a) reboots only, (b) unresponsive web UI, or (c) both? It’s good to have more people involved in this, hopefully we can get to the bottom of what is going on. It’s also reassuring to hear from you that your Shelly 1 devices are operating normally. |
@rudyemm the core dump from my unit pointed to the "mac 985" issue. When it happens it has "no response" in homekit and it disappears from my network and web ui isnt accessible. If I power the circuit off at the breaker in the switch board it comes back to normal operation. Yesterday I moved the 2.5 onto its own 2.4G SSID and VLAN on a different IP range (it's the only device on it) to the rest of my network and so far its been up for 24hrs without issue. I'll report back in a few days to see if it's still going. |
please update to 2.7.1, i fixed a whole bunch of bugs that could have affected stability. |
Updated to 2.7.1 in the morning. Still have these light on/off problems. |
I have a similar problem. One of my 2 Shelly2.5 is rebooting randomly for the last 3 days. In my case it doesn't seem to be a problem of WiFi range but could be associated with a malfunction of my Asus Router, which is also rebooting from time to time (nevertheless, they are not synchronised, the Shelly is rebooting while the router is working well - I cannot confirm the other way around - ) |
@rudyemm , have you tried going back to stock, disabling that option and installing Mongoose again? |
we don't respect the stock setting for this but the firmware does have logic in it to reboot if wifi is configured but has been down for more than 5 minutes. |
so it does mean that if wifi router goes down, shelly devices will be on a 5 minute reboot cycle. but again, it should not actually result on any state changes of the outputs. |
This is strange, I still have problems with random light on/off problems with one of my Shelly's. If you say the state is restored after reboot, this has to be an other problem. |
Thanks @rojer for the responses. The 5min reboot logic seems good to me. I'm digging a bit more in my problem:
|
No.... both lights turn off and on... |
since @patricks reported other problems, it looks like we can close this issue now. |
Is there already an issue for the light flashing problem? |
hi @patricks @rudyemm @Jose-2021 can you check your device hardware name/version? I found my issue is strictly related to some devices. Details in the issue above. Thanks |
Hi there 👋 where can we find this data? I’m on the stock FW. |
hi @rudyemm , although I'm not 100% sure it is some kind of device hardware name/version, I get it from the default wifi name generated by shelly2.5 |
I have five Shelly2.5s – the four problematic ones have the prefix D8BFC0 |
So maybe there was an issue with the hardware that was later resolved |
Thanks for sharing. Good to know another bad prefix. |
I have this issue with 98cd running 20211109-125214/v1.11.7-g682a0db, 9/10 shellies running into the same wifi, most of them further than this one, all others are 1/1l/1pm. initially i tough it was related to spikes in powergrid as only 2.5 can measure the voltage but the occurrences are usually around stable voltage (215 to 230v) while in the extremes (200 to 250v) it does not even blink/reboots. |
@protoblade v1.11.7 is stock firmware not this firmware |
@timoschilling, the FW has been update directly from the shelly web and it is 1.11.7 (20211109-125214/v1.11.7-g682a0db) i just put the whole build version that is reported in home assistant. |
I have a single Shelly 2.5 with stock firmware |
@protoblade @Alexivia you both are using the original firmware not the firmware from this GitHub repository. Our software didn’t work with HomeAssistent or the Shelly app and has version numbers in a 2.x range. If you have any problem contact the Shelly support |
I have this issue too...
current log previous log: |
@protoblade and @Alexivia: Were you ever able to fix the Shelly restarts? I also have a Shelly 2.5, with device ID beginning with 98cd, that restarts within a few minutes of turning on the first relay. (It otherwise doesn't restart. Nothing shows up in the Shelly logs.) Sounds similar to what was happening to you all. (I'm aware that the firmware in this repo seems unrelated to our issue—apologies. Just trying to keep the discussion in one place for future folks with this problem.) |
@wtadler, your problem does not look like the problem I was reporting. My restarts happened randomly wether the device was with the relay ON or OFF, and they happened like once a day or every 2 days. |
Thanks for the tip! I replaced all my connections with crimped ferrules, and all the connections feel very secure. Unfortunately it didn't solve the issue, but I've found an acceptable workaround. |
Hi,
I have currently 3 Shelly's (2.5) installed for a few months now. One of them reboots every x-minutes. I figured this out because the light turns off for a few seconds and the uptime in the web ui is also reseted. Is there a way to figure out whats going wrong? I tried to enable debug logging, but it looks like after a reboot the log gets cleared?
I am always running the latest firmware (currently 2.4.0), but this problem also appeared with older ones.
The text was updated successfully, but these errors were encountered: