Page 1 of 1

P1 smartmeter presentation issues

Posted: Sunday 17 January 2021 12:22
by krej
I'm feeding production/consumption data from a Fronius Smartmeter into a virtual P1 SmartMeter device in Domoticz. I see several issues with the presentation of data.

I feed positive values for CONS and PROD to the device, still it displays negative values on the dashboard for CONS-umption.

Image

Checking the database, the values are indeed positive, (3146 and 1206), and should be displayed as such.

sqlite> select * from multimeter where devicerowid=505 order by date desc limit 10;
505|9941083|15412669|3146|1206|0|0|2021-01-17 11:50:00

Second problem; the log graph of the P1 have incorrect units. This graph:

Image

shows the the values for CONS-umed and PROD-uced power, however the unit for the blue (CONS) graph is incorrectly Wh - it should be Watt and plotted using the same scale as PROD.

The description "Energy usage" is also wrong, it's not energy but power that is graphed. I suggest that the label is changed to "Usage 1".

Re: P1 smartmeter presentation issues

Posted: Monday 18 January 2021 8:10
by ccaru
I am also attempting to update a P1 Virtual meter and having somewhat similar issues.
The documentation states the following:
updateP1(usage1, usage2, return1, return2, cons, prod)
My meter for some reason doesn't distinguish 2 rates (it reports 1.8.0 only not 1.8.1/1.8.2), so I am updating as following:
usage1 = Total KWh on meter (1.8.0)
usage2 = 0
return1 = Total Kwh return (not important for me as i don't generate anything and this is basically 0)
return2 = 0
cons = current consumption in W
prod = 0

the chart that is being generated is not looking right
Log.jpg
Log.jpg (51 KiB) Viewed 515 times
I could not find any further documentation that verifies whether I have set up these parameters correctly. Today I am trying to switch them around, but if there is anybody out there who can shed some light what usage1 and cons should be, and what are the units expected, it would be great.

Re: P1 smartmeter presentation issues

Posted: Wednesday 20 January 2021 8:11
by ccaru
The issue above was due to the fact i was sending KWH in the first set (Usage1/2) but W for PROD/CONS. Now I changed to WH and entered a divider of 1000 in Domoticz Setup and it seems to display better.