Skip to content

Commit

Permalink
Add sample dashboard and image to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Macdonald-Wallace committed Feb 1, 2021
1 parent 5836b53 commit f311578
Show file tree
Hide file tree
Showing 3 changed files with 383 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
379 changes: 379 additions & 0 deletions grafana/overview.json
Original file line number Diff line number Diff line change
@@ -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": "<h1 style=\"text-align:center\">House Overview</h1>",
"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
}
Binary file added screenshots/Hubitat2promOverview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f311578

Please sign in to comment.