Page 1 of 1

How to show total power usage

Posted: Friday 31 March 2023 10:17
by peterspieg
Hello,

At our rowing club, we have a three phase power connection. In Domoticz they show as "Usage L1", "Usage L2"and "Usage L3". There is also some data named "Power combine". The data from the Power Combine is "15996038;18991796;0;0;348;0" I don't know what these numbers mean.

Image

Image


I created a graph where it is possible to combine L1, L2, L3 and create a total usage bar. But I would like to see the Power Combine also at the top.

Image
This is the code I used:
Spoiler: show
blocks['graph'] = {
title: 'Totaalverbruik',
devices: [10,11,12],
graph: ['bar'],
custom : {"Vandaag": {
range: 'day',
filter: '30 minutes',
data: {
Totaal: 'd.u_10+d.u_11+d.u_12',
L1: 'd.u_10',
L2: 'd.u_11',
L3: 'd.u_12',
}
}
},
legend: true,
datasetColors:['red','yellow','blue','green'],
width: 12,
}
Next question: Is there a block available that I can use to show the numbers from L1, L2, L3 and Power Combined?
In my vision, it is better to see just the numbers, than a graph. But, if one of the board members wants the graph I already have it working.
The information will be shown on a 40" television via digital signage. So, the simpler the better. Not too much fuss on the screen.

Re: How to show total power usage

Posted: Friday 31 March 2023 11:17
by willemd
You can define a custom header and list the devices that you want to show, in the example below device 18 and 103.

customHeader: 'devices[18].Data+ "/" + devices[103].Data',

depending on the device, you might also be able to use CounterToday or Usage for example instead of Data

Re: How to show total power usage

Posted: Saturday 01 April 2023 12:13
by willemd
If you need to know which field names are available for use in the customheader, have a look at the answer here:
viewtopic.php?t=39895