{
    "annotations": {
      "list": [
        {
          "builtIn": 1,
          "datasource": "-- Grafana --",
          "enable": true,
          "hide": true,
          "iconColor": "rgba(0, 211, 255, 1)",
          "name": "Annotations & Alerts",
          "target": {
            "limit": 100,
            "matchAny": false,
            "tags": [],
            "type": "dashboard"
          },
          "type": "dashboard"
        }
      ]
    },
    "editable": true,
    "fiscalYearStartMonth": 0,
    "gnetId": null,
    "graphTooltip": 0,
    "id": 15,
    "links": [],
    "liveNow": false,
    "panels": [
      {
        "collapsed": false,
        "datasource": null,
        "gridPos": {
          "h": 1,
          "w": 24,
          "x": 0,
          "y": 0
        },
        "id": 27,
        "panels": [],
        "title": "FVE",
        "type": "row"
      },
      {
        "datasource": null,
        "gridPos": {
          "h": 8,
          "w": 3,
          "x": 0,
          "y": 1
        },
        "id": 16,
        "options": {
          "maxItems": 10,
          "query": "",
          "showHeadings": false,
          "showRecentlyViewed": false,
          "showSearch": false,
          "showStarred": true,
          "tags": []
        },
        "pluginVersion": "8.2.5",
        "title": "Dashboards",
        "type": "dashlist"
      },
      {
        "datasource": "fve",
        "description": "",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "thresholds"
            },
            "mappings": [],
            "max": 3000,
            "min": 0,
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "red",
                  "value": null
                }
              ]
            },
            "unit": "watt"
          },
          "overrides": []
        },
        "gridPos": {
          "h": 8,
          "w": 4,
          "x": 3,
          "y": 1
        },
        "id": 25,
        "options": {
          "orientation": "auto",
          "reduceOptions": {
            "calcs": [
              "lastNotNull"
            ],
            "fields": "",
            "values": false
          },
          "showThresholdLabels": false,
          "showThresholdMarkers": true,
          "text": {}
        },
        "pluginVersion": "8.2.5",
        "targets": [
          {
            "groupBy": [],
            "limit": "1",
            "measurement": "main",
            "orderByTime": "DESC",
            "policy": "default",
            "query": "SELECT last(\"pvPower\") FROM \"autogen\".\"main\" WHERE time > now() - 1m ORDER BY time DESC",
            "rawQuery": true,
            "refId": "A",
            "resultFormat": "time_series",
            "select": [
              [
                {
                  "params": [
                    "pvPower"
                  ],
                  "type": "field"
                }
              ]
            ],
            "tags": []
          }
        ],
        "title": "PV Power",
        "type": "gauge"
      },
      {
        "datasource": "fve",
        "description": "",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "thresholds"
            },
            "mappings": [],
            "max": 450,
            "min": 0,
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "dark-purple",
                  "value": null
                }
              ]
            },
            "unit": "volt"
          },
          "overrides": []
        },
        "gridPos": {
          "h": 8,
          "w": 4,
          "x": 7,
          "y": 1
        },
        "id": 29,
        "options": {
          "orientation": "auto",
          "reduceOptions": {
            "calcs": [
              "lastNotNull"
            ],
            "fields": "",
            "values": false
          },
          "showThresholdLabels": false,
          "showThresholdMarkers": true,
          "text": {}
        },
        "pluginVersion": "8.2.5",
        "targets": [
          {
            "groupBy": [],
            "measurement": "main",
            "orderByTime": "DESC",
            "policy": "default",
            "query": "SELECT last(\"pvInputVoltage\") FROM \"autogen\".\"main\" WHERE time > now() - 1m ORDER BY time DESC",
            "rawQuery": true,
            "refId": "A",
            "resultFormat": "time_series",
            "select": [
              [
                {
                  "params": [
                    "batteryCapacity"
                  ],
                  "type": "field"
                }
              ]
            ],
            "tags": []
          }
        ],
        "title": "PV Voltage",
        "type": "gauge"
      },
      {
        "datasource": "fve",
        "description": "",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "thresholds"
            },
            "mappings": [],
            "max": 100,
            "min": 0,
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                }
              ]
            },
            "unit": "percent"
          },
          "overrides": []
        },
        "gridPos": {
          "h": 8,
          "w": 4,
          "x": 11,
          "y": 1
        },
        "id": 24,
        "options": {
          "orientation": "auto",
          "reduceOptions": {
            "calcs": [
              "lastNotNull"
            ],
            "fields": "",
            "values": false
          },
          "showThresholdLabels": false,
          "showThresholdMarkers": true,
          "text": {}
        },
        "pluginVersion": "8.2.5",
        "targets": [
          {
            "groupBy": [],
            "measurement": "main",
            "orderByTime": "DESC",
            "policy": "default",
            "query": "SELECT last(\"batteryCapacity\") FROM \"main\" WHERE time > now() - 1m ORDER BY time DESC",
            "rawQuery": true,
            "refId": "A",
            "resultFormat": "time_series",
            "select": [
              [
                {
                  "params": [
                    "batteryCapacity"
                  ],
                  "type": "field"
                }
              ]
            ],
            "tags": []
          }
        ],
        "title": "Battery",
        "type": "gauge"
      },
      {
        "datasource": "fve",
        "description": "",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "thresholds"
            },
            "mappings": [],
            "max": 5000,
            "min": 0,
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "blue",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 4800
                }
              ]
            },
            "unit": "watt"
          },
          "overrides": []
        },
        "gridPos": {
          "h": 8,
          "w": 4,
          "x": 15,
          "y": 1
        },
        "id": 28,
        "options": {
          "orientation": "auto",
          "reduceOptions": {
            "calcs": [
              "lastNotNull"
            ],
            "fields": "",
            "values": false
          },
          "showThresholdLabels": false,
          "showThresholdMarkers": true,
          "text": {}
        },
        "pluginVersion": "8.2.5",
        "targets": [
          {
            "groupBy": [],
            "measurement": "main",
            "orderByTime": "DESC",
            "policy": "default",
            "query": "SELECT last(\"outputPowerActive\") FROM \"main\" WHERE time > now() - 1m ORDER BY time DESC",
            "rawQuery": true,
            "refId": "A",
            "resultFormat": "time_series",
            "select": [
              [
                {
                  "params": [
                    "batteryCapacity"
                  ],
                  "type": "field"
                }
              ]
            ],
            "tags": []
          }
        ],
        "title": "Output Power",
        "type": "gauge"
      },
      {
        "datasource": "fve",
        "fieldConfig": {
          "defaults": {
            "color": {
              "mode": "palette-classic"
            },
            "custom": {
              "axisLabel": "",
              "axisPlacement": "auto",
              "barAlignment": 0,
              "drawStyle": "line",
              "fillOpacity": 0,
              "gradientMode": "none",
              "hideFrom": {
                "legend": false,
                "tooltip": false,
                "viz": false
              },
              "lineInterpolation": "linear",
              "lineStyle": {
                "fill": "solid"
              },
              "lineWidth": 2,
              "pointSize": 5,
              "scaleDistribution": {
                "type": "linear"
              },
              "showPoints": "auto",
              "spanNulls": 3600000,
              "stacking": {
                "group": "A",
                "mode": "none"
              },
              "thresholdsStyle": {
                "mode": "off"
              }
            },
            "mappings": [],
            "min": 0,
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "green",
                  "value": null
                },
                {
                  "color": "red",
                  "value": 80
                }
              ]
            },
            "unit": "none"
          },
          "overrides": [
            {
              "matcher": {
                "id": "byName",
                "options": "main.PV Power"
              },
              "properties": [
                {
                  "id": "custom.axisPlacement",
                  "value": "right"
                },
                {
                  "id": "unit",
                  "value": "watt"
                },
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "red",
                    "mode": "fixed"
                  }
                },
                {
                  "id": "displayName",
                  "value": "Input PV Power [W]"
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "main.Output Power"
              },
              "properties": [
                {
                  "id": "custom.axisPlacement",
                  "value": "right"
                },
                {
                  "id": "unit",
                  "value": "watt"
                },
                {
                  "id": "displayName",
                  "value": "Output Power [W]"
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "main.Battery"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "green",
                    "mode": "fixed"
                  }
                },
                {
                  "id": "displayName",
                  "value": "Battery [%]"
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "main.Battery Charging"
              },
              "properties": [
                {
                  "id": "displayName",
                  "value": "Battery Charging [A]"
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "main.Battery Discharging"
              },
              "properties": [
                {
                  "id": "displayName",
                  "value": "Battery Discharging [A]"
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "main.Battery Discharging"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "orange",
                    "mode": "fixed"
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "main.Battery Charging"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "yellow",
                    "mode": "fixed"
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "main.PV Voltage"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "dark-purple",
                    "mode": "fixed"
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "main.Battery Voltage"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "text",
                    "mode": "fixed"
                  }
                }
              ]
            },
            {
              "matcher": {
                "id": "byName",
                "options": "Battery Discharging [A]"
              },
              "properties": [
                {
                  "id": "color",
                  "value": {
                    "fixedColor": "#0022ff",
                    "mode": "fixed"
                  }
                }
              ]
            }
          ]
        },
        "gridPos": {
          "h": 11,
          "w": 21,
          "x": 0,
          "y": 9
        },
        "id": 22,
        "options": {
          "legend": {
            "calcs": [
              "min",
              "max",
              "mean"
            ],
            "displayMode": "table",
            "placement": "right"
          },
          "tooltip": {
            "mode": "multi"
          }
        },
        "targets": [
          {
            "groupBy": [
              {
                "params": [
                  "$__interval"
                ],
                "type": "time"
              },
              {
                "params": [
                  "null"
                ],
                "type": "fill"
              }
            ],
            "measurement": "main",
            "orderByTime": "ASC",
            "policy": "autogen",
            "query": "SELECT mean(\"batteryCapacity\") AS \"Battery\", mean(\"pvPower\") AS \"PV Power\", mean(\"outputPowerActive\") AS \"Output Power\", mean(\"batteryChargingCurrent\") AS \"Battery Charging\", mean(\"batteryDischargeCurrent\") AS \"Battery Discharging\", mean(\"pvInputVoltage\") AS \"PV Voltage\" FROM \"autogen\".\"main\" WHERE $timeFilter GROUP BY time($__interval) fill(null)",
            "rawQuery": false,
            "refId": "A",
            "resultFormat": "time_series",
            "select": [
              [
                {
                  "params": [
                    "batteryCapacity"
                  ],
                  "type": "field"
                },
                {
                  "params": [],
                  "type": "mean"
                },
                {
                  "params": [
                    "Battery"
                  ],
                  "type": "alias"
                }
              ],
              [
                {
                  "params": [
                    "pvPower"
                  ],
                  "type": "field"
                },
                {
                  "params": [],
                  "type": "mean"
                },
                {
                  "params": [
                    "PV Power"
                  ],
                  "type": "alias"
                }
              ],
              [
                {
                  "params": [
                    "outputPowerActive"
                  ],
                  "type": "field"
                },
                {
                  "params": [],
                  "type": "mean"
                },
                {
                  "params": [
                    "Output Power"
                  ],
                  "type": "alias"
                }
              ],
              [
                {
                  "params": [
                    "batteryChargingCurrent"
                  ],
                  "type": "field"
                },
                {
                  "params": [],
                  "type": "mean"
                },
                {
                  "params": [
                    "Battery Charging"
                  ],
                  "type": "alias"
                }
              ],
              [
                {
                  "params": [
                    "batteryDischargeCurrent"
                  ],
                  "type": "field"
                },
                {
                  "params": [],
                  "type": "mean"
                },
                {
                  "params": [
                    "Battery Discharging"
                  ],
                  "type": "alias"
                }
              ],
              [
                {
                  "params": [
                    "pvInputVoltage"
                  ],
                  "type": "field"
                },
                {
                  "params": [],
                  "type": "mean"
                },
                {
                  "params": [
                    "PV Voltage"
                  ],
                  "type": "alias"
                }
              ],
              [
                {
                  "params": [
                    "batteryVoltage"
                  ],
                  "type": "field"
                },
                {
                  "params": [],
                  "type": "mean"
                },
                {
                  "params": [
                    "Battery Voltage"
                  ],
                  "type": "alias"
                }
              ]
            ],
            "tags": []
          },
          {
            "groupBy": [],
            "hide": true,
            "measurement": "main",
            "orderByTime": "ASC",
            "policy": "default",
            "refId": "B",
            "resultFormat": "time_series",
            "select": [
              [
                {
                  "params": [
                    "status.chargingAC"
                  ],
                  "type": "field"
                }
              ],
              [
                {
                  "params": [
                    "status.chargingSCC"
                  ],
                  "type": "field"
                }
              ],
              [
                {
                  "params": [
                    "status.loadOn"
                  ],
                  "type": "field"
                }
              ]
            ],
            "tags": []
          }
        ],
        "title": "Inverter",
        "transformations": [],
        "type": "timeseries"
      }
    ],
    "refresh": false,
    "schemaVersion": 32,
    "style": "dark",
    "tags": [],
    "templating": {
      "list": []
    },
    "time": {
      "from": "now-3h",
      "to": "now"
    },
    "timepicker": {
      "refresh_intervals": [
        "5s",
        "10s",
        "30s",
        "1m",
        "5m",
        "15m",
        "30m",
        "1h",
        "2h",
        "1d"
      ],
      "time_options": [
        "5m",
        "15m",
        "1h",
        "6h",
        "12h",
        "24h",
        "2d",
        "7d",
        "30d"
      ]
    },
    "timezone": "",
    "title": "FVE",
    "uid": "Er4QT3k4z",
    "version": 34
  }
  