P1 meter results are not showing
Posted: Tuesday 10 February 2015 0:18
Hi,
I have a P1 DIY cable... which after some tweaking in python I got working to read out..
also the commandline nicely shows my output...
cu -l /dev/ttyUSB0 -s 9600 --parity=none
Connected.
<COMMENTED OUT>
0-0:96.1.1(39373936353532302020202020202020)
1-0:1.8.1(06389.574*kWh)
1-0:1.8.2(08383.062*kWh)
1-0:2.8.1(00000.000*kWh)
1-0:2.8.2(00000.000*kWh)
0-0:96.14.0(0001)
1-0:1.7.0(0000.53*kW)
1-0:2.7.0(0000.00*kW)
0-0:17.0.0(999*A)
0-0:96.3.10(1)
0-0:96.13.1()
0-0:96.13.0()
0-1:96.1.0(3238303131303038323033333632313132)
0-1:24.1.0(03)
0-1:24.3.0(150210000000)(00)(60)(1)(0-1:24.2.0)(m3)
(04293.080)
0-1:24.4.0(1)
!
so I know the cable is working... however in domoticz I only get 0 values for both my gas and electricity.
I added hardware
P1 Smart Meter USB Setup
(on the right USB port)
and activated the devices...
however all the returned values are 0.
I checked the json interface:
and
Any help on how to troubleshoot this?
I could create my python script to call the json and create virtual devices.... but would be great if it worked out of the box
I have a P1 DIY cable... which after some tweaking in python I got working to read out..
also the commandline nicely shows my output...
cu -l /dev/ttyUSB0 -s 9600 --parity=none
Connected.
<COMMENTED OUT>
0-0:96.1.1(39373936353532302020202020202020)
1-0:1.8.1(06389.574*kWh)
1-0:1.8.2(08383.062*kWh)
1-0:2.8.1(00000.000*kWh)
1-0:2.8.2(00000.000*kWh)
0-0:96.14.0(0001)
1-0:1.7.0(0000.53*kW)
1-0:2.7.0(0000.00*kW)
0-0:17.0.0(999*A)
0-0:96.3.10(1)
0-0:96.13.1()
0-0:96.13.0()
0-1:96.1.0(3238303131303038323033333632313132)
0-1:24.1.0(03)
0-1:24.3.0(150210000000)(00)(60)(1)(0-1:24.2.0)(m3)
(04293.080)
0-1:24.4.0(1)
!
so I know the cable is working... however in domoticz I only get 0 values for both my gas and electricity.
I added hardware
P1 Smart Meter USB Setup
(on the right USB port)
and activated the devices...
however all the returned values are 0.
I checked the json interface:
Code: Select all
{
5MinuteHistoryDays: 1,
ActTime: 1423523747,
AllowWidgetOrdering: true,
DashboardType: 0,
Latitude: <COMMEnteD OUt>,
Longitude: <COMMEnteD OUt>,
MobileType: 0,
TempScale: 1,
TempSign: "C",
WindScale: 1,
WindSign: "m/s",
dontcachehtml: true,
result: [
{
BatteryLevel: 255,
Counter: "0.000",
CounterDeliv: "0.000",
CounterDelivToday: "0.000 kWh",
CounterToday: "0.000 kWh",
CustomImage: 0,
Data: "0;0;0;0;0;0",
Favorite: 0,
HardwareID: 5,
HardwareName: "Smartmeter",
HaveTimeout: false,
ID: "1",
LastUpdate: "2015-02-10 00:15:45",
Name: "Smartmeter - Electro",
Notifications: "false",
PlanID: "0",
Protected: false,
SignalLevel: 12,
SubType: "Energy",
SwitchTypeVal: 0,
Timers: "false",
Type: "P1 Smart Meter",
TypeImg: "counter",
Unit: 1,
Usage: "0 Watt",
UsageDeliv: "0 Watt",
Used: 1,
XOffset: "0",
YOffset: "0",
idx: "17"
}
],
status: "OK",
title: "Devices"
}
Code: Select all
{
5MinuteHistoryDays: 1,
ActTime: 1423523841,
AllowWidgetOrdering: true,
DashboardType: 0,
Latitude: "51.994260",
Longitude: "4.469550",
MobileType: 0,
TempScale: 1,
TempSign: "C",
WindScale: 1,
WindSign: "m/s",
dontcachehtml: true,
result: [
{
BatteryLevel: 255,
Counter: "0.000",
CounterToday: "0.000 m3",
CustomImage: 0,
Data: "0",
Favorite: 0,
HardwareID: 5,
HardwareName: "Smartmeter",
HaveTimeout: false,
ID: "1",
LastUpdate: "2015-02-10 00:14:15",
Name: "Smartmeter - Gas",
Notifications: "false",
PlanID: "0",
Protected: false,
SignalLevel: 12,
SubType: "Gas",
SwitchTypeVal: 1,
Timers: "false",
Type: "P1 Smart Meter",
TypeImg: "counter",
Unit: 2,
Used: 1,
XOffset: "0",
YOffset: "0",
idx: "18"
}
],
status: "OK",
title: "Devices"
}
I could create my python script to call the json and create virtual devices.... but would be great if it worked out of the box
