home assistant dashboard improvements

This commit is contained in:
Remy Moll 2024-07-09 09:20:24 +02:00
parent 4597fa43c4
commit 0d0200321d

View File

@ -1,460 +1,502 @@
{ {
"annotations": { "annotations": {
"list": [ "list": [
{
"$$hashKey": "object:2075",
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"description": "Monitor Home Metrics",
"editable": true,
"fiscalYearStartMonth": 0,
"gnetId": 13192,
"graphTooltip": 0,
"id": 1,
"links": [],
"liveNow": false,
"panels": [
{ {
"$$hashKey": "object:2075",
"builtIn": 1,
"datasource": { "datasource": {
"type": "prometheus", "type": "datasource",
"uid": "PBFA97CFB590B2093" "uid": "grafana"
}, },
"fieldConfig": { "enable": true,
"defaults": { "hide": true,
"color": { "iconColor": "rgba(0, 211, 255, 1)",
"mode": "palette-classic" "name": "Annotations & Alerts",
}, "type": "dashboard"
"custom": { }
"axisBorderShow": false, ]
"axisCenteredZero": false, },
"axisColorMode": "text", "description": "Monitor Home Metrics",
"axisLabel": "", "editable": true,
"axisPlacement": "auto", "fiscalYearStartMonth": 0,
"barAlignment": 0, "gnetId": 13192,
"drawStyle": "line", "graphTooltip": 0,
"fillOpacity": 0, "links": [],
"gradientMode": "none", "liveNow": false,
"hideFrom": { "panels": [
"legend": false, {
"tooltip": false, "datasource": {
"viz": false "type": "prometheus",
}, "uid": "PBFA97CFB590B2093"
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 2,
"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
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 0
},
"id": 36,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg(homeassistant_sensor_humidity_percent)",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Room humidity",
"type": "timeseries"
}, },
{ "fieldConfig": {
"datasource": { "defaults": {
"type": "prometheus", "color": {
"uid": "PBFA97CFB590B2093" "mode": "palette-classic"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 25,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 2,
"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": [] "custom": {
}, "axisBorderShow": false,
"gridPos": { "axisCenteredZero": false,
"h": 8, "axisColorMode": "text",
"w": 12, "axisLabel": "",
"x": 12, "axisPlacement": "auto",
"y": 0 "barAlignment": 0,
}, "drawStyle": "line",
"id": 34, "fillOpacity": 0,
"options": { "gradientMode": "none",
"legend": { "hideFrom": {
"calcs": [], "legend": false,
"displayMode": "list", "tooltip": false,
"placement": "bottom", "viz": false
"showLegend": false
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
}, },
"disableTextWrap": false, "insertNulls": false,
"editorMode": "builder", "lineInterpolation": "smooth",
"expr": "avg(homeassistant_sensor_temperature_celsius)", "lineWidth": 2,
"fullMetaSearch": false, "pointSize": 5,
"includeNullMetadata": true, "scaleDistribution": {
"instant": false, "type": "linear"
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Room temperature",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
}, },
"custom": { "showPoints": "auto",
"axisBorderShow": false, "spanNulls": false,
"axisCenteredZero": false, "stacking": {
"axisColorMode": "text", "group": "A",
"axisLabel": "", "mode": "none"
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 12,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "dashed+area"
}
}, },
"mappings": [], "thresholdsStyle": {
"thresholds": { "mode": "off"
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 750
},
{
"color": "red",
"value": 1000
}
]
},
"unit": "ppm"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 8
},
"id": 35,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg(homeassistant_sensor_carbon_dioxide_ppm)",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Room CO2",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": 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
}
]
} }
}, },
"overrides": [] "mappings": [],
}, "thresholds": {
"gridPos": { "mode": "absolute",
"h": 8, "steps": [
"w": 12, {
"x": 12, "color": "green",
"y": 8 "value": null
}, }
"id": 37, ]
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
}, },
"tooltip": { "unit": "percent"
"maxHeight": 600, },
"mode": "single", "overrides": []
"sort": "none" },
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 0
},
"id": 36,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg(homeassistant_sensor_humidity_percent)",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Room humidity",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 25,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 2,
"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": "byName",
"options": "avg(avg_over_time(homeassistant_sensor_temperature_celsius[5h]))"
},
"properties": [
{
"id": "custom.fillOpacity",
"value": 0
},
{
"id": "custom.lineStyle",
"value": {
"dash": [
10,
10
],
"fill": "dash"
}
},
{
"id": "custom.lineWidth",
"value": 4
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 12,
"y": 0
},
"id": 34,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg(homeassistant_sensor_temperature_celsius)",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg(avg_over_time(homeassistant_sensor_temperature_celsius[5h]))",
"fullMetaSearch": false,
"hide": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "B",
"useBackend": false
}
],
"title": "Room temperature",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 12,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "smooth",
"lineWidth": 2,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "dashed+area"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "#EAB839",
"value": 750
},
{
"color": "red",
"value": 1000
}
]
},
"unit": "ppm"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 8
},
"id": 35,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": false
},
"tooltip": {
"maxHeight": 600,
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"disableTextWrap": false,
"editorMode": "builder",
"expr": "avg(homeassistant_sensor_carbon_dioxide_ppm)",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "__auto",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Room CO2",
"type": "timeseries"
},
{
"datasource": {
"type": "prometheus",
"uid": "PBFA97CFB590B2093"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "bars",
"fillOpacity": 22,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 10,
"pointSize": 8,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
} }
}, },
"targets": [ "overrides": []
{ },
"datasource": { "gridPos": {
"type": "prometheus", "h": 8,
"uid": "PBFA97CFB590B2093" "w": 12,
}, "x": 12,
"disableTextWrap": false, "y": 8
"editorMode": "builder", },
"expr": "sum(homeassistant_automation_triggered_count_total)", "id": 37,
"fullMetaSearch": false, "options": {
"includeNullMetadata": true, "legend": {
"instant": false, "calcs": [],
"legendFormat": "__auto", "displayMode": "list",
"range": true, "placement": "bottom",
"refId": "A", "showLegend": false
"useBackend": false },
} "tooltip": {
], "maxHeight": 600,
"title": "Home assistant - automation runs", "mode": "single",
"type": "timeseries" "sort": "none"
} }
], },
"refresh": "1m", "targets": [
"schemaVersion": 39, {
"tags": [], "datasource": {
"templating": { "type": "prometheus",
"list": [] "uid": "PBFA97CFB590B2093"
}, },
"time": { "disableTextWrap": false,
"from": "now-7d", "editorMode": "builder",
"to": "now" "expr": "sum(rate(homeassistant_automation_triggered_count_total[$__rate_interval]))",
}, "fullMetaSearch": false,
"timeRangeUpdatedDuringEditOrView": false, "includeNullMetadata": true,
"timepicker": { "instant": false,
"refresh_intervals": [ "legendFormat": "__auto",
"30s", "range": true,
"1m", "refId": "A",
"5m", "useBackend": false
"15m", }
"30m", ],
"1h", "title": "Home assistant - automation runs",
"2h", "type": "timeseries"
"1d" }
] ],
}, "refresh": "",
"timezone": "browser", "schemaVersion": 39,
"title": "Home assistant - overview", "tags": [],
"uid": "bdpcuaieogf0gb", "templating": {
"version": 1, "list": []
"weekStart": "" },
} "time": {
"from": "now-7d",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "browser",
"title": "Home assistant - overview",
"uid": "bdpcuaieogf0gb",
"version": 1,
"weekStart": ""
}