
how to share p1 smartmeter usb with HA?
Moderators: leecollings, remb0
-
- Posts: 6
- Joined: Tuesday 27 September 2022 11:42
- Target OS: -
- Domoticz version:
- Contact:
how to share p1 smartmeter usb with HA?
Hi, Is there a possibility to share the P1 usb smartmeter reader, output, which is connected to my rPi and connected to Domoticz with a HA(homeassistant) system running on a different machine in the same LAN? I have ser2net running. Not sure if or how to share the data. Any help would be appreciated. Thanks 

-
- Posts: 6
- Joined: Tuesday 27 September 2022 11:42
- Target OS: -
- Domoticz version:
- Contact:
Re: how to share p1 smartmeter usb with HA?
Ok found out myself. Now I have it both in HA and Domoticz.
Using Ser2net just add a new line to the config:
This is in may config file:
In HA just enter the IP and port in my case: local-ip-address:5001 and off you go!
Using Ser2net just add a new line to the config:
This is in may config file:
Code: Select all
BANNER:banner:\r\nser2net port \p device \d [\s] (Debian GNU/Linux)\r\n\r\n
2000:telnet:600:/dev/ttyS0:9600 8DATABITS NONE 1STOPBIT banner
2001:telnet:600:/dev/ttyS1:9600 8DATABITS NONE 1STOPBIT banner
3000:telnet:600:/dev/ttyS0:19200 8DATABITS NONE 1STOPBIT banner
3001:telnet:600:/dev/ttyS1:19200 8DATABITS NONE 1STOPBIT banner
# Example /etc/ser2net.conf for proxying USB/serial connections to DSMR smart meters
5001:raw:600:/dev/ttyUSB0:115200 NONE 1STOPBIT 8DATABITS XONXOFF LOCAL -RTSCTS
-
- Posts: 612
- Joined: Sunday 01 November 2015 22:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2023.2
- Location: Twente
- Contact:
Re: how to share p1 smartmeter usb with HA?
Interesting.
I have a Domoticz running on the RPI (bullseye) plus a Homeassistant running in Docker on another RPI.
Just installed ser2net on RPI.
Where is ser2net.conf ?
Or use /etc/ser2net.yaml
And how to please.
I have a Domoticz running on the RPI (bullseye) plus a Homeassistant running in Docker on another RPI.
Just installed ser2net on RPI.
Where is ser2net.conf ?
Or use /etc/ser2net.yaml
And how to please.
Bugs bug me.
-
- Posts: 105
- Joined: Saturday 25 November 2017 17:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v3.8153
- Location: Czech Rep.
- Contact:
Re: how to share p1 smartmeter usb with HA?
HA don't have any something like json api to send current state of P1 from Domoticz?
RPi2 Domoticz v 4.10717
10 x Sonoff Basic - ESPeasy
1 x Wemos D1 - ESPeasy
1 x Shelly Plus Plug S
1 x Sonoff S26 - ESPeasy
1 x Shelly 1
1 x MySensors HC-SR04
1 x MySenosrs wifi gateway
1 x RFLink
4x Cam IPC-T240H
10 x Sonoff Basic - ESPeasy
1 x Wemos D1 - ESPeasy
1 x Shelly Plus Plug S
1 x Sonoff S26 - ESPeasy
1 x Shelly 1
1 x MySensors HC-SR04
1 x MySenosrs wifi gateway
1 x RFLink
4x Cam IPC-T240H
Who is online
Users browsing this forum: Bing [Bot] and 1 guest