{
  "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
}