Page 1 of 1
P1 Smart meter with LAN interface through a raspberry Pi
Posted: Wednesday 14 October 2020 15:27
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?
Re: P1 Smart meter with LAN interface through a raspberry Pi
Posted: Wednesday 14 October 2020 15:31
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.
Re: P1 Smart meter with LAN interface through a raspberry Pi
Posted: Thursday 15 October 2020 19:55
by Jumper3126
Thanks for your tip!! As a continuing raspi beginner, I never got up something so fast myself
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
Re: P1 Smart meter with LAN interface through a raspberry Pi
Posted: Thursday 15 October 2020 20:17
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
Re: P1 Smart meter with LAN interface through a raspberry Pi
Posted: Thursday 15 October 2020 20:20
by sincze