Skip to main content
All CollectionsTroubleshooting
How do I update the DSMR integration IP address in Home Assistant without data loss?
How do I update the DSMR integration IP address in Home Assistant without data loss?
Updated over a month ago

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

  1. 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.

  2. 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.

  3. 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).

  4. 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.

  5. 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.

  6. 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!

Did this answer your question?