How to show total power usage

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
peterspieg
Posts: 16
Joined: Sunday 19 March 2023 21:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Purmerend
Contact:

How to show total power usage

Post 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.
willemd
Posts: 649
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

Re: How to show total power usage

Post 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
willemd
Posts: 649
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

Re: How to show total power usage

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest