Page 1 of 1

Voltage logging for built in P1 logging script

Posted: Thursday 11 October 2018 23:18
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.

Re: Voltage logging for built in P1 logging script

Posted: Friday 16 November 2018 0:29
by roblom
Nobody?

Re: Voltage logging for built in P1 logging script

Posted: Monday 22 April 2019 11:25
by roblom
Still nobody knows?

Re: Voltage logging for built in P1 logging script

Posted: Monday 20 May 2019 0:03
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.

Re: Voltage logging for built in P1 logging script

Posted: Monday 20 May 2019 7:16
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.

Re: Voltage logging for built in P1 logging script

Posted: Monday 20 May 2019 8:45
by assenzuid
Interesting, I have only Energy, Gas, Usage L1 and deliver L1. No grid voltage.

Any idea how to show the Grid Voltage?

Re: Voltage logging for built in P1 logging script

Posted: Monday 20 May 2019 9:50
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.

Re: Voltage logging for built in P1 logging script

Posted: Monday 20 May 2019 20:12
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.

Re: Voltage logging for built in P1 logging script

Posted: Monday 20 May 2019 22:00
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.

Re: Voltage logging for built in P1 logging script

Posted: Monday 20 May 2019 23:18
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)