From 230e0cc9dc90dc3c2402bcd51c38d42fb8e0d4b5 Mon Sep 17 00:00:00 2001 From: Micha Date: Sat, 13 Jun 2026 17:46:47 +0200 Subject: [PATCH] fix: weather dashboard entity_id without domain prefix HA influxdb-Integration speichert entity_id ohne 'sensor.'-Praefix. Queries entsprechend angepasst (gw3000a_* statt sensor.gw3000a_*). Co-Authored-By: Claude Fable 5 --- monitoring/grafana/dashboards/weather-archive.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/monitoring/grafana/dashboards/weather-archive.json b/monitoring/grafana/dashboards/weather-archive.json index 7bf5479..72e7718 100644 --- a/monitoring/grafana/dashboards/weather-archive.json +++ b/monitoring/grafana/dashboards/weather-archive.json @@ -18,7 +18,7 @@ "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "fieldConfig": { "defaults": { "unit": "celsius", "custom": { "drawStyle": "line", "fillOpacity": 8 } }, "overrides": [] }, "targets": [ - { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value, entity_id FROM \"°C\" WHERE entity_id IN ('sensor.gw3000a_outdoor_temperature','sensor.gw3000a_feels_like_temperature','sensor.gw3000a_dewpoint') AND $__timeFilter(time) ORDER BY time" } + { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value, entity_id FROM \"°C\" WHERE entity_id IN ('gw3000a_outdoor_temperature','gw3000a_feels_like_temperature','gw3000a_dewpoint') AND $__timeFilter(time) ORDER BY time" } ] }, { @@ -29,7 +29,7 @@ "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "fieldConfig": { "defaults": { "unit": "percent", "custom": { "drawStyle": "line", "fillOpacity": 8 } }, "overrides": [] }, "targets": [ - { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value, entity_id FROM \"%\" WHERE entity_id IN ('sensor.gw3000a_humidity','sensor.gw3000a_indoor_humidity') AND $__timeFilter(time) ORDER BY time" } + { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value, entity_id FROM \"%\" WHERE entity_id IN ('gw3000a_humidity','gw3000a_indoor_humidity') AND $__timeFilter(time) ORDER BY time" } ] }, { @@ -40,7 +40,7 @@ "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "fieldConfig": { "defaults": { "unit": "velocitykmh", "custom": { "drawStyle": "line", "fillOpacity": 8 } }, "overrides": [] }, "targets": [ - { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value, entity_id FROM \"km/h\" WHERE entity_id IN ('sensor.gw3000a_wind_speed','sensor.gw3000a_wind_gust') AND $__timeFilter(time) ORDER BY time" } + { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value, entity_id FROM \"km/h\" WHERE entity_id IN ('gw3000a_wind_speed','gw3000a_wind_gust') AND $__timeFilter(time) ORDER BY time" } ] }, { @@ -51,7 +51,7 @@ "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "fieldConfig": { "defaults": { "unit": "wattm2", "custom": { "drawStyle": "line", "fillOpacity": 20 } }, "overrides": [] }, "targets": [ - { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value, entity_id FROM \"W/m²\" WHERE entity_id = 'sensor.gw3000a_solar_radiation' AND $__timeFilter(time) ORDER BY time" } + { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value, entity_id FROM \"W/m²\" WHERE entity_id = 'gw3000a_solar_radiation' AND $__timeFilter(time) ORDER BY time" } ] }, { @@ -62,7 +62,7 @@ "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "fieldConfig": { "defaults": { "unit": "lengthmm", "custom": { "drawStyle": "bars", "fillOpacity": 60 } }, "overrides": [] }, "targets": [ - { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT date_bin(INTERVAL '1 day', time) AS time, max(value) AS value FROM \"mm\" WHERE entity_id = 'sensor.gw3000a_daily_rain' AND $__timeFilter(time) GROUP BY 1 ORDER BY 1" } + { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT date_bin(INTERVAL '1 day', time) AS time, max(value) AS value FROM \"mm\" WHERE entity_id = 'gw3000a_daily_rain' AND $__timeFilter(time) GROUP BY 1 ORDER BY 1" } ] }, { @@ -73,7 +73,7 @@ "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "fieldConfig": { "defaults": { "unit": "pressurehpa", "custom": { "drawStyle": "line", "fillOpacity": 8 } }, "overrides": [] }, "targets": [ - { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value FROM \"hPa\" WHERE entity_id = 'sensor.gw3000a_relative_pressure' AND $__timeFilter(time) ORDER BY time" } + { "refId": "A", "datasource": { "type": "influxdb", "uid": "ha-weather-influx" }, "rawQuery": true, "format": "time_series", "rawSql": "SELECT time, value FROM \"hPa\" WHERE entity_id = 'gw3000a_relative_pressure' AND $__timeFilter(time) ORDER BY time" } ] } ]