{ "annotations": {"list": []}, "editable": true, "graphTooltip": 1, "panels": [ { "type": "timeseries", "title": "$group_type: $group", "id": 1, "repeat": "group", "repeatDirection": "v", "gridPos": {"h": 10, "w": 24, "x": 0, "y": 0}, "fieldConfig": { "defaults": { "decimals": 0, "min": 0, "custom": {"drawStyle": "bars", "barAlignment": 0, "fillOpacity": 80, "lineWidth": 1, "stacking": {"mode": "normal", "group": "lights"}} }, "overrides": [ {"matcher": {"id": "byName", "options": "Unavailable"}, "properties": [{"id": "color", "value": {"mode": "fixed", "fixedColor": "#8b0000"}}]}, {"matcher": {"id": "byName", "options": "Off"}, "properties": [{"id": "color", "value": {"mode": "fixed", "fixedColor": "#4b5563"}}]}, {"matcher": {"id": "byName", "options": "On"}, "properties": [{"id": "color", "value": {"mode": "fixed", "fixedColor": "#facc15"}}]}, {"matcher": {"id": "byName", "options": "Intensity"}, "properties": [ {"id": "unit", "value": "percent"}, {"id": "max", "value": 100}, {"id": "custom.axisPlacement", "value": "right"}, {"id": "custom.drawStyle", "value": "line"}, {"id": "custom.fillOpacity", "value": 0}, {"id": "custom.lineWidth", "value": 3}, {"id": "custom.stacking", "value": {"mode": "none", "group": "intensity"}}, {"id": "color", "value": {"mode": "fixed", "fixedColor": "#22c55e"}} ]} ] }, "targets": [ {"expr": "hue_group_lights_unavailable{group_type=\"$group_type\", group=~\"$group\"}", "legendFormat": "Unavailable", "refId": "A"}, {"expr": "hue_group_lights_off{group_type=\"$group_type\", group=~\"$group\"}", "legendFormat": "Off", "refId": "B"}, {"expr": "hue_group_lights_shining{group_type=\"$group_type\", group=~\"$group\"}", "legendFormat": "On", "refId": "C"}, {"expr": "hue_group_average_brightness_percent{group_type=\"$group_type\", group=~\"$group\"}", "legendFormat": "Intensity", "refId": "D"} ] }, { "type": "timeseries", "title": "Temperature", "id": 3, "gridPos": {"h": 8, "w": 12, "x": 0, "y": 10}, "fieldConfig": {"defaults": {"unit": "celsius"}, "overrides": []}, "targets": [{"expr": "hue_temperature_celsius", "legendFormat": "{{sensor}} ({{room}})", "refId": "A"}] }, { "type": "timeseries", "title": "Light intensity", "id": 4, "gridPos": {"h": 8, "w": 12, "x": 12, "y": 10}, "fieldConfig": {"defaults": {"unit": "lux"}, "overrides": []}, "targets": [{"expr": "hue_light_level_lux", "legendFormat": "{{sensor}} ({{room}})", "refId": "A"}] }, { "type": "table", "title": "Unavailable sensors", "id": 5, "gridPos": {"h": 7, "w": 24, "x": 0, "y": 18}, "targets": [{"expr": "hue_sensor_available == 0", "format": "table", "instant": true, "refId": "A"}] } ], "refresh": "30s", "schemaVersion": 42, "tags": ["hue"], "templating": {"list": [ { "name": "group_type", "label": "Show", "type": "custom", "query": "room,zone", "options": [ {"selected": true, "text": "room", "value": "room"}, {"selected": false, "text": "zone", "value": "zone"} ], "current": {"selected": true, "text": "room", "value": "room"} }, { "name": "group", "label": "Room / zone", "type": "query", "datasource": {"type": "prometheus", "uid": "victoriametrics"}, "definition": "label_values(hue_group_lights_available{group_type=\"$group_type\"}, group)", "query": {"query": "label_values(hue_group_lights_available{group_type=\"$group_type\"}, group)", "refId": "variable-group"}, "refresh": 1, "sort": 1, "multi": true, "includeAll": true, "allValue": ".+", "current": {"selected": true, "text": "All", "value": "$__all"} } ]}, "time": {"from": "now-24h", "to": "now"}, "timezone": "browser", "title": "Philips Hue", "uid": "philips-hue-local", "version": 2 }