So when you don't export it for sharing it doesn't prompt for a database on import. Then it doesn't change the Variables datasource to a db and leaves them as variables.
Try this json to import it. I think I finally got it working in my setup.
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "datasource",
"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": 17,
"links": [],
"liveNow": false,
"panels": [
{
"datasource": {
"type": "influxdb",
"uid": "${datasource_InfluxDB}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "fixed"
},
"custom": {
"fillOpacity": 70,
"lineWidth": 0,
"spanNulls": false
},
"displayName": "HVAC Activity",
"mappings": [
{
"options": {
"cooling": {
"color": "dark-blue",
"index": 3,
"text": "Cooling"
},
"fan\\ only": {
"color": "dark-green",
"index": 2,
"text": "Circulation Only"
},
"heating": {
"color": "dark-red",
"index": 0,
"text": "Heating"
},
"idle": {
"color": "transparent",
"index": 1,
"text": "Idle"
}
},
"type": "value"
}
],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 5,
"w": 23,
"x": 0,
"y": 0
},
"id": 2,
"options": {
"alignValue": "left",
"legend": {
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"mergeValues": true,
"rowHeight": 0.9,
"showValue": "never",
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"alias": "$tag_deviceName",
"datasource": {
"type": "influxdb",
"uid": "${datasource_InfluxDB}"
},
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"deviceName"
],
"type": "tag"
}
],
"measurement": "thermostatOperatingState",
"orderByTime": "ASC",
"policy": "$datasource_InfluxDB",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "distinct"
}
]
],
"tags": [
{
"key": "deviceName",
"operator": "=~",
"value": "/^$thermostat$/"
}
]
}
],
"title": "HVAC Activity",
"type": "state-timeline"
},
{
"datasource": {
"type": "influxdb",
"uid": "${datasource_InfluxDB}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Temperature",
"axisPlacement": "left",
"axisWidth": 80,
"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
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 23,
"x": 0,
"y": 5
},
"id": 4,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"alias": "$tag_deviceName",
"datasource": {
"type": "influxdb",
"uid": "${datasource_InfluxDB}"
},
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"deviceName"
],
"type": "tag"
},
{
"params": [
"linear"
],
"type": "fill"
}
],
"measurement": "temperature",
"orderByTime": "ASC",
"policy": "$datasource_InfluxDB",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": [
{
"key": "deviceName",
"operator": "=~",
"value": "/^$outdoor_Temp_Sensors$/"
}
]
}
],
"title": "Outdoor Temp Sensors",
"type": "timeseries"
},
{
"datasource": {
"type": "influxdb",
"uid": "${datasource_InfluxDB}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Temperature",
"axisPlacement": "left",
"axisWidth": 80,
"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
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 23,
"x": 0,
"y": 11
},
"id": 5,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"alias": "$tag_deviceName",
"datasource": {
"type": "influxdb",
"uid": "${datasource_InfluxDB}"
},
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"deviceName"
],
"type": "tag"
},
{
"params": [
"linear"
],
"type": "fill"
}
],
"measurement": "temperature",
"orderByTime": "ASC",
"policy": "$datasource_InfluxDB",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": [
{
"key": "deviceName",
"operator": "=~",
"value": "/^$hvac_temp_Sensors$/"
}
]
}
],
"title": "HVAC Aux Temp Sensors",
"type": "timeseries"
},
{
"datasource": {
"type": "influxdb",
"uid": "${datasource_InfluxDB}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "Temperature",
"axisPlacement": "left",
"axisWidth": 80,
"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
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 6,
"w": 23,
"x": 0,
"y": 17
},
"id": 6,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"alias": "$tag_deviceName",
"datasource": {
"type": "influxdb",
"uid": "${datasource_InfluxDB}"
},
"groupBy": [
{
"params": [
"$__interval"
],
"type": "time"
},
{
"params": [
"deviceName"
],
"type": "tag"
},
{
"params": [
"linear"
],
"type": "fill"
}
],
"measurement": "temperature",
"orderByTime": "ASC",
"policy": "$datasource_InfluxDB",
"refId": "A",
"resultFormat": "time_series",
"select": [
[
{
"params": [
"value"
],
"type": "field"
},
{
"params": [],
"type": "mean"
}
]
],
"tags": [
{
"key": "deviceName",
"operator": "=~",
"value": "/^$alt_Indoor_Temp$/"
}
]
}
],
"title": "Alt Indoor Temp Sensors",
"type": "timeseries"
}
],
"refresh": "",
"schemaVersion": 38,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "default",
"value": "default"
},
"hide": 0,
"includeAll": false,
"label": "Database",
"multi": false,
"name": "datasource_InfluxDB",
"options": [],
"query": "influxdb",
"queryValue": "",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
},
{
"current": {
"selected": true,
"text": [],
"value": []
},
"datasource": {
"type": "influxdb",
"uid": "${datasource_InfluxDB}"
},
"definition": "select DISTINCT(\"deviceName\") FROM (select * from \"thermostatMode\" where $timeFilter)",
"hide": 0,
"includeAll": false,
"label": "Thermostat",
"multi": true,
"name": "thermostat",
"options": [],
"query": "select DISTINCT(\"deviceName\") FROM (select * from \"thermostatMode\" where $timeFilter)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [],
"value": []
},
"datasource": {
"type": "influxdb",
"uid": "${datasource_InfluxDB}"
},
"definition": "select DISTINCT(\"deviceName\") FROM (select * from \"temperature\" where $timeFilter)",
"hide": 0,
"includeAll": false,
"label": "HVAC Temp Sensors",
"multi": true,
"name": "hvac_temp_Sensors",
"options": [],
"query": "select DISTINCT(\"deviceName\") FROM (select * from \"temperature\" where $timeFilter)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [],
"value": []
},
"datasource": {
"type": "influxdb",
"uid": "${datasource_InfluxDB}"
},
"definition": "select DISTINCT(\"deviceName\") FROM (select * from \"temperature\" where $timeFilter)",
"hide": 0,
"includeAll": false,
"label": "Outdoor Sensors",
"multi": true,
"name": "outdoor_Temp_Sensors",
"options": [],
"query": "select DISTINCT(\"deviceName\") FROM (select * from \"temperature\" where $timeFilter)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
},
{
"current": {
"selected": true,
"text": [],
"value": []
},
"datasource": {
"type": "influxdb",
"uid": "${datasource_InfluxDB}"
},
"definition": "select DISTINCT(\"deviceName\") FROM (select * from \"temperature\" where $timeFilter)",
"hide": 0,
"includeAll": false,
"label": "Alternate Indoor Temp Sensors",
"multi": true,
"name": "alt_Indoor_Temp",
"options": [],
"query": "select DISTINCT(\"deviceName\") FROM (select * from \"temperature\" where $timeFilter)",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-2d",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "HVAC Activity",
"uid": "iliPwTJnz",
"version": 27,
"weekStart": ""
}
I had to export it without specifying it is for sharing. I also had to clear all of my selections before hand as i don't know what impact that would have on others.