Read and decoding your Smartmeter with a P1 connection
7.0K
An application that parses smartmeter data over the network or a P1 cable.
Go to smartmeter2mqtt documentation to get started really quickly.

If you don't want to read the carefully made documentation, use one of the docker compose samples to get started quickly.
version: "3.7"
services:
smartmeter:
image: svrooij/smartmeter:latest
restart: unless-stopped
ports: # Depending on your situation you'll need to expose some ports
- 3000:3000
- 3010:3010
- 3020:3020
environment:
- TZ=Europe/Amsterdam
- SMARTMETER_SOCKET=192.168.1.15:23
- SMARTMETER_web-server=3000
- SMARTMETER_tcp-server=3010
- SMARTMETER_raw-tcp-server=3020
# - SMARTMETER_enc-key=056F9B0CFEDF150E889BEAD52FA7A174 # if you need to decrypt the messages
# - SMARTMETER_sunspec-modbus=192.168.x.x # if you want to also read your solar inverter.
If you're reading from an USB to P1 cable, it's important that you connect the device to the container. The mapped location might change on reboot or if you connect other devices. That is why I recommend to connect the device by serial. You will need the real device location, type ls /dev/serial/by-id and note the device string that looks like usb-FTDI_FT232R_USB_UART_A13LN4ZS-if00-port0 for my cable.
Be sure to replace this device id in the docker compose file.
version: "3.7"
services:
smartmeter:
image: svrooij/smartmeter:latest
devices: # Replace the device id with your found id, the device is mapped as /dev/ttyUSB0 inside the container.
- /dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A13LN4ZS-if00-port0:/dev/ttyUSB0
restart: unless-stopped
ports: # Depending on your situation you'll need to expose some ports
- 3000:3000
- 3010:3010
- 3020:3020
environment:
- TZ=Europe/Amsterdam
- SMARTMETER_PORT=/dev/ttyUSB0
- SMARTMETER_web-server=3000
- SMARTMETER_tcp-server=3010
- SMARTMETER_raw-tcp-server=3020
# - SMARTMETER_enc-key=056F9B0CFEDF150E889BEAD52FA7A174 # if you need to decrypt the messages
# - SMARTMETER_sunspec-modbus=192.168.x.x # if you want to also read your solar inverter.
Content type
Image
Digest
Size
40.6 MB
Last updated
over 5 years ago
docker pull svrooij/smartmeter