Problem Summary
You have a DSMR (Dutch Smart Meter Requirements) integration set up in Home Assistant to monitor data from your smart meters.
The DSMR integration was originally configured to use a network connection (via ser2net
on a specific host), and you now want to change the connection to point to a different machine.
The Home Assistant GUI does not provide an option to edit the IP or hostname of the DSMR integration once it's configured, and you also don't want to remove and re-add the integration, as this would erase the device history.
Solution
First, access the Terminal in Home Assistant. There are several ways to do this, and the Terminal add-on is just one of those options. While the add-on offers an integrated and user-friendly approach, experienced users might prefer other methods to access the Terminal based on their familiarity and preferences.
Next, you have to go to a special folder where Home Assistant keeps important settings:
You type:
cd /config/.storage
and press Enter.This command takes you to the right folder where Home Assistant keeps the file you need to change.
Now, you need to open a file called core.config_entries to change the IP address:
You type:
nano core.config_entries
and press Enter.This opens the file in a simple editor called nano (like a text editor but for typing commands).
Inside the file, locate and update the old IP address to the new one, ensuring it is the address linked to the DSMR integration, which connects to your smart meter. Be thorough when checking, as there may be additional instances of the old IP address left over from the initial setup. These extra lines might represent unused or outdated settings, so verify carefully to avoid unnecessary changes.
When You’re Done, save your changes:
Press
CTRL + X
to close the editor.It will ask if you want to save. Press
Y
for yes and then press Enter.
Finally, restart Home Assistant, and everything should work with the new IP address.
That's it! You’ve successfully changed where Home Assistant looks for your smart meter!