Voltage logging for built in P1 logging script

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
roblom
Posts: 408
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Voltage logging for built in P1 logging script

Post by roblom »

Because in my region the grid voltage sometimes gets so high (around 250v) the inverter of my solar panels shuts off.
So I was wondering why this voltage isn't being logged by the built in P1 logger script in Domoticz? Hopefully someone can add this to the script.
Last edited by roblom on Thursday 11 October 2018 23:18, edited 1 time in total.
roblom
Posts: 408
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: Voltage logging for built in P1 logging script

Post by roblom »

Nobody?
roblom
Posts: 408
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: Voltage logging for built in P1 logging script

Post by roblom »

Still nobody knows?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Voltage logging for built in P1 logging script

Post by waaren »

roblom wrote: Monday 22 April 2019 11:25 Still nobody knows?
Not sure to what script you refer. The P1 readout is coded in the core domoticz program.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
roblom
Posts: 408
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: Voltage logging for built in P1 logging script

Post by roblom »

That's the script I meant, but in the mean time I found out that my meter is an older one which strange enough doesn't Log the voltage.
assenzuid
Posts: 135
Joined: Friday 13 November 2015 9:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands, Emmen Area
Contact:

Re: Voltage logging for built in P1 logging script

Post by assenzuid »

Interesting, I have only Energy, Gas, Usage L1 and deliver L1. No grid voltage.

Any idea how to show the Grid Voltage?
Toulon7559
Posts: 858
Joined: Sunday 23 February 2014 17:56
Target OS: Raspberry Pi / ODroid
Domoticz version: mixed
Location: Hengelo(Ov)/NL
Contact:

Re: Voltage logging for built in P1 logging script

Post by Toulon7559 »

Doubt that grid Voltage is included in the standard P1-protocol.
At least not contained in this protocol description

If not available from the Smart Meter's P1 port, you have to find another data-source.
Often PV-inverters and PV-Loggers have this info as part of the package at their data-interface.
Also available from most kWh-meters with RS485-interface.
Set1 = RPI-Zero+RFXCom433+S0PCM+Shield for BMP180/DS18B20/RS485+DDS238-1ZNs
Set2 = RPI-3A++RFLinkGTW+ESP8266s+PWS_WS7000
Common = KAKUs+3*PVLogger+PWS_TFA_Nexus
plus series of 'satellites' for dedicated interfacing, monitoring & control.
roblom
Posts: 408
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

Re: Voltage logging for built in P1 logging script

Post by roblom »

Toulon7559 wrote:Doubt that grid Voltage is included in the standard P1-protocol.
At least not contained in this protocol description

If not available from the Smart Meter's P1 port, you have to find another data-source.
Often PV-inverters and PV-Loggers have this info as part of the package at their data-interface.
Also available from most kWh-meters with RS485-interface.
That's probably because that's the document for the old meters.
Here is a more recent version
https://www.netbeheernederland.nl/_uplo ... fce1f1.pdf

The net voltage is becoming more important because a high net voltage is an indication of an overloaded network. That fact isn't new so I found it strange that they didn't thought of it before to log this.
assenzuid
Posts: 135
Joined: Friday 13 November 2015 9:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands, Emmen Area
Contact:

Re: Voltage logging for built in P1 logging script

Post by assenzuid »

I already use one of my UPS as data-source, but closer to the source always better.

Attached a sample of my UPS and the voltage recorded.
Attachments
chart.png
chart.png (100.9 KiB) Viewed 1651 times
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Voltage logging for built in P1 logging script

Post by waaren »

roblom wrote: Monday 20 May 2019 7:16 That's the script I meant, but in the mean time I found out that my meter is an older one which strange enough doesn't Log the voltage.
In the P1 source you will see that that the voltage handling is already in.
Unfortunate voltage is only included in DSMRv5 and my meter is of type DSMRv4.2.

Confirmed by reading the meter with

Code: Select all

cu -l /dev/ttyUSB-P1 -s 115200 --parity=none -E q

1-3:0.2.8(42)
0-0:1.0.0(190520225948S)
0-0:96.1.1(4530303235313030303234363334313135)
1-0:1.8.1(007535.446*kWh)
1-0:1.8.2(005470.879*kWh)
1-0:2.8.1(003243.875*kWh)
1-0:2.8.2(007359.075*kWh)
0-0:96.14.0(0002)
1-0:1.7.0(00.490*kW)
1-0:2.7.0(00.000*kW)
0-0:96.7.21(00009)
0-0:96.7.9(00004)
1-0:99.97.0(1)(0-0:96.7.19)(000101000001W)(2147483647*s)
1-0:32.32.0(00000)
1-0:32.36.0(00000)
0-0:96.13.1()
0-0:96.13.0()
1-0:31.7.0(004*A)
1-0:21.7.0(00.490*kW)
1-0:22.7.0(00.000*kW)
0-1:24.1.0(003)
0-1:96.1.0(4730303032333430313938393636393135)
0-1:24.2.1(190520220000S)(02723.313*m3)

Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest