diff --git a/fhem/contrib/ch.eick/Grafana/Dashboard/Diagramm_Hauptverbraucher_JSON.txt b/fhem/contrib/ch.eick/Grafana/Dashboard/Diagramm_Hauptverbraucher_JSON.txt new file mode 100644 index 000000000..546f399f0 --- /dev/null +++ b/fhem/contrib/ch.eick/Grafana/Dashboard/Diagramm_Hauptverbraucher_JSON.txt @@ -0,0 +1,639 @@ +{ + "aliasColors": { + "Garten_Kuehlschrank": "dark-blue", + "Heizung": "dark-red", + "Heizung value": "dark-red", + "Pool": "dark-yellow", + "SW_Total_DC_P_Max": "dark-blue", + "SW_Total_DC_P_Max value": "dark-blue", + "Shaun": "dark-green", + "Shaun value": "dark-green", + "WB_1_LP_1 Schneechen": "semi-dark-purple", + "WB_1_LP_2_Gast": "dark-purple", + "Waschmaschine": "light-red" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": null, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 6, + "w": 23, + "x": 0, + "y": 18 + }, + "hiddenSeries": false, + "id": 3, + "legend": { + "alignAsTable": true, + "avg": false, + "current": true, + "hideEmpty": false, + "hideZero": false, + "max": false, + "min": false, + "rightSide": true, + "show": true, + "sideWidth": 350, + "sort": "current", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "connected", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.11", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:937", + "alias": "SW_Total_DC_P_Max", + "fill": 0 + }, + { + "$$hashKey": "object:938", + "alias": "Pool", + "fill": 3, + "stack": true + }, + { + "$$hashKey": "object:939", + "alias": "Heizung", + "fill": 3, + "stack": true + }, + { + "$$hashKey": "object:940", + "alias": "Waschmaschine", + "fill": 3, + "stack": true + }, + { + "$$hashKey": "object:394", + "alias": "Brunnen", + "fill": 3, + "stack": true + }, + { + "$$hashKey": "object:416", + "alias": "WB_1_LP_1_Schneechen", + "fill": 3, + "stack": true + }, + { + "$$hashKey": "object:253", + "alias": "WB_1_LP_2_Gast", + "fill": 3, + "stack": true + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [ + { + "params": [ + "$__interval", + "previous" + ], + "type": "time" + } + ], + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(value) AS \"SW_Total_DC_P_Max\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_1' AND\n READING = 'SW_Total_DC_P_Max'\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "SW_Total_DC_P_Max", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + }, + { + "params": [ + "avg" + ], + "type": "aggregate" + }, + { + "params": [ + "value" + ], + "type": "alias" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "READING", + "=", + "'SW_Total_DC_P_Max'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [ + { + "params": [ + "$__interval", + "previous" + ], + "type": "time" + } + ], + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n abs(avg(value)) AS \"Heizung\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'StromZaehler_Heizung' AND\n READING = 'SMAEM1901401955_Saldo_Wirkleistung'\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "Heizung", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + }, + { + "params": [ + "avg" + ], + "type": "aggregate" + }, + { + "params": [ + "value" + ], + "type": "alias" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'StromZaehler_Heizung'" + ], + "type": "expression" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "READING", + "=", + "'SMAEM1901401955_Saldo_Wirkleistung'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [ + { + "params": [ + "$__interval", + "previous" + ], + "type": "time" + } + ], + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(value) AS \"Pool\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'shelly02' AND\n READING = 'Power_0'\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "Pool", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + }, + { + "params": [ + "avg" + ], + "type": "aggregate" + }, + { + "params": [ + "value" + ], + "type": "alias" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'shelly02'" + ], + "type": "expression" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "READING", + "=", + "'Power_0'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [ + { + "params": [ + "$__interval", + "previous" + ], + "type": "time" + } + ], + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(value) AS \"Waschmaschine\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'shelly03' AND\n READING = 'power'\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "Waschmaschine", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + }, + { + "params": [ + "avg" + ], + "type": "aggregate" + }, + { + "params": [ + "value" + ], + "type": "alias" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'shelly03'" + ], + "type": "expression" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "READING", + "=", + "'power'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [ + { + "params": [ + "$__interval", + "previous" + ], + "type": "time" + } + ], + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(value) AS \"Brunnen\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'shelly05' AND\n READING = 'power_0'\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "Brunnen", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + }, + { + "params": [ + "avg" + ], + "type": "aggregate" + }, + { + "params": [ + "value" + ], + "type": "alias" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'shelly05'" + ], + "type": "expression" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "READING", + "=", + "'power_0'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [ + { + "params": [ + "$__interval", + "previous" + ], + "type": "time" + } + ], + "hide": false, + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(value) AS \"WB_1_LP_1_Schneechen\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WB_1' AND\n READING = 'lp_1_W'\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "WB_1_LP_1_Schneechen", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + }, + { + "params": [ + "avg" + ], + "type": "aggregate" + }, + { + "params": [ + "value" + ], + "type": "alias" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'shelly02'" + ], + "type": "expression" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "READING", + "=", + "'Power_0'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [ + { + "params": [ + "$__interval", + "previous" + ], + "type": "time" + } + ], + "hide": false, + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(value) AS \"WB_1_LP_2_Gast\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WB_1' AND\n READING = 'lp_2_W'\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "WB_1_LP_2 Gast", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + }, + { + "params": [ + "avg" + ], + "type": "aggregate" + }, + { + "params": [ + "value" + ], + "type": "alias" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'shelly02'" + ], + "type": "expression" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "READING", + "=", + "'Power_0'" + ], + "type": "expression" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Hauptverbraucher", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:322", + "decimals": 0, + "format": "short", + "label": "Watt", + "logBase": 1, + "max": "14000", + "min": "0", + "show": true + }, + { + "$$hashKey": "object:323", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + }, + "datasource": null +} \ No newline at end of file diff --git a/fhem/contrib/ch.eick/Grafana/Dashboard/Diagramm_KI_Prognose_JSON.txt b/fhem/contrib/ch.eick/Grafana/Dashboard/Diagramm_KI_Prognose_JSON.txt new file mode 100644 index 000000000..cebfb4569 --- /dev/null +++ b/fhem/contrib/ch.eick/Grafana/Dashboard/Diagramm_KI_Prognose_JSON.txt @@ -0,0 +1,877 @@ +{ + "aliasColors": { + "EVU_Tibber": "super-light-red", + "KI_Solar_yield_fc0": "semi-dark-purple", + "KI_Solar_yield_fc1": "dark-red", + "KI_Yield_fc0": "dark-purple", + "KI_fc0": "super-light-red", + "SW_Total_DC_P_Max value": "dark-blue", + "SW_Total_DC_P_sumOfAllPVInputs": "dark-blue", + "Schwarm_yield": "super-light-blue", + "Solar_Calculation": "dark-yellow", + "Solar_Calculation_fc0": "super-light-green", + "Solar_Calculation_fc0 value": "light-green", + "Solar_Calculation_fc1": "dark-red", + "Solar_Calculation_fc1 value": "dark-red", + "Solar_East": "super-light-blue", + "Solar_East value": "super-light-blue", + "Solar_South": "light-red", + "Solar_South value": "light-red", + "Solar_West": "light-purple", + "Solar_West value": "super-light-purple", + "Solar_yield_fc0": "light-purple", + "fc0_total": "super-light-red" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": null, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 0, + "fillGradient": 0, + "gridPos": { + "h": 9, + "w": 23, + "x": 0, + "y": 9 + }, + "hiddenSeries": false, + "id": 4, + "legend": { + "alignAsTable": true, + "avg": false, + "current": true, + "max": false, + "min": false, + "rightSide": true, + "show": true, + "sideWidth": 350, + "sort": "current", + "sortDesc": false, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.11", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:1028", + "alias": "Solar_Calculation_fc0", + "linewidth": 2, + "steppedLine": true + }, + { + "$$hashKey": "object:1029", + "alias": "Power_DC_Sum", + "fill": 2 + }, + { + "$$hashKey": "object:622", + "alias": "Schwarm_yield", + "fill": 3, + "steppedLine": true + }, + { + "$$hashKey": "object:629", + "alias": "KI_Yield_fc0", + "steppedLine": true + }, + { + "$$hashKey": "object:156", + "alias": "Solar_Calculation_fc1", + "steppedLine": true + }, + { + "$$hashKey": "object:769", + "alias": "KI_Yield_fc1", + "steppedLine": true + }, + { + "$$hashKey": "object:846", + "alias": "EVU_Tibber", + "steppedLine": true + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [], + "hide": true, + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n TIMESTAMP AS \"time\",\n value AS \"Solar_Calculation_fc0\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_1' AND\n READING = 'Solar_Calculation_fc0'\nORDER BY TIMESTAMP", + "refId": "Solar_Calculation_fc0", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "READING", + "=", + "'Solar_Calculation_fc0'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [], + "hide": true, + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n TIMESTAMP AS \"time\",\n value AS \"Solar_Calculation_fc1\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_1' AND\n READING = 'Solar_Calculation_fc1'\nORDER BY TIMESTAMP", + "refId": "Solar_Calculation_fc1", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "READING", + "=", + "'Solar_Calculation_fc1'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [ + { + "params": [ + "$__interval", + "previous" + ], + "type": "time" + } + ], + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(value) AS \"SW_Total_DC_P_sumOfAllPVInputs\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_1' AND\n READING = 'SW_Total_DC_P_sumOfAllPVInputs'\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "SW_Total_DC_P_sumOfAllPVInputs", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + }, + { + "params": [ + "avg" + ], + "type": "aggregate" + }, + { + "params": [ + "value" + ], + "type": "alias" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "READING", + "=", + "'Power_DC_Sum'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [ + { + "params": [ + "$__interval", + "previous" + ], + "type": "time" + } + ], + "hide": true, + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(value) AS \"Solar_Calculation\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_1' AND\n READING = 'Solar_Calculation'\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "Solar_Calculation", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + }, + { + "params": [ + "avg" + ], + "type": "aggregate" + }, + { + "params": [ + "value" + ], + "type": "alias" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "READING", + "=", + "'Solar_Calculation'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [ + { + "params": [ + "$__interval", + "previous" + ], + "type": "time" + } + ], + "hide": true, + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(value) AS \"WR_1_Ost\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_1' AND\n READING = 'Solar_WR_1_Ost'\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "WR_1_Ost", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + }, + { + "params": [ + "avg" + ], + "type": "aggregate" + }, + { + "params": [ + "value" + ], + "type": "alias" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "READING", + "=", + "'WR_1_Ost'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [ + { + "params": [ + "$__interval", + "previous" + ], + "type": "time" + } + ], + "hide": true, + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(value) AS \"WR_1_West\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_1' AND\n READING = 'Solar_WR_1_West'\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "WR_1_West", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + }, + { + "params": [ + "avg" + ], + "type": "aggregate" + }, + { + "params": [ + "value" + ], + "type": "alias" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "READING", + "=", + "'WR_1_West'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [ + { + "params": [ + "$__interval", + "previous" + ], + "type": "time" + } + ], + "hide": true, + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(value) AS \"WR_2_Sued\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_1' AND\n READING = 'Solar_WR_2_Sued'\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "WR_2_Sued", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + }, + { + "params": [ + "avg" + ], + "type": "aggregate" + }, + { + "params": [ + "value" + ], + "type": "alias" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "READING", + "=", + "'WR_2_Sued'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [ + { + "params": [ + "$__interval", + "previous" + ], + "type": "time" + } + ], + "hide": true, + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(value) AS \"WR_2_West\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_1' AND\n READING = 'Solar_WR_2_West'\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "WR_2_West", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + }, + { + "params": [ + "avg" + ], + "type": "aggregate" + }, + { + "params": [ + "value" + ], + "type": "alias" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "READING", + "=", + "'WR_2_West'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [], + "hide": false, + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n TIMESTAMP AS \"time\",\n yield AS \"Schwarm_yield\"\nFROM dwdfull\nWHERE\n $__timeFilter(TIMESTAMP)\nORDER BY TIMESTAMP", + "refId": "Schwarm_yield", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "READING", + "=", + "'Solar_Calculation_fc1'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [], + "hide": false, + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n TIMESTAMP AS \"time\",\n value AS \"KI_Yield_fc0\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_ctl' AND\n READING = 'Yield_fc0'\nORDER BY TIMESTAMP", + "refId": "KI_Yield_fc0", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "READING", + "=", + "'Solar_Calculation_fc1'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [], + "hide": false, + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n TIMESTAMP AS \"time\",\n value AS \"KI_Yield_fc1\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_ctl' AND\n READING = 'Yield_fc1'\nORDER BY TIMESTAMP", + "refId": "KI_Yield_fc1", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "READING", + "=", + "'Solar_Calculation_fc1'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [], + "hide": true, + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n TIMESTAMP AS \"time\",\n cast(value*10000 AS DECIMAL (6,0)) AS \"EVU_Tibber\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'EVU_Tibber' AND\n READING = 'fc0_total'\nORDER BY TIMESTAMP", + "refId": "EVU_Tibber", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "READING", + "=", + "'Solar_Calculation_fc1'" + ], + "type": "expression" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Forecast/Prognose", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:1048", + "decimals": 0, + "format": "short", + "label": "Watt", + "logBase": 1, + "max": "16000", + "min": "0", + "show": true + }, + { + "$$hashKey": "object:1049", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + }, + "datasource": null +} \ No newline at end of file diff --git a/fhem/contrib/ch.eick/Grafana/Dashboard/Diagramm_Leistungsbezug_JSON.txt b/fhem/contrib/ch.eick/Grafana/Dashboard/Diagramm_Leistungsbezug_JSON.txt new file mode 100644 index 000000000..d5f4d74b6 --- /dev/null +++ b/fhem/contrib/ch.eick/Grafana/Dashboard/Diagramm_Leistungsbezug_JSON.txt @@ -0,0 +1,597 @@ +{ + "aliasColors": { + "Actual_battery_charge_usable_P": "dark-yellow", + "Actual_battery_charge_usable_P value": "dark-yellow", + "Battery_temperature": "dark-green", + "EVU Limit": "dark-red", + "EVU_Tibber": "super-light-red", + "SW_Home_own_consumption_from_Battery": "dark-red", + "SW_Home_own_consumption_from_Battery value": "dark-red", + "SW_Home_own_consumption_from_PV": "light-green", + "SW_Home_own_consumption_from_PV value": "light-green", + "SW_Home_own_consumption_from_grid": "rgb(90, 90, 90)", + "SW_Home_own_consumption_from_grid value": "rgb(250, 250, 250)", + "SW_Total_AC_Active_P": "dark-orange", + "SW_Total_DC_P": "semi-dark-green", + "SW_Total_DC_P value": "dark-green", + "SW_Total_DC_P_Max": "dark-blue", + "Tibber_fc0_trigger": "dark-yellow", + "Total_Active_P_EM_to_Grid": "dark-orange", + "fc0_total": "super-light-red" + }, + "bars": false, + "dashLength": 10, + "dashes": false, + "decimals": null, + "fieldConfig": { + "defaults": { + "links": [] + }, + "overrides": [] + }, + "fill": 1, + "fillGradient": 0, + "gridPos": { + "h": 9, + "w": 23, + "x": 0, + "y": 0 + }, + "hiddenSeries": false, + "id": 6, + "legend": { + "alignAsTable": true, + "avg": false, + "current": true, + "max": false, + "min": false, + "rightSide": true, + "show": true, + "sideWidth": 350, + "sort": "current", + "sortDesc": true, + "total": false, + "values": true + }, + "lines": true, + "linewidth": 1, + "nullPointMode": "null", + "options": { + "alertThreshold": true + }, + "percentage": false, + "pluginVersion": "7.5.11", + "pointradius": 2, + "points": false, + "renderer": "flot", + "seriesOverrides": [ + { + "$$hashKey": "object:78", + "alias": "SW_Total_DC_P_Max", + "fill": 0, + "linewidth": 1 + }, + { + "$$hashKey": "object:79", + "alias": "Actual_battery_charge_usable_P", + "fill": 0, + "linewidth": 2 + }, + { + "$$hashKey": "object:80", + "alias": "SW_Home_own_consumption_from_Battery", + "fill": 10, + "stack": true + }, + { + "$$hashKey": "object:81", + "alias": "SW_Home_own_consumption_from_grid", + "fill": 3, + "stack": true + }, + { + "$$hashKey": "object:82", + "alias": "SW_Total_DC_P", + "fill": 0 + }, + { + "$$hashKey": "object:83", + "alias": "SW_Home_own_consumption_from_PV", + "fill": 5, + "stack": true + }, + { + "$$hashKey": "object:337", + "alias": "Total_Active_P_EM_to_Grid" + }, + { + "$$hashKey": "object:1189", + "alias": "EVU_Tibber", + "fill": 0, + "steppedLine": true + }, + { + "$$hashKey": "object:335", + "alias": "EVU Limit", + "lines": false, + "pointradius": 1, + "points": true + }, + { + "$$hashKey": "object:518", + "alias": "Tibber_fc0_trigger", + "fill": 0, + "steppedLine": true + } + ], + "spaceLength": 10, + "stack": false, + "steppedLine": false, + "targets": [ + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [], + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(value) AS \"SW_Total_DC_P_Max\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_1' AND\n READING = 'SW_Total_DC_P_Max' AND\n VALUE >= 0\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "SW_Total_DC_P_Max", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [], + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(value) AS \"SW_Home_own_consumption_from_grid\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_1' AND\n READING = 'SW_Home_own_consumption_from_grid' AND\n VALUE >= 0\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "SW_Home_own_consumption_from_grid", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [], + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(value) AS \"SW_Home_own_consumption_from_PV\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_1' AND\n READING = 'SW_Home_own_consumption_from_PV' AND\n HOUR(TIMESTAMP) >= 5 AND HOUR(TIMESTAMP) <= 22 AND\n VALUE >= 0\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "SW_Home_own_consumption_from_PV", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [], + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(value) AS \"SW_Home_own_consumption_from_Battery\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_1' AND\n READING = 'SW_Home_own_consumption_from_Battery'\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "SW_Home_own_consumption_from_Battery", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [], + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(value) AS \"Actual_battery_charge_usable_P\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_1' AND\n READING = 'Actual_battery_charge_usable_P'\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "Actual_battery_charge_usable_P", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [], + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(value) AS \"SW_Total_AC_Active_P\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_1' AND\n READING = 'SW_Total_AC_Active_P'\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "SW_Total_AC_Active_P", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + } + ] + }, + { + "format": "table", + "group": [], + "hide": false, + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(value*100) AS \"Battery_temperature\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_1' AND\n READING = 'Battery_temperature'\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)\n", + "refId": "Battery_temperature", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + } + ] + ], + "timeColumn": "time", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [], + "hide": false, + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n avg(abs(value)) AS \"Total_Active_P_EM_to_Grid\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_1' AND\n READING = 'Total_Active_P_EM' AND\n VALUE < 0\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "Total_Active_P_EM_to_Grid", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [], + "hide": true, + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n TIMESTAMP AS \"time\",\n cast(value*10000 AS DECIMAL (6,0)) AS \"EVU_Tibber\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'EVU_Tibber' AND\n READING = 'fc0_total'\nORDER BY TIMESTAMP", + "refId": "EVU_Tibber", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [], + "hide": false, + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n $__timeGroupAlias(TIMESTAMP,$__interval,previous),\n 12600 AS \"EVU Limit\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'WR_1' AND\n READING = 'Total_Active_P_EM' AND\n VALUE < -12600\nGROUP BY 1\nORDER BY $__timeGroup(TIMESTAMP,$__interval,previous)", + "refId": "EVU Limit", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + } + ] + }, + { + "datasource": "FHEM MySQL", + "format": "table", + "group": [], + "hide": false, + "metricColumn": "none", + "rawQuery": true, + "rawSql": "SELECT\n TIMESTAMP AS \"time\",\n if((value = \"on\"),16000,15000) AS \"Tibber_fc0_trigger\"\nFROM history\nWHERE\n $__timeFilter(TIMESTAMP) AND\n DEVICE = 'EVU_Tibber_connect' AND\n READING = 'fc0_trigger'\nORDER BY TIMESTAMP", + "refId": "Tibber_fc0_trigger", + "select": [ + [ + { + "params": [ + "value" + ], + "type": "column" + } + ] + ], + "table": "history", + "timeColumn": "TIMESTAMP", + "timeColumnType": "timestamp", + "where": [ + { + "name": "$__timeFilter", + "params": [], + "type": "macro" + }, + { + "datatype": "varchar", + "name": "", + "params": [ + "DEVICE", + "=", + "'WR_1'" + ], + "type": "expression" + } + ] + } + ], + "thresholds": [], + "timeFrom": null, + "timeRegions": [], + "timeShift": null, + "title": "Leistungsbezug", + "tooltip": { + "shared": true, + "sort": 0, + "value_type": "individual" + }, + "type": "graph", + "xaxis": { + "buckets": null, + "mode": "time", + "name": null, + "show": true, + "values": [] + }, + "yaxes": [ + { + "$$hashKey": "object:1133", + "decimals": 0, + "format": "short", + "label": "Watt", + "logBase": 1, + "max": "16000", + "min": "0", + "show": true + }, + { + "$$hashKey": "object:1134", + "format": "short", + "label": null, + "logBase": 1, + "max": null, + "min": null, + "show": true + } + ], + "yaxis": { + "align": false, + "alignLevel": null + }, + "datasource": null +} \ No newline at end of file