[SOLVED] Suppress R1 and R2 from smart meter graph?

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
User avatar
Sjonnie2017
Posts: 365
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

[SOLVED] Suppress R1 and R2 from smart meter graph?

Post by Sjonnie2017 »

Hi All,

I would like to suppress R2 and R1 in my Smart Meter graph as I don't have solar panels or a wind turbine :(

I have been reading the docs and experimenting with a lot of different options but I can't get it done.

The graph:
Image

Note: It's an older screenshot where the graph does not have a legend. But you can see the blue line on the bottom of the graph. Which I would like to suppress or remove.

The part defining the graph in CONFIG.js:

Code: Select all

blocks[grafiek_elektra] = {}
blocks[grafiek_elektra]['title'] = 'Elektriciteit';
blocks[grafiek_elektra]['width'] = 12;
blocks[grafiek_elektra]['height'] = '400px';
//blocks[grafiek_elektra]['graph'] = 'bar';
blocks[grafiek_elektra]['legend'] = {'v': 'Laag', 'v2': 'Hoog'}
blocks[grafiek_elektra]['graphtypes'] = ['v', 'v2']; <= THIS DOESN'T WORK :(
blocks[grafiek_elektra]['pointFillColors'] = ['#aaa9a9', '#7e7e7e'];
blocks[grafiek_elektra]['pointSize'] = 3;
blocks[grafiek_elektra]['lineColors'] = ['#aaa9a9', '#7e7e7e'];
Tips appreciated as always! ;)

Greetz,

Sjonnie

EDIT: Instead of graphtypes you should use graphTypes. Silly me :mrgreen:
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
Post Reply

Who is online

Users browsing this forum: Lokonli and 1 guest