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 app causes Homey to restart continuously and show a red ring #28
Comments
Interesting, out of +450 users you are the first to report this. Do you know how to run the app from the command line? Perhaps that will give more details as to why this is happening. It might also help if you are able to send a crash report from the app settings through the Homey smartphone app. |
I'm not able to send a crash report from the app. As soon as I install the app, my Homey reboots. When it's loading the apps again I'm able to get into the Shelly app, but I'm not able to send a diagnostic report (button is disabled). When all apps are loaded and it's trying to load the Shelly app it reboots again. Are there any instructions on how to run the app from the command line? I'll try it as soon as I get home this afternoon. I think I'm able to send a report to Athom when I don't have the Shelly app installed, but I don't know if it is useful for them in this case. |
You can find information on how to use the command line here: https://community.athom.com/t/how-to-cli-install-method/198 Make sure you run the app with |
Als have a look at this, perhaps that helps you as well. |
Does it also crash when you remove all Shelly devices first? |
I've done that already so there are no Shelly devices installed. |
If that is the case I think it's highly unlikely it's related to my app. I dont want to scare you but it sounds more like some corrupt memory. Have you tried installing any other app recentely to see if that does not cause similar issues? |
Yes I've tried several times. Even today I was able to install the Xiaomi Aqara Zigbee app (and install sensors) and the Ubiquiti Unifi app. I'll report the issue to Athom tomorrow, maybe they can help finding out what causes the problem. |
It would be very helpful for me if you could slowly re-add the removed cards to see what is causing it. My guess is that you can re-add all the action cards at once and see if any of the condition cards is the culprit. It's still strange only a two or maybe three out of 450 users experience this. |
I've reported the issue to Athom on November 14th, so far no response. As soon as I receive an answer I'll let you know. |
A week ago I got an answer from Athom (sorry for reporting it so late). The answer was in Dutch, I'll summarize it here in English so it's clear for everyone reading this issue.
They are going to send me a new adapter to rule out that this causes the problem. I already tried another adapter so I don't think this is the problem, but it's worth trying. |
It's definitely in the Shelly app since removing some flow cards seems to fix it according to @Spijkmans. But since I can not reproduce it and about 500 other users do not seem to have this problem it's hard to troubleshoot. As mentioned to @Spijkmans you would have to do a trail and error slowly removing more and more cards to see which one causes it (and start with the condition cards). Once I know which card(s) cause then issue I can perhaps understand why. But this is something you guys need to do for me to be able to solve this. |
Hopefully @Spijkmans is able to do so. I'm not a programmer myself, so I have to do some research (and find some spare time) first before I'm able to understand what I'm doing. Isn't it easier to do a trial and error by commenting out all the cards and start adding them one by one, instead of removing them one by one? In that way Homey isn't restarting every time. I'll wait for an answer from @Spijkmans and for the new adapter to arrive, otherwise maybe I can try something somewhere in the future. For now I'm using the app from Shelly itself to automate my home ventilation. |
I finaly found some time to test things out. This is what I've done; I first tried running it as-is => Crash. Reverted to state where all flowscards where remarked and I removed the folder ' tinycolor2' and it's dependency lines in 'package.json' => Crash. Removed the 'Shelly EM' , 'Shelly Pro 4' , 'Shelly HT', 'Shelly Flood' and 'Shelly Dimmer' 1 by 1 and test. Tried adding a Shelly Plug S and that worked, but when adding a flow => Crash. Re-adding the 'Shelly HT' seems to work fine but as soon as I add any other driver => Crash. For now I'm gone let this run for some time, hopefully it won't crash.. :) |
Thanx for all the effort, unfortunately the information isnt very conclusive in pinpointing the issue. I doubt tinycolor2 is the cause since adding the Shelly Pro 4 driver caused a crash as well. It's really strange either way as these drivers do absolutely nothing if no devices for these drivers have been paired. Did you test it repeatedly to make sure your action have the same result and to rule out it's just random behaviour if if crashes or not (and thus unrelated to the changes you made)? |
Every test I did, I repeated before moving to the next step (so 2 tests per step). |
@Spijkmans did you ever re-test this? So far you guys seem to be the only two out of 700+ users that have this issue. I really dont know where to look. |
Sorry for the late response, but I did some further testing. But to no avail... As you I’m baffled as where to look to fix this problem. |
I'll try to install the app again later today. If the problem still occurs I'll let you know, but if I am the second to only one of all users experiencing this problem you don't have to spend any time on it. Then I'll just use the app from Shelly and I have to accept that I cannot use it with Homey. |
I tried again yesterday but Homey restarted immediately. I'll be using de Shelly devices without Homey then. Maybe somewhere in the future I can figure out what is causing the problem, but I don't see that happening soon. |
I'm closing this. I have absolutely no idea what is going on and you seem to be the only two out of 770 users that experience this. |
I know this issue is closed, however I wanted to tell you this; My conclusion: there is nothing wrong with the Shelly App and the issue mentioned must have some other cause, possibly environmental (Z-wave/Zigbee or wifi) related. |
Thanx for updating the issue with extra issue. It seems to be related to the netwerk Homey is connected to (probably the way the router is setup) and in relation of the mDNS broadcast messages which are send to discover the devices during pairing. There is more info in this topic on the community forum. https://community.athom.com/t/installing-shelly-app-makes-homey-unresponsive/33157/13 |
Hi Jelge, I tried to enable/disable mDNS in my Unifi router in order to fix the crasing of my Homey. |
I believe the logs are cleaned on a reboot so there might not be much in there anymore after a reboot. But I'll contact Athom and will request the log. Let's see if they are willing to supply this to me. I'll open the issue as well if we are going to troubleshoot it once more. |
@Spijkmans I submitted a support request and talked with Boaz from Athom support today. As another user already noticed it does indeed seem to be related to DNS calls. Your log contains this warning You said you already enabled/disabled mDNS on your UniFi router. But are you perhaps also running a custom DNS server like Pihole that could be misconfigured? If so, try to use an external DNS server (8.8.8.8 for instance) and see if that solves the issue. For reference, these errors are also in the log but it seems to me that this is a consequence of Homey struggling with the DNS resulting in timeouts.
|
@Spijkmans , are you still alive and able to answer the last question? |
@jghaanstra Yesterday I had some time to change some settings in my network environment as well. I have a few Unifi access points so at first I thought I had to look over there, but the mDNS settings were already disabled. Then I checked my ASUS router, I couldn't find any mDNS settings in there but I disabled some other settings with no luck (Homey started rebooting again after installing the Shelly app). After disabling some media server and Network Place settings in my router and installing the Shelly app again it worked fine. |
@mkwanten85 , thanx for looking into this. I would be really helpfull to know which settings you changed in your router. Do you have the description of the settings you changed? |
@jghaanstra Never mind my previous comment. Today I was trying to pinpoint the exact problem by enabling the options one by one again. |
@jghaanstra Sorry for my late reply... I have a KPN fiber all-in-one (Internet/TV/Phone) with an UNIFI USG-3 as router. (I also tried the ISP supplied router, a ZTE router, but that also didn’t help) Still looking for a solution... 😁 |
@Spijkmans I'm not an expert but this is my network setup: Also still looking/hoping for a solution.. |
I talked about this issue with Athom support. It seems to be a user specific problem related to a combination of my Shelly app, Homey core and the network configuration of the user. This makes it hard to troubleshoot and Athom told me it has very low priority as it only seem to affect a couple of users. Since I'm out of ideas myself as well I'm tagging this as "wont fix" for now until more information becomes available. |
For those with the issue of Homey Crashing/Freezing in combination with the Shelly App. It was discussed earlier that it only occurs in specific network conditions. After allot of digging I pinpointed the issue to the Bonjour Service on my Synology NAS. So for others having this issue, it might be relevant looking into any network device (nas, router, pc, others) running the Bonjour Service and disabling it |
@jghaanstra I know this item is closed but I have a small update on this matter. To my surprise it didn’t...! 🥳 I now works just as intended. I’m very, very pleased now! |
Guess Athom fixed something with the mDNS flooding some specific networks in firmware 5.x. Thanks for the update, I'm closing this. |
Since version yesterday (3.7.2) i have the same issue. I disabled Bonjour on my NAS and that fixed the rebooting of homey for now. |
No big change in the Shelly app, it's an issue with the mDNS implementation of Homey that sometimes affects users with specific network setups. It could very well be something changed in your network recently which triggered this. It seems the mDNS implementation of Homey listens to mDNS broadcast messages even without the pairing wizard being active. With over 70+ drivers in the Shelly app and most have their own mDNS filter set up this requires resources. In combination with specific network setups Homey seems to choke on this. It's been reported to Athom but they have decided not to look into this further due to it being a corner case scenario that only affects some users. |
hahaha youre absolutely right. I just stopped the multipass VM, enabled Bonjour services en reinstaled the shelly app in homey and its now running a solid 10m without issues. |
When I installed the Shelly app last week, my Homey started rebooting continuously. At first I thought it was the power supply of my Homey so I replaced it with a new one without any result.
When my Homey rebooted I was able to navigate to the apps section. There I noticed the Homey rebooted again when it was starting the Shelly app. At some point it was running for a short while and I've managed to use the Shelly 2.5 switch, but when I tried to install the Shelly H&T yesterday the Homey kept rebooting again.
For now I've deleted the Shelly app so my Homey (software version 3.1.0) keeps working fine. I've tried installing and deleting the Shelly app at least three times now and every time the app is installed my Homey keeps rebooting itself.
Would be nice if this problem can be found and fixed so I can use my Shelly devices with Homey.
If you need more information just let me know.
Best regards,
Marcel
The text was updated successfully, but these errors were encountered: