-
-
Notifications
You must be signed in to change notification settings - Fork 29k
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 integration replaces hostnames with IP addresses #121438
Comments
Looking at the Shelly integration source code ( |
Excellent. Matching by MAC address or some other unique identifier provides the stability for the use case I mentioned. |
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 |
This is by design, we translate the hostname to IP and store the IP.
Currently there is no way to prevent replacing the hostname, the integration will update the IP according to mDNS advertisements from the device (based on MAC). This should also work if you move the device into another VLAN (may take some time or device reboot) |
Alright, thanks for clarifying. |
The problem
I'd like to configure my shellies using host names to make the integration more resilient against IP address changes. I've configured fixed IP reservations in the DHCP server, but I'd like to remove those and be able to, for example, move the devices from one VLAN to another without manually adjusting all IP addresses in the HA integration.
To that end, I've re-configured each integration to use a local hostname and these appear to stick for a while, but they are eventually replaced again with IP addresses. Is there a way to prevent replacement of the hostname or is that even unnecessary because auto-discovery would pick up new IP addresses anyway and match them with existing devices?
What version of Home Assistant Core has the issue?
2024.7.1
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
No response
Diagnostics information
No response
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: