diff --git a/README.md b/README.md index d210fe6..f83ffd8 100644 --- a/README.md +++ b/README.md @@ -66,4 +66,8 @@ The default collections are: - temperature ``` +# Grafana +There's a sample dashboard in the [grafana/](grafana) directory that you can [import into Grafana](https://grafana.com/docs/grafana/latest/dashboards/export-import/#importing-a-dashboard) to give you an idea of what is possible! + +![The sample Grafana dashboard](/screenshots/Hubitat2promOverview.png) diff --git a/grafana/overview.json b/grafana/overview.json new file mode 100644 index 0000000..3c41cef --- /dev/null +++ b/grafana/overview.json @@ -0,0 +1,379 @@ +{ + "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": 0, + "id": 2, + "links": [], + "panels": [ + { + "datasource": null, + "description": "", + "fieldConfig": { + "defaults": { + "custom": {} + }, + "overrides": [] + }, + "gridPos": { + "h": 2, + "w": 24, + "x": 0, + "y": 0 + }, + "id": 15, + "options": { + "content": "

House Overview

", + "mode": "html" + }, + "pluginVersion": "7.3.7", + "timeFrom": null, + "timeShift": null, + "title": "", + "type": "text" + }, + { + "datasource": null, + "description": "", + "fieldConfig": { + "defaults": { + "custom": {}, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "blue", + "value": null + }, + { + "color": "green", + "value": 19 + }, + { + "color": "red", + "value": 24 + } + ] + }, + "unit": "celsius" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 10, + "x": 0, + "y": 2 + }, + "id": 10, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "7.3.7", + "targets": [ + { + "expr": "temperature{job=\"hubitat\"} > -5 ", + "interval": "", + "legendFormat": "{{device_name}}", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "House Temperature", + "type": "stat" + }, + { + "datasource": null, + "description": "", + "fieldConfig": { + "defaults": { + "custom": {}, + "decimals": 2, + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 50 + }, + { + "color": "green", + "value": 70 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 6, + "x": 10, + "y": 2 + }, + "id": 19, + "options": { + "displayMode": "lcd", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true + }, + "pluginVersion": "7.3.7", + "targets": [ + { + "expr": "battery{job=\"hubitat\"}", + "interval": "", + "legendFormat": "{{device_name}}", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Sensor Battery Levels", + "type": "bargauge" + }, + { + "datasource": null, + "description": "", + "fieldConfig": { + "defaults": { + "custom": {}, + "decimals": 2, + "mappings": [], + "max": 100, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "yellow", + "value": 50 + }, + { + "color": "green", + "value": 70 + } + ] + }, + "unit": "lux" + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 8, + "x": 16, + "y": 2 + }, + "id": 22, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "7.3.7", + "targets": [ + { + "expr": "illuminance{job=\"hubitat\"}", + "interval": "", + "legendFormat": "{{device_name}}", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Detected Light Levels", + "type": "stat" + }, + { + "datasource": null, + "description": "", + "fieldConfig": { + "defaults": { + "custom": {}, + "decimals": 2, + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "red", + "value": null + }, + { + "color": "green", + "value": 40 + }, + { + "color": "red", + "value": 60 + } + ] + }, + "unit": "percent" + }, + "overrides": [] + }, + "gridPos": { + "h": 3, + "w": 10, + "x": 0, + "y": 5 + }, + "id": 11, + "options": { + "colorMode": "value", + "graphMode": "area", + "justifyMode": "auto", + "orientation": "auto", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "textMode": "auto" + }, + "pluginVersion": "7.3.7", + "targets": [ + { + "expr": "humidity{job=\"hubitat\"} > -5 ", + "interval": "", + "legendFormat": "{{device_name}}", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "House Humidity", + "type": "stat" + }, + { + "datasource": null, + "description": "", + "fieldConfig": { + "defaults": { + "custom": {}, + "mappings": [], + "max": 1, + "min": 0, + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "rgb(102, 102, 102)", + "value": null + }, + { + "color": "rgb(255, 255, 255)", + "value": 100 + } + ] + } + }, + "overrides": [] + }, + "gridPos": { + "h": 6, + "w": 14, + "x": 10, + "y": 8 + }, + "id": 21, + "options": { + "displayMode": "gradient", + "orientation": "horizontal", + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "showUnfilled": true + }, + "pluginVersion": "7.3.7", + "targets": [ + { + "expr": "level{instance=\"hubitat2prom.service.wallace.network:80\",device_name !~ \".+sonos\"}", + "interval": "", + "legendFormat": "{{device_name}}", + "refId": "A" + } + ], + "timeFrom": null, + "timeShift": null, + "title": "Dimmers", + "type": "bargauge" + } + ], + "refresh": "10s", + "schemaVersion": 26, + "style": "dark", + "tags": [], + "templating": { + "list": [] + }, + "time": { + "from": "now-6h", + "to": "now" + }, + "timepicker": {}, + "timezone": "", + "title": "hubitat2prom", + "uid": "gxRLPJLGk", + "version": 2 +} diff --git a/screenshots/Hubitat2promOverview.png b/screenshots/Hubitat2promOverview.png new file mode 100644 index 0000000..4e4f536 Binary files /dev/null and b/screenshots/Hubitat2promOverview.png differ