P1 meteradapter - works for all but one electricity-flow

If your (rooted) Toon doesn't do what it's supposed to, post here. Dutch allowed / Posten in 't Nederlands toegestaan.

Moderators: marcelr, TheHogNL, TerrorSource, Toonz

P1 meteradapter - works for all but one electricity-flow

Postby Henk-JanS » Mon Apr 29, 2019 11:02 am

I have an interesting issue that started after my Toon was rooted about 1 1/2 year ago.

My Toon works great, and during day-time it shows the current electricity usage. However, after 23:00 and before 7:00 ("daluren"), no electricity/power consumption is show: the display just shows 0 Watt. In hdrv_zwave, this would be the elec_delivered_lt parameter. When manually retreived, it shows 7894 kWh, with a flow of 225 Watt - and it does so for months on end.

The odd thing is that the three other power flows (elec_delivered_nt, elec_received_nt and elec_received_lt) all work flawlessly. To me that indicated that the P1 meter adapter connected to my smart meter is ok, or at least that the problem is more likely to be a software issue. The connection from Toon to the meter adapter is good, and I have in the past removed the P1 adapter from the Toon settings and added it again.

I use a script to write the power consumption (or generation) to file once an hour:

Code: Select all
#!/usr/bin/php
<?php
$file_string_fibaro = file_get_contents('http://192.168.1.11:10080/hdrv_zwave?action=getDevices.json');
$parsed_json = json_decode($file_string_fibaro, true);

$fibarodev63name=$parsed_json['dev_6.3']['type'];
$fibarodev63quant=$parsed_json['dev_6.3']['CurrentElectricityQuantity'];
$fibarodev63flow=$parsed_json['dev_6.3']['CurrentElectricityFlow'];
$fibarodev64name=$parsed_json['dev_6.4']['type'];
$fibarodev64quant=$parsed_json['dev_6.4']['CurrentElectricityQuantity'];
$fibarodev64flow=$parsed_json['dev_6.4']['CurrentElectricityFlow'];
$fibarodev65name=$parsed_json['dev_6.5']['type'];
$fibarodev65quant=$parsed_json['dev_6.5']['CurrentElectricityQuantity'];
$fibarodev65flow=$parsed_json['dev_6.5']['CurrentElectricityFlow'];
$fibarodev66name=$parsed_json['dev_6.6']['type'];
$fibarodev66quant=$parsed_json['dev_6.6']['CurrentElectricityQuantity'];
$fibarodev66flow=$parsed_json['dev_6.6']['CurrentElectricityFlow'];

$fib63reduced = substr($fibarodev63quant,0,-6);
$fib64reduced = substr($fibarodev64quant,0,-6);
$fib65reduced = substr($fibarodev65quant,0,-6);
$fib66reduced = substr($fibarodev66quant,0,-6);

echo date("d-m-y,H:i:s,"),date("U") . ",$fibarodev63name,$fib63reduced,$fibarodev63flow\n";
echo date("d-m-y,H:i:s,"),date("U") . ",$fibarodev65name,$fib65reduced,$fibarodev65flow\n";
echo date("d-m-y,H:i:s,"),date("U") . ",$fibarodev64name,$fib64reduced,$fibarodev64flow\n";
echo date("d-m-y,H:i:s,"),date("U") . ",$fibarodev66name,$fib66reduced,$fibarodev66flow\n";
?>


The output of this script is at the moment:

Code: Select all
29-04-19,09:14:01,1556529241,elec_delivered_nt,10507,0.00
29-04-19,09:14:01,1556529241,elec_delivered_lt,7894,225.00
29-04-19,09:14:01,1556529241,elec_received_nt,721,1796.00
29-04-19,09:14:01,1556529241,elec_received_lt,301,0.00


It's the second line that is the issue. This value will remain at 7894 kWh and 225 Watt until I manually unplug/replug the P1 adapter. The third line shows my solar panels feeding 1796 Watts back into the network.

My hdrv_zwave output:

