Last active
November 16, 2022 08:14
-
-
Save acoster/afa29e44adb0dec2e2dc0d18836923c5 to your computer and use it in GitHub Desktop.
My grafana dashboard displaying thermostat/sensor data for home.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": { | |
| "type": "grafana", | |
| "uid": "-- Grafana --" | |
| }, | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", | |
| "name": "Annotations & Alerts", | |
| "target": { | |
| "limit": 100, | |
| "matchAny": false, | |
| "tags": [], | |
| "type": "dashboard" | |
| }, | |
| "type": "dashboard" | |
| } | |
| ] | |
| }, | |
| "editable": true, | |
| "fiscalYearStartMonth": 0, | |
| "graphTooltip": 0, | |
| "id": 10, | |
| "links": [], | |
| "liveNow": false, | |
| "panels": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "svKtqEv4z" | |
| }, | |
| "fieldConfig": { | |
| "defaults": { | |
| "custom": { | |
| "align": "auto", | |
| "displayMode": "auto", | |
| "inspect": false | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| } | |
| ] | |
| } | |
| }, | |
| "overrides": [ | |
| { | |
| "matcher": { | |
| "id": "byName", | |
| "options": "Value #A" | |
| }, | |
| "properties": [ | |
| { | |
| "id": "unit", | |
| "value": "celsius" | |
| } | |
| ] | |
| }, | |
| { | |
| "matcher": { | |
| "id": "byName", | |
| "options": "Value #B" | |
| }, | |
| "properties": [ | |
| { | |
| "id": "unit", | |
| "value": "celsius" | |
| } | |
| ] | |
| }, | |
| { | |
| "matcher": { | |
| "id": "byName", | |
| "options": "Heating Power" | |
| }, | |
| "properties": [ | |
| { | |
| "id": "unit", | |
| "value": "percent" | |
| }, | |
| { | |
| "id": "custom.displayMode", | |
| "value": "color-text" | |
| }, | |
| { | |
| "id": "color", | |
| "value": { | |
| "mode": "continuous-GrYlRd" | |
| } | |
| }, | |
| { | |
| "id": "custom.width", | |
| "value": 127 | |
| } | |
| ] | |
| }, | |
| { | |
| "matcher": { | |
| "id": "byName", | |
| "options": "Time" | |
| }, | |
| "properties": [ | |
| { | |
| "id": "unit", | |
| "value": "dateTimeAsIsoNoDateIfToday" | |
| }, | |
| { | |
| "id": "custom.width", | |
| "value": 86 | |
| } | |
| ] | |
| }, | |
| { | |
| "matcher": { | |
| "id": "byName", | |
| "options": "Zone" | |
| }, | |
| "properties": [ | |
| { | |
| "id": "custom.width", | |
| "value": 143 | |
| } | |
| ] | |
| }, | |
| { | |
| "matcher": { | |
| "id": "byName", | |
| "options": "Temperature" | |
| }, | |
| "properties": [ | |
| { | |
| "id": "custom.width", | |
| "value": 108 | |
| } | |
| ] | |
| }, | |
| { | |
| "matcher": { | |
| "id": "byName", | |
| "options": "Thermostat Setting" | |
| }, | |
| "properties": [ | |
| { | |
| "id": "custom.width", | |
| "value": 148 | |
| }, | |
| { | |
| "id": "color", | |
| "value": { | |
| "mode": "thresholds" | |
| } | |
| }, | |
| { | |
| "id": "thresholds", | |
| "value": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "semi-dark-blue", | |
| "value": null | |
| }, | |
| { | |
| "color": "green", | |
| "value": 15 | |
| }, | |
| { | |
| "color": "yellow", | |
| "value": 18.1 | |
| }, | |
| { | |
| "color": "red", | |
| "value": 21.1 | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "id": "custom.displayMode", | |
| "value": "color-text" | |
| } | |
| ] | |
| }, | |
| { | |
| "matcher": { | |
| "id": "byName", | |
| "options": "Humidity" | |
| }, | |
| "properties": [ | |
| { | |
| "id": "custom.width", | |
| "value": 85 | |
| }, | |
| { | |
| "id": "unit", | |
| "value": "percent" | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| "gridPos": { | |
| "h": 7, | |
| "w": 6, | |
| "x": 9, | |
| "y": 0 | |
| }, | |
| "id": 22, | |
| "options": { | |
| "footer": { | |
| "fields": "", | |
| "reducer": [ | |
| "sum" | |
| ], | |
| "show": false | |
| }, | |
| "frameIndex": 5, | |
| "showHeader": true, | |
| "sortBy": [ | |
| { | |
| "desc": true, | |
| "displayName": "Heating Power" | |
| } | |
| ] | |
| }, | |
| "pluginVersion": "9.3.0-beta1", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "svKtqEv4z" | |
| }, | |
| "editorMode": "builder", | |
| "exemplar": false, | |
| "expr": "sum by(zone) (tado_setting_temperature_value{unit=\"celsius\"})", | |
| "format": "table", | |
| "hide": false, | |
| "instant": true, | |
| "legendFormat": "__auto", | |
| "range": false, | |
| "refId": "A" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "svKtqEv4z" | |
| }, | |
| "editorMode": "builder", | |
| "exemplar": false, | |
| "expr": "sum by(zone) (tado_sensor_temperature_value{unit=\"celsius\"})", | |
| "format": "table", | |
| "hide": false, | |
| "instant": true, | |
| "legendFormat": "__auto", | |
| "range": false, | |
| "refId": "B" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "svKtqEv4z" | |
| }, | |
| "editorMode": "builder", | |
| "exemplar": false, | |
| "expr": "sum by(zone) (tado_activity_heating_power_percentage)", | |
| "format": "table", | |
| "hide": false, | |
| "instant": true, | |
| "legendFormat": "__auto", | |
| "range": false, | |
| "refId": "C" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "svKtqEv4z" | |
| }, | |
| "editorMode": "builder", | |
| "exemplar": false, | |
| "expr": "sum by(zone) (tado_sensor_humidity_percentage)", | |
| "format": "table", | |
| "hide": false, | |
| "instant": true, | |
| "legendFormat": "__auto", | |
| "range": false, | |
| "refId": "D" | |
| } | |
| ], | |
| "title": "Overview", | |
| "transformations": [ | |
| { | |
| "id": "merge", | |
| "options": {} | |
| }, | |
| { | |
| "id": "organize", | |
| "options": { | |
| "excludeByName": {}, | |
| "indexByName": { | |
| "Time": 0, | |
| "Value #A": 3, | |
| "Value #B": 2, | |
| "Value #C": 5, | |
| "Value #D": 4, | |
| "zone": 1 | |
| }, | |
| "renameByName": { | |
| "Time": "", | |
| "Value #A": "Thermostat Setting", | |
| "Value #B": "Temperature", | |
| "Value #C": "Heating Power", | |
| "Value #D": "Humidity", | |
| "zone": "Zone" | |
| } | |
| } | |
| } | |
| ], | |
| "type": "table" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "svKtqEv4z" | |
| }, | |
| "description": "", | |
| "fieldConfig": { | |
| "defaults": { | |
| "color": { | |
| "mode": "palette-classic" | |
| }, | |
| "custom": { | |
| "axisCenteredZero": false, | |
| "axisColorMode": "text", | |
| "axisLabel": "", | |
| "axisPlacement": "auto", | |
| "barAlignment": 0, | |
| "drawStyle": "line", | |
| "fillOpacity": 0, | |
| "gradientMode": "none", | |
| "hideFrom": { | |
| "legend": false, | |
| "tooltip": false, | |
| "viz": false | |
| }, | |
| "lineInterpolation": "linear", | |
| "lineWidth": 1, | |
| "pointSize": 5, | |
| "scaleDistribution": { | |
| "type": "linear" | |
| }, | |
| "showPoints": "auto", | |
| "spanNulls": false, | |
| "stacking": { | |
| "group": "A", | |
| "mode": "none" | |
| }, | |
| "thresholdsStyle": { | |
| "mode": "off" | |
| } | |
| }, | |
| "mappings": [], | |
| "thresholds": { | |
| "mode": "absolute", | |
| "steps": [ | |
| { | |
| "color": "green", | |
| "value": null | |
| }, | |
| { | |
| "color": "red", | |
| "value": 80 | |
| } | |
| ] | |
| }, | |
| "unit": "celsius" | |
| }, | |
| "overrides": [ | |
| { | |
| "matcher": { | |
| "id": "byFrameRefID", | |
| "options": "C" | |
| }, | |
| "properties": [ | |
| { | |
| "id": "unit", | |
| "value": "percent" | |
| } | |
| ] | |
| }, | |
| { | |
| "matcher": { | |
| "id": "byFrameRefID", | |
| "options": "D" | |
| }, | |
| "properties": [ | |
| { | |
| "id": "unit", | |
| "value": "percent" | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| "gridPos": { | |
| "h": 7, | |
| "w": 12, | |
| "x": 0, | |
| "y": 7 | |
| }, | |
| "id": 8, | |
| "maxPerRow": 2, | |
| "options": { | |
| "legend": { | |
| "calcs": [], | |
| "displayMode": "list", | |
| "placement": "bottom", | |
| "showLegend": true | |
| }, | |
| "tooltip": { | |
| "mode": "single", | |
| "sort": "none" | |
| } | |
| }, | |
| "repeat": "zone", | |
| "repeatDirection": "h", | |
| "targets": [ | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "svKtqEv4z" | |
| }, | |
| "editorMode": "code", | |
| "expr": "tado_sensor_temperature_value{zone=\"${zone:raw}\",unit=\"celsius\"}", | |
| "legendFormat": "Temperature", | |
| "range": true, | |
| "refId": "A" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "svKtqEv4z" | |
| }, | |
| "editorMode": "code", | |
| "expr": "tado_setting_temperature_value{unit=\"celsius\",zone=\"${zone:raw}\"}", | |
| "hide": false, | |
| "legendFormat": "Thermostat Setting", | |
| "range": true, | |
| "refId": "B" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "svKtqEv4z" | |
| }, | |
| "editorMode": "code", | |
| "expr": "tado_activity_heating_power_percentage{zone=\"${zone:raw}\"}", | |
| "hide": false, | |
| "legendFormat": "Heating Power", | |
| "range": true, | |
| "refId": "C" | |
| }, | |
| { | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "svKtqEv4z" | |
| }, | |
| "editorMode": "code", | |
| "expr": "tado_sensor_humidity_percentage{zone=\"${zone:raw}\"}", | |
| "hide": false, | |
| "interval": "", | |
| "legendFormat": "Humidity", | |
| "range": true, | |
| "refId": "D" | |
| } | |
| ], | |
| "title": "$zone", | |
| "type": "timeseries" | |
| } | |
| ], | |
| "refresh": "30s", | |
| "schemaVersion": 37, | |
| "style": "dark", | |
| "tags": [], | |
| "templating": { | |
| "list": [ | |
| { | |
| "current": { | |
| "selected": true, | |
| "text": [ | |
| "All" | |
| ], | |
| "value": [ | |
| "$__all" | |
| ] | |
| }, | |
| "datasource": { | |
| "type": "prometheus", | |
| "uid": "svKtqEv4z" | |
| }, | |
| "definition": "label_values(tado_sensor_temperature_value,zone)", | |
| "hide": 0, | |
| "includeAll": true, | |
| "multi": true, | |
| "name": "zone", | |
| "options": [], | |
| "query": { | |
| "query": "label_values(tado_sensor_temperature_value,zone)", | |
| "refId": "StandardVariableQuery" | |
| }, | |
| "refresh": 1, | |
| "regex": "", | |
| "skipUrlSync": false, | |
| "sort": 0, | |
| "type": "query" | |
| } | |
| ] | |
| }, | |
| "time": { | |
| "from": "now-1h", | |
| "to": "now" | |
| }, | |
| "timepicker": {}, | |
| "timezone": "", | |
| "title": "Thermostat", | |
| "uid": "xUOQFkd4z", | |
| "version": 19, | |
| "weekStart": "" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment