In short: what would be the best approach to replace the P1 USB cable between my ESMR/DSMR 5 meter and HA RPi, without losing any historic energy data?
I’m using the DSMR Slimme Meter integration with a P1 USB cable connected to my Sagemcom XS210 ESMR5 electricity/gas meter for a while now and it is working perfectly fine with the Energy dashboard in HA.
After installation of a 9HU patch rack and moving all the networking equipment to it, I wanted to move my HA RPi 4 too. The current P1 USB cable is too short, so I ordered a 5m version.
I assumed, perhaps somewhat naively, that it would be a matter of just replacing the cable and everything would continu to work. Clearly, that’s not the case
The integration shows one hub for the original P1 USB cable:
/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A906SIE4-if00-port0
It has 2 devices (electricity and gas meter) and 29 entities.
When I simply disconnect the original P1 cable and connect the 5m version to the same USB port, it doesn’t work, so I added another hub for the new cable (/dev/ttyUSB1 - FT232R USB UART - FT232R USB UART, s/n: A68K38M5 - FTDI). As I interpret, only the cable’s s/n is different.
By default, DSMR 5S is selected, but that’s not the correct setting for The Netherlands. It only finds the electricity meter (not gas meter). When I select DSMR 5, it says the device is already configured.
I guess I will have to delete the existing hub / cable to be able to configure the new cable as DSMR 5 hub. But, with deleting the existing configuration, I suppose both the electricity and gas meter device as well as the underlying entities will get deleted?
Is there any chance to “simply” replace one P1 USB cable with another to continu monitoring the same ESMR/DSMR 5 meter, maintaining the historic data? For example, by altering the s/n of the cable in some config file?
Update: here are some screenshots to illustrate what I mean:
The existing P1 USB cable:
The existing devices (electricity and gas meter):
The discovered new P1 USB cable:
The message it shows when I try to add the new cable as “hub” with DSMR 5 config: