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 <noreply@anthropic.com>
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
"datasource": { "type": "influxdb", "uid": "ha-weather-influx" },
|
"datasource": { "type": "influxdb", "uid": "ha-weather-influx" },
|
||||||
"fieldConfig": { "defaults": { "unit": "celsius", "custom": { "drawStyle": "line", "fillOpacity": 8 } }, "overrides": [] },
|
"fieldConfig": { "defaults": { "unit": "celsius", "custom": { "drawStyle": "line", "fillOpacity": 8 } }, "overrides": [] },
|
||||||
"targets": [
|
"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" },
|
"datasource": { "type": "influxdb", "uid": "ha-weather-influx" },
|
||||||
"fieldConfig": { "defaults": { "unit": "percent", "custom": { "drawStyle": "line", "fillOpacity": 8 } }, "overrides": [] },
|
"fieldConfig": { "defaults": { "unit": "percent", "custom": { "drawStyle": "line", "fillOpacity": 8 } }, "overrides": [] },
|
||||||
"targets": [
|
"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" },
|
"datasource": { "type": "influxdb", "uid": "ha-weather-influx" },
|
||||||
"fieldConfig": { "defaults": { "unit": "velocitykmh", "custom": { "drawStyle": "line", "fillOpacity": 8 } }, "overrides": [] },
|
"fieldConfig": { "defaults": { "unit": "velocitykmh", "custom": { "drawStyle": "line", "fillOpacity": 8 } }, "overrides": [] },
|
||||||
"targets": [
|
"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" },
|
"datasource": { "type": "influxdb", "uid": "ha-weather-influx" },
|
||||||
"fieldConfig": { "defaults": { "unit": "wattm2", "custom": { "drawStyle": "line", "fillOpacity": 20 } }, "overrides": [] },
|
"fieldConfig": { "defaults": { "unit": "wattm2", "custom": { "drawStyle": "line", "fillOpacity": 20 } }, "overrides": [] },
|
||||||
"targets": [
|
"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" },
|
"datasource": { "type": "influxdb", "uid": "ha-weather-influx" },
|
||||||
"fieldConfig": { "defaults": { "unit": "lengthmm", "custom": { "drawStyle": "bars", "fillOpacity": 60 } }, "overrides": [] },
|
"fieldConfig": { "defaults": { "unit": "lengthmm", "custom": { "drawStyle": "bars", "fillOpacity": 60 } }, "overrides": [] },
|
||||||
"targets": [
|
"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" },
|
"datasource": { "type": "influxdb", "uid": "ha-weather-influx" },
|
||||||
"fieldConfig": { "defaults": { "unit": "pressurehpa", "custom": { "drawStyle": "line", "fillOpacity": 8 } }, "overrides": [] },
|
"fieldConfig": { "defaults": { "unit": "pressurehpa", "custom": { "drawStyle": "line", "fillOpacity": 8 } }, "overrides": [] },
|
||||||
"targets": [
|
"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" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user