P1 dial with actual value, needle going into reverse
Posted: Sunday 11 December 2022 19:56
I created two Dashticz dials for my P1 meter, one for the actual nettusage and one for today's nettusage.
After a lot of trial and error I managed to get also the actual value dial working, however, when the value is positive (for example usage without delivery) the needle goes to the right into green instead of left into red.
The default P1 dial shows today's values and in that one, if usage is higher than delivery, the nettusage is negative and goes to the left into red, so the exact opposite direction.
I would like to make behaviour of these dials consistent. I tried scale -1, I tried multiplying the nettusage, reversing the min/max, but nothing works.
Is this possible? How?
A sidenote: if I shows units for the main value in the actual dial is always comes up as KWh, whereas it should be Watt.
Here is my block definition:
After a lot of trial and error I managed to get also the actual value dial working, however, when the value is positive (for example usage without delivery) the needle goes to the right into green instead of left into red.
The default P1 dial shows today's values and in that one, if usage is higher than delivery, the nettusage is negative and goes to the left into red, so the exact opposite direction.
I would like to make behaviour of these dials consistent. I tried scale -1, I tried multiplying the nettusage, reversing the min/max, but nothing works.
Is this possible? How?
A sidenote: if I shows units for the main value in the actual dial is always comes up as KWh, whereas it should be Watt.
Here is my block definition:
Code: Select all
blocks['1_actual'] = {
idx: 1,
title:'P1 actual',
type: 'dial',
values: [
{
label: 'Actual',
value: 'NettUsage',
isNeedle: true,
scale: -1,
unit: 'Watt',
showunit: true
}
],
min: -3000,
max: 3000,
unit: 'Watt',
showring: true,
showunit: false,
shownumber: true,
width:6
}
blocks['1_today'] = {
idx: 1,
title:'P1 today',
type: 'dial',
min: -10,
max: 10,
showring: true,
showunit: true,
shownumber: true,
width: 6
}