Code: Select all
{"dev_settings_device": {"uuid": "eneco-001-098333:hdrv_zwave_73323C65691", "name": "settings_device", "internalAddress": "settings_device", "type": "settings_device"}, "dev_4": {"uuid": "eneco-001-098333:hdrv_zwave_7335CFF6ABF", "name": "Dressoir", "internalAddress": "4", "type": "FGWP011", "supportsCrc": "0", "ccList": "72 86 70 85 8e 25 73 32 31 7a", "supportedCC": "72 86 70 85 8e 25 73 32 31 7a", "nodeFlags": [], "TargetStatus": "0", "CurrentElectricityFlow": "0.00", "CurrentElectricityQuantity": "399290.00", "IsConnected": "1", "HealthValue": "10", "DeviceName": ""}, "dev_6": {"uuid": "536ab4cf-1c39-4877-8c8c-eb01110dc6c1", "name": "HAE_METER_v2", "internalAddress": "6", "type": "HAE_METER_v2", "supportsCrc": "1", "ccList": "22 3c 3d 3e 56 60 70 72 7a 86 8b 73", "supportedCC": "22 3c 3d 3e 56 60 70 72 7a 86 8b 73", "nodeFlags": [], "IsConnected": "1", "DeviceName": "", "HealthValue": "10"}, "dev_6.1": {"uuid": "5bc9c919-9b34-4494-8e80-82c172bd4b9f", "name": "HAE_METER_v2_1", "internalAddress": "6.1", "type": "gas", "supportsCrc": "0", "ccList": "3c 3d 3e 72 86", "supportedCC": "3c 3d 3e 72 86", "nodeFlags": [], "CurrentGasFlow": "0.00", "CurrentGasQuantity": "6942646.00", "DeviceName": ""}, "dev_6.2": {"uuid": "e85d767f-ef27-45e5-9a48-e90ebec139d1", "name": "HAE_METER_v2_2", "internalAddress": "6.2", "type": "elec", "supportsCrc": "0", "ccList": "3c 3d 3e 72 86", "supportedCC": "3c 3d 3e 72 86", "nodeFlags": [], "CurrentElectricityFlow": "NaN", "CurrentElectricityQuantity": "NaN", "DeviceName": ""}, "dev_6.3": {"uuid": "986dcc78-b837-4f39-aed5-81a8a65fdded", "name": "HAE_METER_v2_3", "internalAddress": "6.3", "type": "elec_delivered_nt", "supportsCrc": "0", "ccList": "3c 3d 3e 72 86", "supportedCC": "3c 3d 3e 72 86", "nodeFlags": [], "CurrentElectricityFlow": "0.00", "CurrentElectricityQuantity": "10507177.00", "DeviceName": ""}, "dev_6.4": {"uuid": "d4a1eef3-981f-40e5-87f6-2519b7d32ac0", "name": "HAE_METER_v2_4", "internalAddress": "6.4", "type": "elec_received_nt", "supportsCrc": "0", "ccList": "3c 3d 3e 72 86", "supportedCC": "3c 3d 3e 72 86", "nodeFlags": [], "CurrentElectricityFlow": "2488.00", "CurrentElectricityQuantity": "721683.00", "DeviceName": ""}, "dev_6.5": {"uuid": "d3872e1f-3f1e-4913-a15c-cd0ff8acf967", "name": "HAE_METER_v2_5", "internalAddress": "6.5", "type": "elec_delivered_lt", "supportsCrc": "0", "ccList": "3c 3d 3e 72 86", "supportedCC": "3c 3d 3e 72 86", "nodeFlags": [], "CurrentElectricityFlow": "225.00", "CurrentElectricityQuantity": "7894065.00", "DeviceName": ""}, "dev_6.6": {"uuid": "2801e618-0f25-42d1-9f48-14efe2ae032a", "name": "HAE_METER_v2_6", "internalAddress": "6.6", "type": "elec_received_lt", "supportsCrc": "0", "ccList": "3c 3d 3e 72 86", "supportedCC": "3c 3d 3e 72 86", "nodeFlags": [], "CurrentElectricityFlow": "0.00", "CurrentElectricityQuantity": "301766.00", "DeviceName": ""}, "dev_7": {"uuid": "55b3fbb9-24fb-4d97-bc91-3e41c029dd4a", "name": "Staande Lamp", "internalAddress": "7", "type": "unknown", "supportsCrc": "0", "ccList": "5e 72 86 85 59 5a 73 70 25 27 71 32 20", "supportedCC": "5e 72 86 85 59 5a 73 70 25 27 71 32 20", "nodeFlags": [], "IsConnected": "1", "DeviceName": "", "TargetStatus": "0", "CurrentState": "0", "HealthValue": "10"}, "dev_9": {"uuid": "cb93778b-81ce-44be-8c25-108e2877be15", "name": "Webcam", "internalAddress": "9", "type": "unknown", "supportsCrc": "0", "ccList": "5e 72 86 85 59 5a 73 70 25 27 71 32 20", "supportedCC": "5e 72 86 85 59 5a 73 70 25 27 71 32 20", "nodeFlags": [], "IsConnected": "1", "DeviceName": "", "TargetStatus": "1", "CurrentState": "1", "HealthValue": "1"}, "dev_10": {"uuid": "3e1adac5-3b55-4b92-b97e-94138b8ef7a3", "name": "Boot", "internalAddress": "10", "type": "NAS_WR01Z", "supportsCrc": "0", "ccList": "5e 72 86 85 59 5a 73 70 25 27 71 32 20", "supportedCC": "5e 72 86 85 59 5a 73 70 25 27 71 32 20", "nodeFlags": [], "IsConnected": "1", "HealthValue": "10", "DeviceName": "", "TargetStatus": "0", "CurrentElectricityFlow": "0.00", "CurrentElectricityQuantity": "10160.00"}}


Would anybody have a clue what causes this? Is there logging on the Toon that could indicate the source of the problem?

Update: I rebooted the Toon, and that caused the reading of the elec-delivered_lt to refresh. That doesn't imply that the issue is resolved: it suggests (to me at least) that the P1 adapter works and measures power properly, and that somewhere in the Toon it doesn't refresh.

Code: Select all
29-04-19,11:28:40,1556537320,elec_delivered_nt,10507,0.00
29-04-19,11:28:40,1556537320,elec_delivered_lt,7958,0.00
29-04-19,11:28:40,1556537320,elec_received_nt,725,797.00
29-04-19,11:28:40,1556537320,elec_received_lt,301,0.00
Henk-JanS
Starting Member
Starting Member
 
Posts: 11
Joined: November 2017

Return to Toon issues and support (Nederlands toegestaan)

Who is online

Users browsing this forum: No registered users and 1 guest