Unfortunately I cannot get it to work, the AC on bar/filled line is not showing, its always 0
I think the issue is idx 13 which is a multisensor consisting of 13_1 for hu and 13_2 for te
Code: Select all
{
"mountPoint": "#block_19",
"block": {
"width": 8,
"datasetColors": [
"white",
"orange",
"yellow",
"red",
"rgba(44,130,201,0.5)"
],
"axisRight": false,
"axisAlternate": true,
"barWidth": 0.9,
"beginAtZero": false,
"borderDash": [],
"borderWidth": 2,
"buttonsBorder": "white",
"buttonsColor": "black",
"buttonsFill": "white",
"buttonsIcon": "#686868",
"buttonsMarginX": 2,
"buttonsMarginY": 0,
"buttonsPadX": 6,
"buttonsPadY": 2,
"buttonsRadius": 0,
"buttonsShadow": false,
"buttonsSize": 14,
"buttonsText": false,
"cartesian": "linear",
"custom": false,
"customHeader": false,
"debugButton": true,
"displayFormats": false,
"drawOrderDay": false,
"drawOrderLast": false,
"drawOrderMonth": false,
"flash": false,
"fontColor": "white",
"format": true,
"gradients": false,
"graph": "line",
"graphTypes": [
"hu",
"te",
"te",
"te",
"l"
],
"groupBy": false,
"groupByDevice": false,
"height": "125px",
"iconColour": "grey",
"interval": 1,
"legend": {
"hu_13": "hum",
"te_13": "now",
"te_95": "avg",
"te_97": "set",
"l_69": "AC on"
},
"lineFill": [
false,
false,
false,
false,
true
],
"lineTension": 0.1,
"maxTicksLimit": null,
"method": 1,
"pointBorderColor": [
"grey"
],
"pointBorderWidth": 0,
"pointRadius": 0,
"pointStyle": false,
"range": "initial",
"refresh": 300,
"reverseTime": false,
"sortDevices": false,
"spanGaps": false,
"stacked": false,
"title": "Avg temp",
"tooltiptotal": false,
"zoom": true,
"type": "my_graph",
"devices": [
13,
95,
97,
69
],
"debug": true,
"c": 1,
"key": "my_graph"
},
"key": "my_graph",
"name": "graph",
"callbacks": {
"timeoutList": [],
"intervalList": [
99
],
"subscriptionList": [
null,
null,
null,
null,
null
]
},
"$mountPoint": {
"0": {},
"length": 1
},
"graphDevices": [
{
"AddjMulti": 1,
"AddjMulti2": 1,
"AddjValue": 0,
"AddjValue2": 0,
"BatteryLevel": 100,
"CustomImage": 0,
"Data": "28.0 C, 54 %",
"Description": "",
"DewPoint": "17.83",
"Favorite": 1,
"HardwareDisabled": false,
"HardwareID": 2,
"HardwareName": "Aeotec Zwave USB stick",
"HardwareType": "OpenZWave USB",
"HardwareTypeVal": 21,
"HaveTimeout": false,
"Humidity": 54,
"HumidityStatus": "Comfortable",
"ID": "0401",
"LastUpdate": "2021-11-11 14:01:05",
"Name": "TempHum",
"Notifications": "false",
"PlanID": "0",
"PlanIDs": [
0
],
"Protected": false,
"ShowNotifications": true,
"SignalLevel": "-",
"SubType": "WTGR800",
"Temp": 28,
"Timers": "false",
"Type": "Temp + Humidity",
"TypeImg": "temperature",
"Unit": 0,
"Used": 1,
"XOffset": "0",
"YOffset": "0",
"idx": 13,
"trend": 2,
"Data0": "28.0 C, 54 %",
"currentValue": "28.0 C, 54 %",
"name": "TempHum",
"sensor": "temp",
"subtype": "WTGR800",
"title": "TempHum",
"txtUnit": "°C",
"txtUnits": [],
"type": "Temp + Humidity",
"decimals": 1,
"method": 1
},
{
"AddjMulti": 1,
"AddjMulti2": 1,
"AddjValue": 0,
"AddjValue2": 0,
"BatteryLevel": 255,
"CustomImage": 0,
"Data": "26.5 C",
"Description": "",
"Favorite": 1,
"HardwareDisabled": false,
"HardwareID": 4,
"HardwareName": "VirtualSwitches",
"HardwareType": "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal": 15,
"HaveTimeout": false,
"ID": "140AF",
"LastUpdate": "2021-11-11 12:55:02",
"Name": "Temp_Avg",
"Notifications": "false",
"PlanID": "0",
"PlanIDs": [
0
],
"Protected": false,
"ShowNotifications": true,
"SignalLevel": "-",
"SubType": "LaCrosse TX3",
"Temp": 26.5,
"Timers": "false",
"Type": "Temp",
"TypeImg": "temperature",
"Unit": 1,
"Used": 1,
"XOffset": "0",
"YOffset": "0",
"idx": 95,
"trend": 3,
"Data0": "26.5 C",
"currentValue": "26,5 °C",
"name": "Temp_Avg",
"sensor": "temp",
"subtype": "LaCrosse TX3",
"title": "Temp_Avg",
"txtUnit": "°C",
"txtUnits": [],
"type": "Temp",
"decimals": 1,
"method": 1
},
{
"AddjMulti": 1,
"AddjMulti2": 1,
"AddjValue": 0,
"AddjValue2": 0,
"BatteryLevel": 255,
"CustomImage": 0,
"Data": "27.0 C",
"Description": "",
"Favorite": 1,
"HardwareDisabled": false,
"HardwareID": 4,
"HardwareName": "VirtualSwitches",
"HardwareType": "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal": 15,
"HaveTimeout": false,
"ID": "140B1",
"LastUpdate": "2021-11-11 14:00:03",
"Name": "MinTempACcelc",
"Notifications": "false",
"PlanID": "0",
"PlanIDs": [
0
],
"Protected": false,
"ShowNotifications": true,
"SignalLevel": "-",
"SubType": "LaCrosse TX3",
"Temp": 27,
"Timers": "false",
"Type": "Temp",
"TypeImg": "temperature",
"Unit": 1,
"Used": 1,
"XOffset": "0",
"YOffset": "0",
"idx": 97,
"trend": 1,
"Data0": "27.0 C",
"currentValue": "27,0 °C",
"name": "MinTempACcelc",
"sensor": "temp",
"subtype": "LaCrosse TX3",
"title": "MinTempACcelc",
"txtUnit": "°C",
"txtUnits": [],
"type": "Temp",
"decimals": 1,
"method": 1
},
{
"AddjMulti": 1,
"AddjMulti2": 1,
"AddjValue": 0,
"AddjValue2": 0,
"BatteryLevel": 255,
"CustomImage": 16,
"Data": "On",
"Description": "",
"DimmerType": "none",
"Favorite": 1,
"HardwareDisabled": false,
"HardwareID": 4,
"HardwareName": "VirtualSwitches",
"HardwareType": "Dummy (Does nothing, use for virtual switches only)",
"HardwareTypeVal": 15,
"HaveDimmer": true,
"HaveGroupCmd": true,
"HaveTimeout": false,
"ID": "00014095",
"Image": "Cooling",
"IsSubDevice": false,
"LastUpdate": "2021-11-11 13:57:36",
"Level": 0,
"LevelInt": 0,
"MaxDimLevel": 100,
"Name": "AC",
"Notifications": "false",
"PlanID": "0",
"PlanIDs": [
0
],
"Protected": false,
"ShowNotifications": true,
"SignalLevel": "-",
"Status": "On",
"StrParam1": "",
"StrParam2": "",
"SubType": "Switch",
"SwitchType": "On/Off",
"SwitchTypeVal": 0,
"Timers": "false",
"Type": "Light/Switch",
"TypeImg": "lightbulb",
"Unit": 1,
"Used": 1,
"UsedByCamera": false,
"XOffset": "0",
"YOffset": "0",
"idx": 69,
"Data0": "On",
"currentValue": "On",
"name": "AC",
"sensor": "",
"subtype": "Switch",
"title": "AC",
"txtUnit": "level",
"txtUnits": [],
"type": "Light/Switch",
"decimals": 0,
"method": 1
}
],
"decimals": 1,
"graphIdx": "block_19",
"lastRefreshTime": 1636614145,
"range": "last",
"title": "Avg temp",
"params": [
"type=graph&sensor=temp&idx=13&range=day&method=1",
"type=graph&sensor=temp&idx=95&range=day&method=1",
"type=graph&sensor=temp&idx=97&range=day&method=1",
"type=lightlog&idx=69"
],
"subtype": "WTGR800",
"txtUnits": [],
"data": {
"result": [
{
"d": "2021-11-11 10:05",
"hu_13": "58",
"te_13": 27.6,
"te_95": 26.1,
"te_97": 27
},
{
"d": "2021-11-11 10:10",
"hu_13": "59",
"te_13": 27.7,
"te_95": 26.1,
"te_97": 27
},
{
"d": "2021-11-11 10:15",
"hu_13": "59",
"te_13": 27.8,
"te_95": 26.1,
"te_97": 27
},
{
"d": "2021-11-11 10:20",
"hu_13": "59",
"te_13": 27.8,
"te_95": 26.1,
"te_97": 27
},
{
"d": "2021-11-11 10:25",
"hu_13": "59",
"te_13": 27.9,
"te_95": 26.1,
"te_97": 27
},
{
"d": "2021-11-11 10:30",
"hu_13": "59",
"te_13": 27.9,
"te_97": 27
},
{
"d": "2021-11-11 10:35",
"hu_13": "59",
"te_13": 28,
"te_97": 27
},
{
"d": "2021-11-11 10:40",
"hu_13": "59",
"te_13": 28,
"te_97": 27
},
{
"d": "2021-11-11 10:45",
"hu_13": "59",
"te_13": 28,
"te_97": 27
},
{
"d": "2021-11-11 10:49:08",
"l_69": 0
},
{
"d": "2021-11-11 10:50",
"hu_13": "59",
"te_13": 28,
"te_97": 27
},
{
"d": "2021-11-11 10:55",
"hu_13": "55",
"te_13": 27.4,
"te_97": 27
},
{
"d": "2021-11-11 11:00",
"hu_13": "57",
"te_13": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 11:05",
"hu_13": "58",
"te_13": 26.2,
"te_97": 27
},
{
"d": "2021-11-11 11:10",
"hu_13": "61",
"te_13": 25.5,
"te_97": 27
},
{
"d": "2021-11-11 11:10:02",
"l_69": 0
},
{
"d": "2021-11-11 11:15",
"hu_13": "60",
"te_13": 25.9,
"te_95": 26.8,
"te_97": 27
},
{
"d": "2021-11-11 11:20",
"hu_13": "59",
"te_13": 26.4,
"te_95": 26.8,
"te_97": 27
},
{
"d": "2021-11-11 11:25",
"hu_13": "59",
"te_13": 26.8,
"te_95": 26.8,
"te_97": 27
},
{
"d": "2021-11-11 11:30",
"hu_13": "58",
"te_13": 27.3,
"te_95": 26.8,
"te_97": 27
},
{
"d": "2021-11-11 11:35",
"hu_13": "58",
"te_13": 27.5,
"te_95": 26.8,
"te_97": 27
},
{
"d": "2021-11-11 11:40",
"hu_13": "58",
"te_13": 27.6,
"te_95": 26.8,
"te_97": 27
},
{
"d": "2021-11-11 11:41:07",
"l_69": 0
},
{
"d": "2021-11-11 11:45",
"hu_13": "58",
"te_13": 27.8,
"te_95": 26.4,
"te_97": 27
},
{
"d": "2021-11-11 11:50",
"hu_13": "57",
"te_13": 26.4,
"te_95": 26.4,
"te_97": 27
},
{
"d": "2021-11-11 11:55",
"hu_13": "58",
"te_13": 26.1,
"te_95": 26.4,
"te_97": 27
},
{
"d": "2021-11-11 12:00",
"hu_13": "54",
"te_13": 25.6,
"te_95": 26.4,
"te_97": 27
},
{
"d": "2021-11-11 12:01:07",
"l_69": 0
},
{
"d": "2021-11-11 12:05",
"hu_13": "60",
"te_13": 25.4,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 12:10",
"hu_13": "59",
"te_13": 26.5,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 12:15",
"hu_13": "58",
"te_13": 26.9,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 12:20",
"hu_13": "58",
"te_13": 27.2,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 12:25",
"hu_13": "58",
"te_13": 27.4,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 12:30",
"hu_13": "58",
"te_13": 27.7,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 12:33:06",
"l_69": 0
},
{
"d": "2021-11-11 12:35",
"hu_13": "58",
"te_13": 27.8,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 12:40",
"hu_13": "55",
"te_13": 27.3,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 12:45",
"hu_13": "57",
"te_13": 26.4,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 12:50",
"hu_13": "54",
"te_13": 25.6,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 12:55",
"hu_13": "60",
"te_13": 25.4,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 12:55:02",
"l_69": 0
},
{
"d": "2021-11-11 13:00",
"hu_13": "59",
"te_13": 25.6,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 13:05",
"hu_13": "58",
"te_13": 26.1,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 13:10",
"hu_13": "57",
"te_13": 26.9,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 13:15",
"hu_13": "57",
"te_13": 27.2,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 13:20",
"hu_13": "57",
"te_13": 27.5,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 13:25",
"hu_13": "57",
"te_13": 27.8,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 13:30",
"hu_13": "56",
"te_13": 28.1,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 13:35",
"hu_13": "56",
"te_13": 28.2,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 13:40",
"hu_13": "56",
"te_13": 28.3,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 13:45",
"hu_13": "56",
"te_13": 28.4,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 13:50",
"hu_13": "56",
"te_13": 28.5,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 13:55",
"hu_13": "56",
"te_13": 28.6,
"te_95": 26.5,
"te_97": 27
},
{
"d": "2021-11-11 13:57:36",
"l_69": 0
},
{
"d": "2021-11-11 14:00",
"hu_13": "56",
"te_13": 28.6,
"te_97": 27
}
],
"status": "OK",
"title": "Graph day"
},
"realrange": "day",
"dataFilterCount": 4,
"dataFilterUnit": "hours",
"groupBy": false,
"ylabels": [
"%",
"°C",
"°C",
"°C",
"level"
],
"keys": [
"hu",
"te",
"l"
],
"ykeys": [
"hu_13",
"te_13",
"te_95",
"te_97",
"l_69"
],
"txtUnit": "°C",
"chartctx": {},
"_width": 825.333,
"loadingTooltip": false
}
Edit: I just tested with a real device instead of a virtual device and it does exactly the same (so instead of l_69 i used l_1 which is a z-wave dev)
Edit2: I put the switch as first in the legend array and I see the problem now, I think you can only use a switch with a level indicator, like a dimmer (level 0-100). My values on the right y-axis go from 1.0 to -1.0
I will make another virtual device that i will give level 1 or 100 and put that device in the graph, but that will probably be tomorrow