Hi David, Adjan,
Did you managed to get it working? I was struggling to do this as well. Things i have learned (as a newbie to Home Assistant)
My configuration:
RPi3 with HA iso flashed on a SD card 16GB
P1 serial cable RJ11 to USB from cedel: https://webshop.cedel.nl/Slimme-meter-kabel-P1-naar-USB
Note: be aware not all this kind of cables work - so make sure to verify!. I had one from Robbshop.nl that does not work with the BE meter.
Belgian smart meter fluvius T211-D (3 phase, but this should also work for the S211 single phase)
Port enabled via the fluvius portal (myfluvius.be)
What had to do:
This is a reasonable good blog if you have some HA experience. And this one too
It says that you have to change the configuration.yaml file, but it does not say how. (And like i said, i’m brand-new to this… so i had no clue)
To do so you would need to use SSH terminal for example.
(note: below it explains how to install and use the SSH add-on, but i have learned that it is much easier to install the file editor add-on to edit the file. The downside with the SSH client as described below is that you cannot copy from that client, only paste into it and that makes it often hard to do editing & troubleshooting. To install the editor use the procedure as below but search for the file editor)
That’s not installed by default if you use the HA image. (the iso file that you burn to an SD-card and then startup your pi, in my case a pi3)
You can add a “add-on” SSH terminal by installing it from the add-on store
… however, this is not visible by default.
It will only appear if you are in “advanced HA mode”… this, you have to enable on your user profile page by enabling the switch “advanced mode”
Now to install go to supervisor -> add-on store and search for SSH, click on the add on and click install.
Once installed you will find on the left side bar the terminal. (or you could use a terminal on your computer for example to connect, i have not tried this though)
Now you can start editing the configuration.yaml file.
This requires a little knowledge of linux alike commands. note that the HA image does not have all Linux/RPI command available…
To start you have to go to the config directory: cd config
See if you can find the file: ls => this should show all files in the directory, including the configuration.yaml file.
Now you can edit the file with the command: nano configuration.yaml file
You can copy and paste the code from the blog as instructed.
But: which serial port should you use??
To find out to which serial port your cable is connected go to supervisor->system->host and click on te 3 dots at the bottom->hardware.
This will give you an overview of the connected hardware, where you will find the USB port you need.
Copy the whole /dev/serial/… (in my case /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AQ56M4B3-if00-port0) and replace in the “port:” parameter in the configuration.yaml file ( /dev/ttyUSB1) with this string so that you will end up with
port: /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_AQ56M4B3-if00-port0
Save the file (ctrl x and y to save to the file)
Note: for the Belgian DSRM use version 5B (or try a few, i had some troubles getting the power consumption)
Now reboot the system, then all integrations, 2 devices (one for electric, and one for gas) and a whole bunch of parameters should appear (in my case 30)
I hope this will help!! Good luck!