Adjust IP addresses in Home Assistant after network conversion – without reinstallation?

Hello everyone,

I have a question about configuring HomeAssistant.

The following scenario:

All of my devices that were managed and controlled by HA had fixed IP addresses.

Due to a move and a complete restructuring of the network into 5 VLans and the associated new address areas, I of course also have to adapt HA.

Can I adjust the IP addresses manually before restarting the HA server and if so, where and how?

I would like to avoid a complete new installation if possible.

Thank you for your support.

1 Like

No need for fresh install:

Settings - system - network

yes, that is for the basic configuration and I know it. I’m interested in the already known devices such as smart TVs, WLED controllers, sockets, light switches, etc. All devices that were controlled via a network (not Zigbee, etc.).

Thank for our reply

Puh, that’s a tough one.

I guess it depends how the integration is connecting to the devices.
With mdns it might just update and work, if it’s ip based you might need to set them up again.
:thinking:

OK, I thought that HA stored the IP address centrally in config files, such as the ones I had created manually in configuration.yaml, in order to be able to change them more easily without having to change all the automations etc.

I assume that some integrations will update their devices.
I think you just have to give it a try and see what does not work.

I remember vaguely also seeing devices in the .storage folder.
But that was years ago. Not sure if this is being used and how save it is to edit there.

If you keep to some basic rules. the problem of reinstalling an integration often isn’t that big. If you need to remove an integration, note the entity ids and after reinstall rename the newly create entities back to the originals if they changed.

The basic rules most relevant: avoid device id’s in automations. If you used those, you’re in for a rough ride. Then after reinstalling the integration, you need to acreate a similar automation, note the new device/entiti ids used, and do a global search replace in automations.yml, scenes and scripts.

This is why dns was invented.

HA is not good with routing. The best way is to have HA and all devices in one VLAN.