P1 notifications incorrect

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
RezzZ
Posts: 18
Joined: Friday 15 September 2017 17:33
Target OS: Raspberry Pi
Domoticz version:
Contact:

P1 notifications incorrect

Post by RezzZ » Saturday 21 July 2018 16:26

Hi all, running Domoticz 4.9700 and recently enabled daily power usage notifications for my P1 smartmeter.

I setup the following rule:

Code: Select all

TYPE	WHEN		ACTIVE SYSTEMS	CUSTOM MESSAGE		PRIORITY	IGNORE INTERVAL	RECOVERY
Today	Greater 0 kWh	http		$name today: $value kWh	Normal		No		No
My power usage table (in domoticz) looks as follow:

Code: Select all

DateTime		Usage 1	Usage 2
2018-07-06 00:00:00	2.434	9.202 . (sum=11636)
2018-07-07 00:00:00	14.214	0
2018-07-08 00:00:00	14.526	0
2018-07-09 00:00:00	2.928	9.354 . (sum=12282)
the sums are correctly displayed in the log, but I received the following notifications at midnight in Telegram:

Domoticz, [07.07.18 00:00]
Power today: 7.6 kWh

Domoticz, [08.07.18 00:00]
Power today: 19.3 kWh

Domoticz, [09.07.18 00:00]
Power today: 20.2 kWh

Domoticz, [10.07.18 00:00]
Power today: 7.6 kWh

As you can see, none of them match what Domoticz is displaying.

looking at the database I notice the following:

Code: Select all

DeviceRowID	Value1	Value2	Value3	Value4	Value5	Value6	Counter1	Counter2	Counter3	Counter4	Date
104		14526	0	5715	0	0	0	2362215		0		1760320		0		2018-07-08
104		2928	0	4667	0	9354	0	2365169		0		1769674		0		2018-07-09
Values 1 and 5 are the values for Usage 1 and 2 and those match what Domoticz is displaying.
I already learned that the values1-6 are labeled:
value1 = powerusage1
value2 = powerdeliv1
value3 = usagecurrent
value4 = delivcurrent
value5 = powerusage2
value6 = powerdeliv2
But, at least for me, the value 3 also has a value and in the weekend this values is added to the sum of usage1 and 2 (only for the notification), and during weekdays the value3 is subtracted from the sum of usage 1 and 2:
07-08: 14526 (v1) + 5715 (v3) + 0 (v5) = 20241 (matches the 20.2 kWh reported to Telegram)
07-09: 2928 (v1) - 4667 (v3) + 9354 (v5) = 7615 (matches the 7.6 kWh reported to Telegram)

Am I missing something, doing something wrong, or...?

RezzZ
Posts: 18
Joined: Friday 15 September 2017 17:33
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: P1 notifications incorrect

Post by RezzZ » Wednesday 08 August 2018 14:09

nobody else with incorrect $value (telegram) notifications for the P1 smart meter?

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests