Im looking for a way to split up my P1 meter in used and recieved (from solar).
This is the output from the P1 device.
Code: Select all
{
"ActTime" : 1559633492,
"AstrTwilightEnd" : "00:00",
"AstrTwilightStart" : "00:00",
"CivTwilightEnd" : "22:46",
"CivTwilightStart" : "04:33",
"DayLength" : "16:36",
"NautTwilightEnd" : "00:02",
"NautTwilightStart" : "03:16",
"ServerTime" : "2019-06-04 09:31:32",
"SunAtSouth" : "13:39",
"Sunrise" : "05:21",
"Sunset" : "21:57",
"app_version" : "4.10854",
"result" : [
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"Counter" : "11640.097",
"CounterDeliv" : "159.898",
"CounterDelivToday" : "0.024 kWh",
"CounterToday" : "3.398 kWh",
"CustomImage" : 0,
"Data" : "5951794;5688303;41891;118007;297;0;",
"Description" : "",
"Favorite" : 0,
"HardwareID" : 14,
"HardwareName" : "Toon2",
"HardwareType" : "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal" : 15,
"HaveTimeout" : false,
"ID" : "1459F",
"LastUpdate" : "2019-06-04 09:31:01",
"Name" : "Stroom 2",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" : [ 0 ],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "Energy",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "P1 Smart Meter",
"TypeImg" : "counter",
"Unit" : 1,
"Usage" : "297 Watt",
"UsageDeliv" : "0 Watt",
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "1359"
}
],
"status" : "OK",
"title" : "Devices"
}
Any help is much appreciated.