Page 1 of 1

new p1 meter

Posted: Thursday 04 May 2023 18:54
by pvklink
Hi, Can use some help!
New p1 meter and new solar panels, all wok ok!

Thirst question
blocks['Energie_saldo'] = {
idx: 3079,
title: 'Energie saldo',
width: 2,
last_update: false,
}

I get 7 devices/blocks with content

i tried
blocks['Energie_saldo'] = {
idx: 3079_1,
title: 'Energie saldo',
width: 2,
last_update: false,
}

but that did not work...
What am i missing ?
http://<ip?:82/json.htm?type=devices&rid=3079 gives

{
"ActTime" : 1683218666,
"AstrTwilightEnd" : "23:51",
"AstrTwilightStart" : "03:29",
"CivTwilightEnd" : "21:51",
"CivTwilightStart" : "05:28",
"DayLength" : "15:04",
"NautTwilightEnd" : "22:43",
"NautTwilightStart" : "04:36",
"ServerTime" : "2023-05-04 18:44:26",
"SunAtSouth" : "13:40",
"Sunrise" : "06:07",
"Sunset" : "21:12",
"app_version" : "2023.1 (build 15223)",
"result" :
[
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"Counter" : "30836.572",
"CounterDeliv" : "24.856",
"CounterDelivToday" : "17.541 kWh",
"CounterToday" : "0.549 kWh",
"CustomImage" : 0,
"Data" : "15231350;15605222;10;24846;0;1139",
"Description" : "",
"Favorite" : 0,
"HardwareDisabled" : false,
"HardwareID" : 26,
"HardwareName" : "smartp1meter",
"HardwareType" : "P1 Smart Meter USB",
"HardwareTypeVal" : 4,
"HaveTimeout" : false,
"ID" : "0001",
"LastUpdate" : "2023-05-04 18:44:26",
"Name" : "Power",
"Notifications" : "false",
"PlanID" : "12",
"PlanIDs" :
[
12
],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "Energy",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "P1 Smart Meter",
"TypeImg" : "counter",
"Unit" : 1,
"Usage" : "0 Watt",
"UsageDeliv" : "1139 Watt",
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "3079"
}
],
"status" : "OK",
"title" : "Devices"
}

Re: new p1 meter

Posted: Thursday 04 May 2023 20:48
by Lokonli
3079_1 is a string, so you have to put tick marks around it like:

Code: Select all

idx: '3079_1'

Re: new p1 meter

Posted: Thursday 04 May 2023 21:13
by pvklink
yep , i did that, didnt work

Re: new p1 meter

Posted: Thursday 04 May 2023 21:45
by pvklink
forgot the quotes , ahhhhhhhhhhhhhhhhhhhhhhhhhhh