Page 1 of 1

Different values from P1 Wifi Gateway and Domoticz

Posted: Sunday 21 April 2019 22:43
by pgielen
Since yesterday, I installed the P1 smart meter Wifi Gateway. However, after 1 day, I see inexplicable differences between the values the Gateway software reports and those in Domoticz.

The P1 Wifi gateway reports:
Total usage tariff 1: (nothing)
Total usage tariff 2: 10.196*kWh
Delivered tariff 1: 40.010*kWh
Delivered tariff 2: 29.243*kWh
Total gas usage : 3.897*m3

Domoticz reports:
Today: 3.130kWh, 26.786
Return: Today: 19.265kWh, 69.253
Current usage: 358 kWh
Total gas usage: 0,384

The values are so far apart that they are totally unusable to get an idea of the real usage and delivery. Also, the gas usage values show a small, but strange difference. Which values should I believe???

Double tariff P1 smart meter not handled correctly by Domoticz

Posted: Wednesday 24 April 2019 8:25
by pgielen
The problem is becoming more clear now: Domoticz does not handle double tariff meters like my Sagemcom X210 correctly. It should not only create L1 and T1 devices, but also L2 and T2 and the totals should be handled accordingly.

I checked the new firmware version of the P1 Wifi gateway that was published today. It sends the data of my smart meter (a Sagemcom X210) correctly to Domoticz. Data format of the ‘Electricity’ device as shown in the log is:

Code: Select all

29406;13650;59498;46127;240;0
These values are:

Code: Select all

T1, T2, L1, L2,U1,D1

Where:
T1 = Total Delivery during the day (high tariff)
T2 = Total Delivery during the night (low tariff)
L1 = Total Use during the day (high tariff)
L2 = Total Use during the night (low tariff)
U1 = Current power usage
D1= Current power delivered by the solar panels

T2 and L2 are totally ignored by Domoticz. I also installed the new update to 4.10618 today, but that did not solve the issue…

Re: Different values from P1 Wifi Gateway and Domoticz

Posted: Wednesday 24 April 2019 8:39
by pgielen
I think a simple hack would be to add L1=L1+L2 and T1=T1+T2 somewhere in the Domoticz code, since tariffs do not really differ (at least not in my case). My C is a little rusty though...

Re: Different values from P1 Wifi Gateway and Domoticz

Posted: Wednesday 24 April 2019 8:51
by gizmocuz
Sure we handle L2 and T2, how does your chart/report look ?
(Also wait at least a day)

Here some samples:
Graph
Graph
P1_Graph.png (28.09 KiB) Viewed 1475 times
Report
Report
P2_Report.png (11.93 KiB) Viewed 1475 times

Re: Different values from P1 Wifi Gateway and Domoticz

Posted: Friday 26 April 2019 11:50
by pgielen
I am just starting to understand how it works. The Domoticz Device Electricity shows the totals correctly: Usage 1 Usage 2, Return 1 and Return 2. This is also the case in my setup, so I consider this topic as solved.

However, Domoticz creates only one Usage Device and only one Delivery Device, both showing only one tariff. That was the source of my confusion. Now I guess that these Devices the values for current delivery and current usage provided by the smart meter, which are not split up in two tariffs. There is something strange about them however, for which I will open a new topic.