P1 Smart meter with LAN interface through a raspberry Pi

Moderator: leecollings

Post Reply
Jumper3126
Posts: 105
Joined: Thursday 31 December 2015 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

P1 Smart meter with LAN interface through a raspberry Pi

Post by Jumper3126 »

I relocated my NAS running domoticz so I cant direcly connect it to the smart meter via P1 with USB. I do have a raspberry pi near the smart meter, to which I can connect the P1 USB cable. Instead of installing domoticz on it and letting domoticz forward the info from the smart meter to my NAS, is it possible to install P1 smart meter with LAN interface on my NAS and let it connect to the raspberry near my smart meter using its IP adress? How would I make the P1 data available for the NAS to read it?
User avatar
sincze
Posts: 1299
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: P1 Smart meter with LAN interface through a raspberry Pi

Post by sincze »

Jumper3126 wrote: Wednesday 14 October 2020 15:27 I relocated my NAS running domoticz so I cant direcly connect it to the smart meter via P1 with USB. I do have a raspberry pi near the smart meter, to which I can connect the P1 USB cable. Instead of installing domoticz on it and letting domoticz forward the info from the smart meter to my NAS, is it possible to install P1 smart meter with LAN interface on my NAS and let it connect to the raspberry near my smart meter using its IP adress? How would I make the P1 data available for the NAS to read it?

Deploy Ser2net on the pi and have domoticz connect to p1 over lan ;-) works like a charm.
:D
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Jumper3126
Posts: 105
Joined: Thursday 31 December 2015 15:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: P1 Smart meter with LAN interface through a raspberry Pi

Post by Jumper3126 »

Thanks for your tip!! As a continuing raspi beginner, I never got up something so fast myself :D

Code: Select all

sudo apt install ser2net -y
sudo nano /etc/ser2net.conf
	3003:raw:600:/dev/ttyUSB0:115200
based on https://www.jpaul.me/2019/01/how-to-bui ... h-ser2net/

I assume the most correct way to have it functional from the start would be crontab, correct?

Code: Select all

@reboot /bin/sleep 60 ; sudo ser2net
User avatar
sincze
Posts: 1299
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: P1 Smart meter with LAN interface through a raspberry Pi

Post by sincze »

Option 1:
I would go for run as a service. ;-)
For inspiration: https://github.com/leesy24/BBB_Web_Mana ... or-ser2net

or

Option 2:

sudo nano /etc/rc.local

add the next line before exit o :
/usr/local/sbin/ser2net -n
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
User avatar
sincze
Posts: 1299
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

Re: P1 Smart meter with LAN interface through a raspberry Pi

Post by sincze »

Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest