Getting counter data from p1 Topic is solved

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Getting counter data from p1

Post by EdwinK »

Hi,

I want to have the following. My P1 meter has a data field

Data: "6132890;5945574;0;0;313;0",
result: [
{
AddjMulti: 1,
AddjMulti2: 1,
AddjValue: 0,
AddjValue2: 0,
BatteryLevel: 255,
Counter: "12078.464",
CounterDeliv: "0.000",
CounterDelivToday: "0.000 kWh",
CounterToday: "3.735 kWh",
CustomImage: 0,
Data: "6132890;5945574;0;0;313;0",
Description: "",
Favorite: 1,
HardwareDisabled: false,
HardwareID: 2,
HardwareName: "P1 meter",
HardwareType: "P1 Smart Meter USB",
HardwareTypeVal: 4,
HaveTimeout: false,
ID: "0001",
LastUpdate: "2021-03-06 12:26:35",
Name: "P1 Elektra",
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: "313 Watt",
UsageDeliv: "0 Watt",
Used: 1,
XOffset: "0",
YOffset: "0",
idx: "1"
}
],
Something like this would be ideal.

2meterstand.jpg
2meterstand.jpg (65.7 KiB) Viewed 370 times
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Getting counter data from p1

Post by Lokonli »

You will get something like this in the next beta.

Sent from my SM-A320FL using Tapatalk

User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Getting counter data from p1

Post by HansieNL »

Maybe for now you can use the following codes (change 274 and 320 to your own IDX):

Code: Select all

blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Meterstanden'

blocks['274_8'] = {
	idx: '274_8',
	title: 'Meterstand laag',
}
blocks['274_7'] = {
	idx: '274_7',
	title: 'Meterstand normaal',
}
blocks['320_2'] = {
	idx: '320_2',
	title: 'Meterstand',
}

Code: Select all

columns[1] = {}
columns[1]['blocks'] = ['blocktitle_1','274_8','274_7','320_2']
columns[1]['width'] = 5;
Blah blah blah
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Getting counter data from p1

Post by EdwinK »

Lokonli wrote: Sunday 07 March 2021 0:12 You will get something like this in the next beta.

Sent from my SM-A320FL using Tapatalk
Thanks :)
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Getting counter data from p1

Post by EdwinK »

HansieNL wrote: Sunday 07 March 2021 10:27 Maybe for now you can use the following codes (change 274 and 320 to your own IDX):

Code: Select all

blocks['blocktitle_1'] = {}
blocks['blocktitle_1']['type'] = 'blocktitle';
blocks['blocktitle_1']['title'] = 'Meterstanden'

blocks['274_8'] = {
	idx: '274_8',
	title: 'Meterstand laag',
}
blocks['274_7'] = {
	idx: '274_7',
	title: 'Meterstand normaal',
}
blocks['320_2'] = {
	idx: '320_2',
	title: 'Meterstand',
}

Code: Select all

columns[1] = {}
columns[1]['blocks'] = ['blocktitle_1','274_8','274_7','320_2']
columns[1]['width'] = 5;
Lokonli wrote: Sunday 07 March 2021 0:12 You will get something like this in the next beta.

Sent from my SM-A320FL using Tapatalk
Thanks :) Will try it latertoday.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest