-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
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 1PM Plus (Gen2) works fine, then suddenly try to connect to wrong ip address, after 15 minutes come back to correct state #117816
Comments
Hey there @balloob, @bieniu, @thecode, @chemelli74, @bdraco, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) shelly documentation |
Please attach diagnostics file for this device. |
I have diagnostic file Just for when device is available, when it is unavailable I do not have “download diagnostic” button, is there another way to do this? |
Please enable Debug for Shelly integration, restart Home Assistant core, wait 20 minutes, disable debug and attach the log. Note: it is better to drag the log into the comment (which will add it as an attachment) and not copy paste as it is hard to read logs in GitHub. Thanks |
Hi thecode, |
Ok, now it happened again after opening shelly app! |
You can stop now, I didn't notice your log on the first post, I will look at it and try to understand but please attach the 2nd log maybe it will help. Thanks 👍 |
here it is, thanks for helping |
At the moment I stopped debug device was unavailable |
From the I suspect that the device still advertises the temp address it received until you gave it a static address, I don't know why it happens, I will try to add some more logging to find out. |
@ufluido Do you still experiencing this issue? Can you collect new logs if you do? |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Hi, On integration side, I'm still curious about why it try to change ip? If it works with an assigned ip, why after some minutes it search for another ip? |
Do you have a fritzbox? |
Yep, the old IP is not listed anywhere on the fritzbox UI anymore. Also, it works as expected on another HA instance so I'm not really convinced that it is a problem with the Fritzbox. Using a static IP on the shelly is only a workaround (and I'm not even sure if it would help) and doesn't fix the actual issue. I use static DHCP leases on all other devices aswell which always worked without problems |
Another thing you can check to see if it’s the same problem: |
So I just restarted my Fritzbox and now everything seems to be working fine... Let's hope it stays that way! |
We don't differentiate between an IP you manually added or an IP that was discovered automatically (using zeroconf/mDNS), this is not specific to Shelly, other core integrations works the same. While it might help you overcome FritzBox bug, if we don't update the IP for most users it will just create problems when IP changes. Since this is not a Shelly bug and confirmed to be fixed by rebooting the router I am closing this issue. Thanks for reporting back @ufluido |
Feedback: |
The problem
I had a Shelly 1PM (Gen1) that was broken.
I replaced it with a new 1PM Plus (Gen2), same configuration, same name, same ip. After first power on I connected to its AP to set the old one 1PM ip address (192.168.1.24).
All worked fine except integration randomly try to connect to a DHCP range ip (192.168.1.236) without success, so the device go "unavailable" on Home Assistant, after 14 minutes it reconnects without reason to correct ip 192.1681.24 (static set on device).
How is it possible that integration try to connect to another ip that I never set? And why always after 14 minutes it reconnect with right ip?
Do you know the reason? How can I help you to investigate on it?
For more info:
"Visit" button on integration page always point to right ip (192.168.1.24) even when device is unavailable
Device is always connected to wifi and has a strong signal
When it is unavailable I can connect to it from shelly app/browser
What version of Home Assistant Core has the issue?
2024.5.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
shelly
Link to integration documentation on our website
https://www.home-assistant.io/integrations/shelly/
Diagnostics information
home-assistant_shelly_2024-05-20T18-34-01.746Z.log
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: