Moin,
ich denke, dass Du einen auf dem Standard gelassen hast, Du musst alle mit Override anpassen, siehe mein Beispiel
Hier der
json Code
{
"__inputs": [
{
"name": "DS_HOME_ASSISTANT",
"label": "home_assistant",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
}
],
"__elements": {},
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "11.6.1"
},
{
"type": "datasource",
"id": "influxdb",
"name": "InfluxDB",
"version": "1.0.0"
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": null,
"links": [],
"panels": [
{
"datasource": {
"type": "influxdb",
"uid": "${DS_HOME_ASSISTANT}"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"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"
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": [
{
"matcher": {
"id": "byName",
"options": "% value {domain=\"sensor\", entity_id=\"aussenthermometer_klima_humidity\", friendly_name=\"Außenthermometer [Klima] Luftfeuchtigkeit\", source=\"HA\"}"
},
"properties": [
{
"id": "displayName",
"value": "Luftfeuchtigkeit"
},
{
"id": "custom.axisSoftMin",
"value": 0
},
{
"id": "custom.axisSoftMax",
"value": 2000
}
]
},
{
"matcher": {
"id": "byName",
"options": "hPa value {domain=\"sensor\", entity_id=\"aussenthermometer_klima_pressure\", friendly_name=\"Außenthermometer [Klima] Atmosphärischer Druck\", source=\"HA\"}"
},
"properties": [
{
"id": "displayName",
"value": "Luftdruck"
},
{
"id": "custom.axisSoftMin",
"value": 500
},
{
"id": "custom.axisSoftMax",
"value": 1500
},
{
"id": "custom.axisPlacement",
"value": "left"
}
]
},
{
"matcher": {
"id": "byName",
"options": "°C value {domain=\"sensor\", entity_id=\"aussenthermometer_klima_temperature\", friendly_name=\"Außenthermometer [Klima] Temperatur\", source=\"HA\"}"
},
"properties": [
{
"id": "displayName",
"value": "Temperatur"
},
{
"id": "custom.axisSoftMin"
},
{
"id": "custom.axisSoftMax",
"value": 40
}
]
}
]
},
"gridPos": {
"h": 8,
"w": 12,
"x": 0,
"y": 0
},
"id": 1,
"options": {
"legend": {
"calcs": [
"lastNotNull"
],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"hideZeros": false,
"mode": "single",
"sort": "none"
}
},
"pluginVersion": "11.6.1",
"targets": [
{
"datasource": {
"type": "influxdb",
"uid": "${DS_HOME_ASSISTANT}"
},
"query": "from(bucket: \"home_assistant\")\n |> range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"entity_id\"] == \"aussenthermometer_klima_temperature\" or r[\"entity_id\"] == \"aussenthermometer_klima_pressure\" or r[\"entity_id\"] == \"aussenthermometer_klima_humidity\")\n |> filter(fn: (r) => r[\"friendly_name\"] == \"Außenthermometer [Klima] Atmosphärischer Druck\" or r[\"friendly_name\"] == \"Außenthermometer [Klima] Luftfeuchtigkeit\" or r[\"friendly_name\"] == \"Außenthermometer [Klima] Temperatur\")\n |> filter(fn: (r) => r[\"_field\"] == \"value\")\n |> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)\n |> yield(name: \"mean\")\n",
"refId": "A"
}
],
"title": "Klima Draußen",
"type": "timeseries"
}
],
"schemaVersion": 41,
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-12h",
"to": "now"
},
"timepicker": {},
"timezone": "browser",
"title": "test4forum",
"uid": "celraymcblssgf",
"version": 1,
"weekStart": ""
}
VG
Bernd