Skip to content

Instantly share code, notes, and snippets.

@mblaschke
Created June 11, 2021 11:47
Show Gist options
  • Save mblaschke/429d4b70baf702e6af90a1fc82dcd0ff to your computer and use it in GitHub Desktop.
Save mblaschke/429d4b70baf702e6af90a1fc82dcd0ff to your computer and use it in GitHub Desktop.
Kasa exporter
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 1,
"id": 15,
"iteration": 1623410947520,
"links": [],
"panels": [
{
"datasource": null,
"fieldConfig": {
"defaults": {
"mappings": [],
"max": 1000,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "yellow",
"value": 100
},
{
"color": "orange",
"value": 250
},
{
"color": "red",
"value": 500
}
]
},
"unit": "watt"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 4,
"x": 0,
"y": 0
},
"id": 30,
"options": {
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"showThresholdLabels": false,
"showThresholdMarkers": true,
"text": {}
},
"pluginVersion": "7.5.7",
"targets": [
{
"expr": "sum(kasa_power_load{alias=~\"$Device\"})",
"instant": true,
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Leistung",
"type": "gauge"
},
{
"datasource": null,
"fieldConfig": {
"defaults": {
"mappings": [],
"max": 999,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "watth"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 3,
"x": 4,
"y": 0
},
"id": 33,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "7.5.7",
"targets": [
{
"exemplar": true,
"expr": "sum(avg_over_time(kasa_power_load{alias=~\"$Device\"}[$__range])) * ($__range_s /3600)",
"instant": true,
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Verbrauch (Zeitspanne)",
"type": "stat"
},
{
"datasource": null,
"fieldConfig": {
"defaults": {
"decimals": 2,
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "kWh"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 12,
"x": 7,
"y": 0
},
"id": 26,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "7.5.7",
"targets": [
{
"exemplar": true,
"expr": "sum(avg_over_time(kasa_power_load{alias=~\"$Device\"}[1h])) / 1000",
"instant": true,
"interval": "",
"legendFormat": "Stunde",
"refId": "A"
},
{
"exemplar": true,
"expr": "sum(avg_over_time(kasa_power_load{alias=~\"$Device\"}[1d]) * 1 * 24) / 1000",
"instant": true,
"interval": "",
"legendFormat": "Tag",
"refId": "B"
},
{
"exemplar": true,
"expr": "sum(avg_over_time(kasa_power_load{alias=~\"$Device\"}[7d]) * 7 * 24) / 1000",
"instant": true,
"interval": "",
"legendFormat": "Woche",
"refId": "C"
},
{
"exemplar": true,
"expr": "sum(avg_over_time(kasa_power_load{alias=~\"$Device\"}[31d]) * 31 * 24) / 1000",
"instant": true,
"interval": "",
"legendFormat": "Monat",
"refId": "D"
},
{
"exemplar": true,
"expr": "sum(avg_over_time(kasa_power_load{alias=~\"$Device\"}[365d]) * 365 * 24) / 1000",
"instant": true,
"interval": "",
"legendFormat": "Jahr",
"refId": "E"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Leistung (Historie)",
"type": "stat"
},
{
"datasource": null,
"fieldConfig": {
"defaults": {
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "currencyEUR"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 5,
"x": 19,
"y": 0
},
"id": 17,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "7.5.7",
"targets": [
{
"exemplar": true,
"expr": "sum(avg_over_time(kasa_power_load{alias=~\"$Device\"}[1d]) * 1 * 24 / 1000) * $PricePerKWH",
"instant": true,
"interval": "",
"legendFormat": "Heute",
"refId": "A"
},
{
"exemplar": true,
"expr": "sum(avg_over_time(kasa_power_load{alias=~\"$Device\"}[31d]) * 31 * 24 / 1000) * $PricePerKWH",
"instant": true,
"interval": "",
"legendFormat": "Monat",
"refId": "B"
},
{
"exemplar": true,
"expr": "sum(avg_over_time(kasa_power_load{alias=~\"$Device\"}[365d]) * 365 * 24 / 1000) * $PricePerKWH",
"instant": true,
"interval": "",
"legendFormat": "Jahr",
"refId": "C"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Energiekosten (Historie)",
"type": "stat"
},
{
"datasource": null,
"fieldConfig": {
"defaults": {
"mappings": [],
"max": 999,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "currencyEUR"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 3,
"x": 4,
"y": 4
},
"id": 35,
"options": {
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"mean"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "7.5.7",
"targets": [
{
"exemplar": true,
"expr": "(sum(avg_over_time(kasa_power_load{alias=~\"$Device\"}[$__range])) * ($__range_s /3600) / 1000) * $PricePerKWH",
"instant": true,
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Kosten (Zeitspanne)",
"type": "stat"
},
{
"datasource": null,
"fieldConfig": {
"defaults": {
"mappings": [],
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "kWh"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 12,
"x": 7,
"y": 4
},
"id": 28,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "7.5.7",
"targets": [
{
"exemplar": true,
"expr": "sum(avg_over_time(kasa_power_load{alias=~\"$Device\"}[1w]) * 7 * 24) / 1000",
"instant": true,
"interval": "",
"legendFormat": "Woche",
"refId": "C"
},
{
"exemplar": true,
"expr": "sum(avg_over_time(kasa_power_load{alias=~\"$Device\"}[31d]) * 31 * 24) / 1000",
"instant": true,
"interval": "",
"legendFormat": "Monat",
"refId": "D"
},
{
"exemplar": true,
"expr": "sum(avg_over_time(kasa_power_load{alias=~\"$Device\"}[8w]) * 365 * 24) / 1000",
"instant": true,
"interval": "",
"legendFormat": "Jahr",
"refId": "E"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Leistung (Prognose)",
"type": "stat"
},
{
"datasource": null,
"fieldConfig": {
"defaults": {
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"unit": "currencyEUR"
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 5,
"x": 19,
"y": 4
},
"id": 25,
"options": {
"colorMode": "value",
"graphMode": "none",
"justifyMode": "auto",
"orientation": "auto",
"reduceOptions": {
"calcs": [
"lastNotNull"
],
"fields": "",
"values": false
},
"text": {},
"textMode": "auto"
},
"pluginVersion": "7.5.7",
"targets": [
{
"exemplar": true,
"expr": "sum(avg_over_time(kasa_power_load{alias=~\"$Device\"}[14d]) * 31 * 24 / 1000) * $PricePerKWH",
"instant": true,
"interval": "",
"legendFormat": "Monat",
"refId": "B"
},
{
"exemplar": true,
"expr": "sum(avg_over_time(kasa_power_load{alias=~\"$Device\"}[60d]) * 365 * 24 / 1000) * $PricePerKWH",
"instant": true,
"interval": "",
"legendFormat": "Jahr",
"refId": "C"
}
],
"timeFrom": null,
"timeShift": null,
"title": "Energiekosten (Prognose)",
"type": "stat"
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fieldConfig": {
"defaults": {},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 8
},
"hiddenSeries": false,
"id": 2,
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.5.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "kasa_power_load{alias=~\"$Device\"}",
"interval": "",
"legendFormat": "{{alias}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Leistung",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:260",
"format": "watt",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"$$hashKey": "object:261",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fieldConfig": {
"defaults": {},
"overrides": []
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 16
},
"hiddenSeries": false,
"id": 34,
"interval": "30m",
"legend": {
"alignAsTable": true,
"avg": true,
"current": true,
"max": true,
"min": false,
"rightSide": false,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"maxDataPoints": 400,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.5.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "sum(avg_over_time(kasa_power_load{alias=~\"$Device\"}[$__rate_interval]))",
"hide": false,
"interval": "",
"intervalFactor": 10,
"legendFormat": "Durchschnitt",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Leistung Durchschnitt",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:260",
"format": "watt",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"$$hashKey": "object:261",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"datasource": null,
"fieldConfig": {
"defaults": {
"custom": {
"align": null,
"filterable": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "dtdurations"
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Steckdose"
},
"properties": [
{
"id": "custom.width",
"value": 219
}
]
},
{
"matcher": {
"id": "byName",
"options": "Zeit"
},
"properties": [
{
"id": "custom.width",
"value": 146
}
]
}
]
},
"gridPos": {
"h": 7,
"w": 8,
"x": 0,
"y": 24
},
"id": 21,
"options": {
"showHeader": true,
"sortBy": []
},
"pluginVersion": "7.5.7",
"targets": [
{
"expr": "(avg_over_time(kasa_power_active{alias=~\"$Device\"}[$__range])) * $__range_s",
"format": "table",
"instant": true,
"interval": "",
"legendFormat": "{{alias}}",
"refId": "A"
}
],
"timeFrom": "now/d",
"timeShift": null,
"title": "Laufzeit",
"transformations": [
{
"id": "organize",
"options": {
"excludeByName": {
"Time": true,
"instance": true,
"job": true
},
"indexByName": {},
"renameByName": {
"Value": "Zeit",
"alias": "Steckdose"
}
}
}
],
"type": "table"
},
{
"aggregate": "AVG",
"color": {
"colorScheme": "interpolateRdYlGn",
"colorSpace": "RGB",
"customColors": [
{
"$$hashKey": "object:303",
"color": "#006837"
},
{
"$$hashKey": "object:304",
"color": "#aa0526"
}
],
"mode": "SPECTRUM",
"nullColor": "transparent"
},
"data": {
"decimals": 4,
"unitFormat": "kwatth"
},
"datasource": null,
"fieldConfig": {
"defaults": {},
"overrides": []
},
"fragment": "HOUR",
"gridPos": {
"h": 7,
"w": 16,
"x": 8,
"y": 24
},
"id": 23,
"legend": {
"show": false
},
"pluginVersion": "7.1.5",
"scale": {
"max": 0.1,
"min": 0
},
"targets": [
{
"expr": "increase(kasa_power_total{alias=~\"$Device\"}[1h])",
"interval": "1h",
"legendFormat": "",
"refId": "A"
}
],
"timeFrom": "14d/d",
"timeShift": null,
"title": "Verbrauch",
"tooltip": {
"show": true
},
"type": "petrslavotinek-carpetplot-panel",
"xAxis": {
"labelFormat": "%a %m/%d",
"minBucketWidthToShowWeekends": 4,
"show": true,
"showCrosshair": true,
"showWeekends": true
},
"yAxis": {
"show": true,
"showCrosshair": false
}
},
{
"config": {
"animationDuration": 0,
"cellPadding": 2,
"cellRadius": "",
"cellSize": 10,
"colLimit": "",
"displayLegend": false,
"domain": "auto",
"domainGutter": 2,
"hoverDecimals": 2,
"hoverUnitFormat": "h",
"itemName": [
"h",
"h"
],
"label": {
"position": "bottom",
"rotate": "null",
"width": 60
},
"legendColors": {
"base": "transparent",
"empty": "#222",
"max": "#C4162A",
"min": "#666"
},
"legendStr": "0,4,8,12,16,20,24",
"legendTitleFormat": {
"inner": {},
"lower": {},
"upper": {}
},
"rowLimit": "",
"subDomain": "auto",
"subDomainTitleFormat": {
"empty": "{date}",
"filled": {}
},
"verticalOrientation": false
},
"datasource": null,
"fieldConfig": {
"defaults": {},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 24,
"x": 0,
"y": 31
},
"id": 24,
"interval": "1d",
"pluginVersion": "7.1.5",
"targets": [
{
"expr": "(avg_over_time(kasa_power_active{alias=~\"$Device\"}[24h])) * 24",
"interval": "",
"legendFormat": "",
"refId": "A"
}
],
"timeFrom": "1y/d",
"timeShift": "1d",
"title": "Laufzeit",
"type": "neocat-cal-heatmap-panel"
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fieldConfig": {
"defaults": {},
"overrides": [
{
"matcher": {
"id": "byType",
"options": "time"
},
"properties": [
{
"id": "displayName",
"value": "asd"
}
]
}
]
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 12,
"x": 0,
"y": 37
},
"hiddenSeries": false,
"id": 12,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": false,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.5.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "increase(kasa_power_total{alias=~\"$Device\"}[1h])",
"instant": false,
"interval": "1h",
"legendFormat": "{{alias}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": "24h",
"timeRegions": [],
"timeShift": null,
"title": "Stromverbrauch (pro Stunde)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:260",
"format": "kwatth",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"$$hashKey": "object:261",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fieldConfig": {
"defaults": {},
"overrides": [
{
"matcher": {
"id": "byType",
"options": "time"
},
"properties": [
{
"id": "displayName",
"value": "asd"
}
]
}
]
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 12,
"x": 12,
"y": 37
},
"hiddenSeries": false,
"id": 14,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": false,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.5.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "increase(kasa_power_total{alias=~\"$Device\"}[1h]) * $PricePerKWH",
"instant": false,
"interval": "1h",
"legendFormat": "{{alias}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": "24h",
"timeRegions": [],
"timeShift": null,
"title": "Stromkosten (pro Stunde)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:260",
"format": "currencyEUR",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"$$hashKey": "object:261",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fieldConfig": {
"defaults": {},
"overrides": [
{
"matcher": {
"id": "byType",
"options": "time"
},
"properties": [
{
"id": "displayName",
"value": "asd"
}
]
}
]
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 12,
"x": 0,
"y": 43
},
"hiddenSeries": false,
"id": 13,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": false,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.5.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "increase(kasa_power_total{alias=~\"$Device\"}[24h])",
"instant": false,
"interval": "24h",
"legendFormat": "{{alias}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": "31d/d",
"timeRegions": [],
"timeShift": null,
"title": "Stromverbrauch (pro Tag)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:260",
"format": "kwatth",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"$$hashKey": "object:261",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": true,
"dashLength": 10,
"dashes": false,
"datasource": null,
"description": "",
"fieldConfig": {
"defaults": {},
"overrides": [
{
"matcher": {
"id": "byType",
"options": "time"
},
"properties": [
{
"id": "displayName",
"value": "asd"
}
]
}
]
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 6,
"w": 12,
"x": 12,
"y": 43
},
"hiddenSeries": false,
"id": 15,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": false,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.5.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "increase(kasa_power_total{alias=~\"$Device\"}[24h]) * $PricePerKWH",
"instant": false,
"interval": "24h",
"legendFormat": "{{alias}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": "31d/d",
"timeRegions": [],
"timeShift": null,
"title": "Stromkosten (pro Tag)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:260",
"format": "currencyEUR",
"label": null,
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"$$hashKey": "object:261",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"description": "",
"fieldConfig": {
"defaults": {},
"overrides": [
{
"matcher": {
"id": "byType",
"options": "time"
},
"properties": [
{
"id": "displayName",
"value": "asd"
}
]
}
]
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 49
},
"hiddenSeries": false,
"id": 31,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.5.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "increase(kasa_power_total{alias=~\"$Device\"}[1d]) - avg_over_time(increase(kasa_power_total{alias=~\"$Device\"}[1d])[7d:])",
"instant": false,
"interval": "24h",
"legendFormat": "{{alias}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": "7d/d",
"timeRegions": [],
"timeShift": null,
"title": "Verbrauch (Differenz)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:260",
"format": "kwatth",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:261",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": 0
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"description": "",
"fieldConfig": {
"defaults": {},
"overrides": [
{
"matcher": {
"id": "byType",
"options": "time"
},
"properties": [
{
"id": "displayName",
"value": "asd"
}
]
}
]
},
"fill": 1,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 49
},
"hiddenSeries": false,
"id": 32,
"interval": "1w",
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.5.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": true,
"steppedLine": false,
"targets": [
{
"expr": "increase(kasa_power_total{alias=~\"$Device\"}[7d]) - increase((kasa_power_total{alias=~\"Wasserbett\"} offset 7d)[7d:])",
"instant": false,
"interval": "24h",
"legendFormat": "{{alias}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": "1y/d",
"timeRegions": [],
"timeShift": null,
"title": "Verbrauch (Differenz)",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:260",
"format": "kwatth",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"$$hashKey": "object:261",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": 0
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fieldConfig": {
"defaults": {},
"overrides": []
},
"fill": 0,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 56
},
"hiddenSeries": false,
"id": 4,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.5.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "kasa_rssi{alias=~\"$Device\"}",
"interval": "",
"legendFormat": "{{alias}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "WLAN Signal",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:260",
"format": "dBm",
"label": null,
"logBase": 1,
"max": "0",
"min": null,
"show": true
},
{
"$$hashKey": "object:261",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": null,
"fieldConfig": {
"defaults": {},
"overrides": []
},
"fill": 0,
"fillGradient": 0,
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 56
},
"hiddenSeries": false,
"id": 3,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 1,
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.5.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "kasa_voltage{alias=~\"$Device\"}",
"interval": "",
"legendFormat": "{{alias}}",
"refId": "A"
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Spannung",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"$$hashKey": "object:260",
"format": "volt",
"label": null,
"logBase": 1,
"max": "245",
"min": "215",
"show": true
},
{
"$$hashKey": "object:261",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"refresh": "30s",
"schemaVersion": 27,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"allValue": ".+",
"current": {
"selected": true,
"text": [
"Trockner Familie"
],
"value": [
"Trockner Familie"
]
},
"datasource": "Prometheus",
"definition": "label_values(kasa_current, alias)",
"description": null,
"error": null,
"hide": 0,
"includeAll": true,
"label": "Steckdose",
"multi": true,
"name": "Device",
"options": [],
"query": {
"query": "label_values(kasa_current, alias)",
"refId": "Prometheus-Device-Variable-Query"
},
"refresh": 2,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {
"selected": false,
"text": "0.3014",
"value": "0.3014"
},
"description": null,
"error": null,
"hide": 0,
"label": "Preis pro KWH",
"name": "PricePerKWH",
"options": [
{
"selected": true,
"text": "0.3014",
"value": "0.3014"
}
],
"query": "0.3014",
"skipUrlSync": false,
"type": "textbox"
}
]
},
"time": {
"from": "now-24h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "Steckdosen",
"uid": "BjB6sPOMz",
"version": 108
}
@dineshpsalm
Copy link

Does it possible for you to convert this into english?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment