I just bought a new p1-meter, the (youless LS120). And this device collects its values a bit different.
the data of the powersensor, id 3272 = {a,b,c,d,e,f,}
where a= total usage low tarif
where b= total usage high tarif
where c= usage/deliv low tarif
where d= usage/deliv high tarif
where e= current usdage/delivery
where f= unknown
I want to make my dial so that the main value is the current usage
and 3 other values
1. total usage begin of the year (a+b)
2. total delivery/usage (c+d)
3. new adjusted total usage a+b-c-d
I tried some myself, but thsi did not work,
Can Someone give me a hint? , Do i need JS for this to calculate?
Code: Select all
blocks['p1_electra'] = {
idx: '3272', // was 3272
title: 'Electra gebruik',
width: 4,
type: 'dial',
subtype: 'usage', // to show actual power instead of daily energy counter
inverted: true, // Value is positive if energy leaving the house is higher than energy consumption
isSetpoint: false, // waare instellen via de needle
isNeedle: true, // needle follows main value
showring: true,
showunit: true,
shownumbers: true,
showvalue: true, // show mainvalue
values: [
{value: 'Data0+Data1', label: 'Start', unit: 'Watt',scale: 0.1},
{value: 'Data2+Data3', label: 'Total usage/deliv', unit: 'Watt',scale: 0.1},
{value: 'Data0+Data1-Data2-Data3', label: 'New Total', unit: 'Watt',scale: 0.1},
],
color: 'white',
flash: false,
last_update: true,
decimals: 0,
animation: false,
fixed: false, // removes needle and data
hide_data: true,
min: -5000,
max: 5000,
}