Grafana dashboard: PV Power Ahoy
Description: AHOY-DTU (https://github.com/grindylow/ahoy) delivers power metrics from inverter via MQTT to a MQTT (mosquitto) server. Telegraf subscribes that topic (“inverter/#”) and writes everything to InfluxDB. The Dashboard consumes data from InfluxDB.


{
  "__inputs": [
    {
      "name": "DS_TELEGRAF_@ INFLUXDB",
      "label": "Telegraf @ InfluxDB",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__elements": {},
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "9.2.3"
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "datasource",
          "uid": "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,
  "graphTooltip": 0,
  "id": null,
  "links": [
    {
      "asDropdown": false,
      "icon": "external link",
      "includeVars": false,
      "keepTime": false,
      "tags": [],
      "targetBlank": true,
      "title": "AHOY-DTU",
      "tooltip": "",
      "type": "link",
      "url": "http://ahoy-dtu/live"
    }
  ],
  "liveNow": false,
  "panels": [
    {
      "collapsed": false,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 72,
      "panels": [],
      "title": "Overview",
      "type": "row"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAF_@ INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "text",
                "value": null
              },
              {
                "color": "super-light-blue",
                "value": 1
              },
              {
                "color": "super-light-red",
                "value": 100
              },
              {
                "color": "light-red",
                "value": 200
              },
              {
                "color": "red",
                "value": 300
              },
              {
                "color": "semi-dark-red",
                "value": 400
              },
              {
                "color": "dark-red",
                "value": 600
              }
            ]
          },
          "unit": "watt"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 0,
        "y": 1
      },
      "id": 50,
      "interval": "60s",
      "maxDataPoints": 64,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.2.3",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            }
          ],
          "hide": false,
          "measurement": "mqtt_consumer",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT last(\"value\") FROM \"mqtt_consumer\" WHERE (\"topic\" = '$ahoyTopic/$ahoyInvertername/ch0/P_AC') AND $timeFilter GROUP BY time($__interval)",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        }
      ],
      "title": "Power",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAF_@ INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "text",
                "value": null
              },
              {
                "color": "super-light-green",
                "value": 500
              },
              {
                "color": "light-green",
                "value": 1000
              },
              {
                "color": "green",
                "value": 2000
              },
              {
                "color": "semi-dark-green",
                "value": 4000
              },
              {
                "color": "dark-green",
                "value": 5000
              }
            ]
          },
          "unit": "watth"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 3,
        "y": 1
      },
      "id": 14,
      "interval": "60s",
      "maxDataPoints": 64,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.2.3",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            }
          ],
          "hide": false,
          "measurement": "mqtt_consumer",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT last(\"value\") FROM \"mqtt_consumer\" WHERE (\"topic\" = '$ahoyTopic/$ahoyInvertername/ch0/YieldDay') AND $timeFilter GROUP BY time($__interval)",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        }
      ],
      "title": "Energy",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAF_@ INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "text",
                "value": null
              }
            ]
          },
          "unit": "kwatth"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 6,
        "y": 1
      },
      "id": 68,
      "interval": "60s",
      "maxDataPoints": 64,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.2.3",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            }
          ],
          "hide": false,
          "measurement": "mqtt_consumer",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT last(\"value\") FROM \"mqtt_consumer\" WHERE (\"topic\" = '$ahoyTopic/$ahoyInvertername/ch0/YieldTotal') AND $timeFilter GROUP BY time($__interval)",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        }
      ],
      "title": "Total Energy",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAF_@ INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "decimals": 2,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "text",
                "value": null
              }
            ]
          },
          "unit": "currencyEUR"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 9,
        "y": 1
      },
      "id": 19,
      "interval": "60s",
      "maxDataPoints": 64,
      "options": {
        "colorMode": "none",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "diff"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.2.3",
      "targets": [
        {
          "alias": "difference",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "mqtt_consumer",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT last(\"value\")  / 1000 * $kwhPrice FROM \"mqtt_consumer\" WHERE (\"topic\" = '$ahoyTopic/$ahoyInvertername/ch0/YieldDay') AND $timeFilter GROUP BY time($interval) fill(null)",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              },
              {
                "params": [
                  " / 1000 * $kwhPrice"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": []
        }
      ],
      "title": "Savings",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAF_@ INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "decimals": 1,
          "mappings": [
            {
              "options": {
                "match": "null",
                "result": {
                  "text": "N/A"
                }
              },
              "type": "special"
            }
          ],
          "max": 40,
          "min": -20,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "#447ebc",
                "value": null
              },
              {
                "color": "blue",
                "value": -5
              },
              {
                "color": "#629e51",
                "value": 0
              },
              {
                "color": "yellow",
                "value": 20
              },
              {
                "color": "orange",
                "value": 25
              },
              {
                "color": "red",
                "value": 30
              }
            ]
          },
          "unit": "celsius"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 12,
        "y": 1
      },
      "id": 60,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.2.3",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "weather",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT mean(\"temperature\") FROM \"weather\" WHERE (\"country\" =~ /^$country$/ AND \"city\" =~ /^$city$/) AND $timeFilter GROUP BY time($__interval) fill(null)",
          "rawQuery": false,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "temperature"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": [
            {
              "key": "country",
              "operator": "=~",
              "value": "/^$country$/"
            },
            {
              "condition": "AND",
              "key": "city",
              "operator": "=~",
              "value": "/^$city$/"
            },
            {
              "condition": "AND",
              "key": "forecast",
              "operator": "=",
              "value": "*"
            }
          ]
        }
      ],
      "title": "Temperature",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAF_@ INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "blue",
            "mode": "thresholds"
          },
          "decimals": 0,
          "mappings": [
            {
              "options": {
                "match": "null",
                "result": {
                  "text": "N/A"
                }
              },
              "type": "special"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "text",
                "value": null
              },
              {
                "color": "dark-blue",
                "value": 0
              },
              {
                "color": "semi-dark-blue",
                "value": 15
              },
              {
                "color": "blue",
                "value": 30
              },
              {
                "color": "light-blue",
                "value": 60
              },
              {
                "color": "super-light-blue",
                "value": 90
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 15,
        "y": 1
      },
      "id": 54,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.2.3",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "weather",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "cloudiness"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": [
            {
              "key": "country",
              "operator": "=~",
              "value": "/^$country$/"
            },
            {
              "condition": "AND",
              "key": "city",
              "operator": "=~",
              "value": "/^$city$/"
            },
            {
              "condition": "AND",
              "key": "forecast",
              "operator": "=",
              "value": "*"
            }
          ]
        }
      ],
      "title": "Cloudiness",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAF_@ INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "mappings": [
            {
              "options": {
                "match": "null",
                "result": {
                  "text": "N/A"
                }
              },
              "type": "special"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "text",
                "value": null
              }
            ]
          },
          "unit": "dateTimeAsIsoNoDateIfToday"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 18,
        "y": 1
      },
      "id": 56,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.2.3",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "weather",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "sunrise"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              },
              {
                "params": [
                  " / 1000000"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "country",
              "operator": "=~",
              "value": "/^$country$/"
            },
            {
              "condition": "AND",
              "key": "city",
              "operator": "=~",
              "value": "/^$city$/"
            }
          ]
        }
      ],
      "title": "Sunrise time",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAF_@ INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "mappings": [
            {
              "options": {
                "match": "null",
                "result": {
                  "text": "N/A"
                }
              },
              "type": "special"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "text",
                "value": null
              }
            ]
          },
          "unit": "dateTimeAsIsoNoDateIfToday"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 4,
        "w": 3,
        "x": 21,
        "y": 1
      },
      "id": 58,
      "links": [],
      "maxDataPoints": 100,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "9.2.3",
      "targets": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "measurement": "weather",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "sunset"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              },
              {
                "params": [
                  " / 1000000"
                ],
                "type": "math"
              }
            ]
          ],
          "tags": [
            {
              "key": "country",
              "operator": "=~",
              "value": "/^$country$/"
            },
            {
              "condition": "AND",
              "key": "city",
              "operator": "=~",
              "value": "/^$city$/"
            }
          ]
        }
      ],
      "title": "Sunset time",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAF_@ INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 20,
            "gradientMode": "opacity",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "decimals": 0,
          "mappings": [],
          "max": 700,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "text",
                "value": null
              }
            ]
          },
          "unit": "watt"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Power"
            },
            "properties": [
              {
                "id": "custom.fillOpacity",
                "value": 20
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "red",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Cloudiness"
            },
            "properties": [
              {
                "id": "custom.axisPlacement",
                "value": "right"
              },
              {
                "id": "unit",
                "value": "percent"
              },
              {
                "id": "custom.lineInterpolation",
                "value": "smooth"
              },
              {
                "id": "custom.axisSoftMin",
                "value": 0
              },
              {
                "id": "custom.axisSoftMax",
                "value": 100
              },
              {
                "id": "color",
                "value": {
                  "fixedColor": "super-light-blue",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 10,
        "w": 24,
        "x": 0,
        "y": 5
      },
      "id": 2,
      "interval": "10s",
      "options": {
        "legend": {
          "calcs": [
            "max",
            "mean"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "none"
        }
      },
      "targets": [
        {
          "alias": "Power",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "mqtt_consumer",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT mean(\"value\") FROM \"mqtt_consumer\" WHERE (\"topic\" = '$ahoyTopic/$ahoyInvertername/ch0/P_AC') AND $timeFilter GROUP BY time($__interval) fill(null)",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "Cloudiness",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "weather",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT mean(\"cloudiness\") FROM \"weather\" WHERE (\"country\" =~ /^$country$/ AND \"city\" =~ /^$city$/) AND $timeFilter GROUP BY time($__interval), \"country\", \"city\" fill(none)",
          "rawQuery": true,
          "refId": "C",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "country",
              "operator": "=~",
              "value": "/^$country$/"
            },
            {
              "condition": "AND",
              "key": "and",
              "operator": "=~",
              "value": "/^$city$/"
            }
          ]
        }
      ],
      "title": "Power",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "influxdb",
        "uid": "${DS_TELEGRAF_@ INFLUXDB}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "bars",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "watth"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "Daily Production"
            },
            "properties": [
              {
                "id": "custom.fillOpacity",
                "value": 20
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "Cloudiness"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "super-light-blue",
                  "mode": "fixed"
                }
              },
              {
                "id": "custom.axisPlacement",
                "value": "right"
              },
              {
                "id": "unit",
                "value": "percent"
              },
              {
                "id": "custom.drawStyle",
                "value": "line"
              },
              {
                "id": "custom.lineInterpolation",
                "value": "smooth"
              },
              {
                "id": "custom.axisSoftMin",
                "value": 0
              },
              {
                "id": "custom.axisSoftMax",
                "value": 100
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 8,
        "w": 24,
        "x": 0,
        "y": 15
      },
      "hideTimeOverride": false,
      "id": 63,
      "interval": "60s",
      "maxDataPoints": 64,
      "options": {
        "legend": {
          "calcs": [
            "max",
            "mean",
            "min"
          ],
          "displayMode": "table",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "multi",
          "sort": "none"
        }
      },
      "pluginVersion": "9.1.1",
      "targets": [
        {
          "alias": "Daily Production",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "groupBy": [
            {
              "params": [
                "1d"
              ],
              "type": "time"
            }
          ],
          "hide": false,
          "measurement": "mqtt_consumer",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT last(\"value\") FROM \"mqtt_consumer\" WHERE (\"topic\" = '$ahoyTopic/$ahoyInvertername/ch0/YieldDay') AND $timeFilter GROUP BY time(1d)",
          "rawQuery": true,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": []
        },
        {
          "alias": "Cloudiness",
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "hide": false,
          "query": "SELECT mean(\"cloudiness\") FROM \"weather\" WHERE (\"country\" =~ /^$country$/ AND \"city\" =~ /^$city$/) AND $timeFilter GROUP BY time(1d), \"country\", \"city\" fill(none)",
          "rawQuery": true,
          "refId": "B",
          "resultFormat": "time_series"
        }
      ],
      "timeFrom": "1M",
      "title": "Daily Production",
      "type": "timeseries"
    },
    {
      "collapsed": true,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 23
      },
      "id": 74,
      "panels": [
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "decimals": 2,
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "text",
                    "value": null
                  }
                ]
              },
              "unit": "volt"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 3,
            "x": 0,
            "y": 24
          },
          "id": 65,
          "interval": "10s",
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value"
          },
          "pluginVersion": "9.2.3",
          "targets": [
            {
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_TELEGRAF_@ INFLUXDB}"
              },
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "mqtt_consumer",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT last(\"value\") FROM \"mqtt_consumer\" WHERE (\"topic\" = '$ahoyTopic/$ahoyInvertername/ch0/U_AC') AND $timeFilter GROUP BY time($__interval) fill(null)",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "last"
                  }
                ]
              ],
              "tags": []
            }
          ],
          "title": "U AC",
          "type": "stat"
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "decimals": 2,
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "text",
                    "value": null
                  }
                ]
              },
              "unit": "rothz"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 3,
            "x": 3,
            "y": 24
          },
          "id": 66,
          "interval": "10s",
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value"
          },
          "pluginVersion": "9.2.3",
          "targets": [
            {
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_TELEGRAF_@ INFLUXDB}"
              },
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "mqtt_consumer",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT last(\"value\") FROM \"mqtt_consumer\" WHERE (\"topic\" = '$ahoyTopic/$ahoyInvertername/ch0/Freq') AND $timeFilter GROUP BY time($__interval) fill(null)",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "last"
                  }
                ]
              ],
              "tags": []
            }
          ],
          "title": "Freq",
          "type": "stat"
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "decimals": 2,
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "text",
                    "value": null
                  },
                  {
                    "color": "super-light-orange",
                    "value": 30
                  },
                  {
                    "color": "light-orange",
                    "value": 40
                  },
                  {
                    "color": "orange",
                    "value": 50
                  },
                  {
                    "color": "semi-dark-orange",
                    "value": 60
                  },
                  {
                    "color": "dark-orange",
                    "value": 70
                  }
                ]
              },
              "unit": "celsius"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 3,
            "x": 6,
            "y": 24
          },
          "id": 34,
          "interval": "10s",
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value"
          },
          "pluginVersion": "9.2.3",
          "targets": [
            {
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_TELEGRAF_@ INFLUXDB}"
              },
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "mqtt_consumer",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT last(\"value\") FROM \"mqtt_consumer\" WHERE (\"topic\" = '$ahoyTopic/$ahoyInvertername/ch0/Temp') AND $timeFilter GROUP BY time($__interval) fill(null)",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "last"
                  }
                ]
              ],
              "tags": []
            }
          ],
          "title": "Inverter Temp",
          "type": "stat"
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "decimals": 2,
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "text",
                    "value": null
                  }
                ]
              },
              "unit": "percent"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 3,
            "x": 9,
            "y": 24
          },
          "id": 67,
          "interval": "10s",
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value"
          },
          "pluginVersion": "9.2.3",
          "targets": [
            {
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_TELEGRAF_@ INFLUXDB}"
              },
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "mqtt_consumer",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT last(\"value\") FROM \"mqtt_consumer\" WHERE (\"topic\" = '$ahoyTopic/$ahoyInvertername/ch0/Efficiency') AND $timeFilter GROUP BY time($__interval) fill(null)",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "last"
                  }
                ]
              ],
              "tags": []
            }
          ],
          "title": "Efficiency",
          "type": "stat"
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "decimals": 2,
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "text",
                    "value": null
                  }
                ]
              },
              "unit": "percent"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 3,
            "x": 12,
            "y": 24
          },
          "id": 70,
          "interval": "10s",
          "options": {
            "colorMode": "value",
            "graphMode": "area",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value"
          },
          "pluginVersion": "9.2.3",
          "targets": [
            {
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_TELEGRAF_@ INFLUXDB}"
              },
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "mqtt_consumer",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT last(\"value\") FROM \"mqtt_consumer\" WHERE (\"topic\" = '$ahoyTopic/$ahoyInvertername/ch0/PowerLimit') AND $timeFilter GROUP BY time($__interval) fill(null)",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "last"
                  }
                ]
              ],
              "tags": []
            }
          ],
          "title": "Power Limit",
          "type": "stat"
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "decimals": 0,
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "text",
                    "value": null
                  }
                ]
              },
              "unit": "s"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 3,
            "x": 15,
            "y": 24
          },
          "id": 77,
          "interval": "10s",
          "options": {
            "colorMode": "value",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value"
          },
          "pluginVersion": "9.2.3",
          "targets": [
            {
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_TELEGRAF_@ INFLUXDB}"
              },
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "measurement": "mqtt_consumer",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT last(\"value\") FROM \"mqtt_consumer\" WHERE (\"topic\" = '$ahoyTopic/uptime') AND $timeFilter GROUP BY time($__interval) fill(null)",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "last"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "topic",
                  "operator": "=",
                  "value": "inverter/uptime"
                }
              ]
            }
          ],
          "title": "Ahoy Uptime",
          "type": "stat"
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "description": "",
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "thresholds"
              },
              "decimals": 2,
              "mappings": [
                {
                  "options": {
                    "1": {
                      "index": 0,
                      "text": "Inverter start"
                    },
                    "2": {
                      "index": 1,
                      "text": "DTU command failed"
                    },
                    "121": {
                      "index": 2,
                      "text": "Over temperature protection"
                    },
                    "125": {
                      "index": 3,
                      "text": "Grid configuration parameter error"
                    },
                    "130": {
                      "index": 4,
                      "text": "Offline"
                    },
                    "141": {
                      "index": 13,
                      "text": "Grid overvoltage"
                    },
                    "142": {
                      "index": 14,
                      "text": "Average grid overvoltage"
                    },
                    "143": {
                      "index": 15,
                      "text": "Grid undervoltage"
                    },
                    "144": {
                      "index": 16,
                      "text": "Grid overfrequency"
                    },
                    "145": {
                      "index": 17,
                      "text": "Grid underfrequency"
                    },
                    "146": {
                      "index": 18,
                      "text": "Rapid grid frequency change"
                    },
                    "147": {
                      "index": 19,
                      "text": "Power grid outage"
                    },
                    "148": {
                      "index": 20,
                      "text": "Grid disconnection"
                    },
                    "149": {
                      "index": 21,
                      "text": "Island detected"
                    },
                    "209": {
                      "index": 7,
                      "text": "Port 1 no input"
                    },
                    "210": {
                      "index": 8,
                      "text": "Port 2 no input"
                    },
                    "211": {
                      "index": 9,
                      "text": "Port 3 no input"
                    },
                    "212": {
                      "index": 10,
                      "text": "Port 4 no input"
                    },
                    "213": {
                      "index": 11,
                      "text": "PV-1 & PV-2 abnormal wiring"
                    },
                    "214": {
                      "index": 12,
                      "text": "PV-3 & PV-4 abnormal wiring"
                    },
                    "8310": {
                      "index": 5,
                      "text": "Shut down"
                    },
                    "9000": {
                      "index": 6,
                      "text": "Microinverter is suspected of being stolen"
                    }
                  },
                  "type": "value"
                }
              ],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "text",
                    "value": null
                  }
                ]
              },
              "unit": "none"
            },
            "overrides": []
          },
          "gridPos": {
            "h": 3,
            "w": 6,
            "x": 18,
            "y": 24
          },
          "id": 75,
          "interval": "10s",
          "options": {
            "colorMode": "value",
            "graphMode": "none",
            "justifyMode": "auto",
            "orientation": "auto",
            "reduceOptions": {
              "calcs": [
                "lastNotNull"
              ],
              "fields": "",
              "values": false
            },
            "textMode": "value"
          },
          "pluginVersion": "9.2.3",
          "targets": [
            {
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_TELEGRAF_@ INFLUXDB}"
              },
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "measurement": "mqtt_consumer",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT mean(\"value\") FROM \"mqtt_consumer\" WHERE (\"topic\" = '$ahoyTopic/$ahoyInvertername/ch0/LastAlarmCode') AND $timeFilter GROUP BY time($__interval) fill(null)",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [
                {
                  "key": "topic",
                  "operator": "=",
                  "value": "inverter/Hoymiles/ch0/LastAlarmCode"
                }
              ]
            }
          ],
          "title": "Last Message",
          "transformations": [],
          "type": "stat"
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisCenteredZero": false,
                "axisColorMode": "text",
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 20,
                "gradientMode": "opacity",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "auto",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "decimals": 0,
              "mappings": [],
              "min": 0,
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "blue",
                    "value": null
                  },
                  {
                    "color": "yellow",
                    "value": 50
                  },
                  {
                    "color": "orange",
                    "value": 200
                  },
                  {
                    "color": "red",
                    "value": 600
                  }
                ]
              },
              "unit": "watt"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byName",
                  "options": "Power Ost"
                },
                "properties": [
                  {
                    "id": "color",
                    "value": {
                      "fixedColor": "orange",
                      "mode": "fixed",
                      "seriesBy": "last"
                    }
                  },
                  {
                    "id": "custom.fillOpacity",
                    "value": 20
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "Power West"
                },
                "properties": [
                  {
                    "id": "color",
                    "value": {
                      "fixedColor": "red",
                      "mode": "fixed"
                    }
                  },
                  {
                    "id": "custom.fillOpacity",
                    "value": 20
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "Irridation West"
                },
                "properties": [
                  {
                    "id": "color",
                    "value": {
                      "fixedColor": "#8AB8FF",
                      "mode": "fixed"
                    }
                  },
                  {
                    "id": "custom.axisPlacement",
                    "value": "right"
                  },
                  {
                    "id": "unit",
                    "value": "percent"
                  },
                  {
                    "id": "custom.lineInterpolation",
                    "value": "smooth"
                  },
                  {
                    "id": "custom.axisSoftMin",
                    "value": 0
                  },
                  {
                    "id": "custom.axisSoftMax",
                    "value": 100
                  },
                  {
                    "id": "custom.fillOpacity",
                    "value": 20
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "Irridation Ost"
                },
                "properties": [
                  {
                    "id": "color",
                    "value": {
                      "fixedColor": "purple",
                      "mode": "fixed"
                    }
                  },
                  {
                    "id": "custom.axisPlacement",
                    "value": "right"
                  },
                  {
                    "id": "unit",
                    "value": "percent"
                  },
                  {
                    "id": "custom.lineInterpolation",
                    "value": "smooth"
                  },
                  {
                    "id": "custom.axisSoftMin",
                    "value": 0
                  },
                  {
                    "id": "custom.axisSoftMax",
                    "value": 100
                  },
                  {
                    "id": "custom.fillOpacity",
                    "value": 20
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 19,
            "w": 24,
            "x": 0,
            "y": 27
          },
          "id": 64,
          "interval": "10s",
          "options": {
            "legend": {
              "calcs": [
                "max",
                "mean"
              ],
              "displayMode": "table",
              "placement": "bottom",
              "showLegend": true
            },
            "tooltip": {
              "mode": "multi",
              "sort": "none"
            }
          },
          "targets": [
            {
              "alias": "Power Ost",
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_TELEGRAF_@ INFLUXDB}"
              },
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "measurement": "mqtt_consumer",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT mean(\"value\") FROM \"mqtt_consumer\" WHERE (\"topic\" = '$ahoyTopic/$ahoyInvertername/ch1/P_DC') AND $timeFilter GROUP BY time($__interval) fill(null)",
              "rawQuery": true,
              "refId": "B",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "Power West",
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_TELEGRAF_@ INFLUXDB}"
              },
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "measurement": "mqtt_consumer",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT mean(\"value\") FROM \"mqtt_consumer\" WHERE (\"topic\" = '$ahoyTopic/$ahoyInvertername/ch2/P_DC') AND $timeFilter GROUP BY time($__interval) fill(null)",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "Irridation Ost",
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_TELEGRAF_@ INFLUXDB}"
              },
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "measurement": "mqtt_consumer",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT mean(\"value\") FROM \"mqtt_consumer\" WHERE (\"topic\" = '$ahoyTopic/$ahoyInvertername/ch1/Irradiation') AND $timeFilter GROUP BY time($__interval) fill(null)",
              "rawQuery": true,
              "refId": "D",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "Irridation West",
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_TELEGRAF_@ INFLUXDB}"
              },
              "groupBy": [
                {
                  "params": [
                    "$__interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "measurement": "mqtt_consumer",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT mean(\"value\") FROM \"mqtt_consumer\" WHERE (\"topic\" = '$ahoyTopic/$ahoyInvertername/ch2/Irradiation') AND $timeFilter GROUP BY time($__interval) fill(null)",
              "rawQuery": true,
              "refId": "C",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": []
            }
          ],
          "title": "Power",
          "transformations": [],
          "type": "timeseries"
        },
        {
          "datasource": {
            "type": "influxdb",
            "uid": "${DS_TELEGRAF_@ INFLUXDB}"
          },
          "fieldConfig": {
            "defaults": {
              "color": {
                "mode": "palette-classic"
              },
              "custom": {
                "axisCenteredZero": false,
                "axisColorMode": "text",
                "axisLabel": "",
                "axisPlacement": "auto",
                "barAlignment": 0,
                "drawStyle": "bars",
                "fillOpacity": 0,
                "gradientMode": "none",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
                "scaleDistribution": {
                  "type": "linear"
                },
                "showPoints": "auto",
                "spanNulls": false,
                "stacking": {
                  "group": "A",
                  "mode": "none"
                },
                "thresholdsStyle": {
                  "mode": "off"
                }
              },
              "mappings": [],
              "thresholds": {
                "mode": "absolute",
                "steps": [
                  {
                    "color": "green",
                    "value": null
                  }
                ]
              },
              "unit": "kwatth"
            },
            "overrides": [
              {
                "matcher": {
                  "id": "byName",
                  "options": "Weekly Production"
                },
                "properties": [
                  {
                    "id": "custom.fillOpacity",
                    "value": 20
                  }
                ]
              },
              {
                "matcher": {
                  "id": "byName",
                  "options": "Cloudiness"
                },
                "properties": [
                  {
                    "id": "color",
                    "value": {
                      "fixedColor": "super-light-blue",
                      "mode": "fixed"
                    }
                  },
                  {
                    "id": "custom.axisPlacement",
                    "value": "right"
                  },
                  {
                    "id": "unit",
                    "value": "percent"
                  },
                  {
                    "id": "custom.drawStyle",
                    "value": "line"
                  },
                  {
                    "id": "custom.lineInterpolation",
                    "value": "smooth"
                  },
                  {
                    "id": "custom.axisSoftMin",
                    "value": 0
                  },
                  {
                    "id": "custom.axisSoftMax",
                    "value": 100
                  }
                ]
              }
            ]
          },
          "gridPos": {
            "h": 8,
            "w": 24,
            "x": 0,
            "y": 46
          },
          "hideTimeOverride": false,
          "id": 78,
          "interval": "60s",
          "maxDataPoints": 64,
          "options": {
            "legend": {
              "calcs": [
                "max",
                "mean",
                "min"
              ],
              "displayMode": "table",
              "placement": "bottom",
              "showLegend": true
            },
            "tooltip": {
              "mode": "multi",
              "sort": "none"
            }
          },
          "pluginVersion": "9.1.1",
          "targets": [
            {
              "alias": "Weekly Production",
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_TELEGRAF_@ INFLUXDB}"
              },
              "groupBy": [
                {
                  "params": [
                    "1d"
                  ],
                  "type": "time"
                }
              ],
              "hide": false,
              "measurement": "mqtt_consumer",
              "orderByTime": "ASC",
              "policy": "default",
              "query": "SELECT sum(dtp) FROM (SELECT non_negative_difference(\"value\") AS dtp FROM \"mqtt_consumer\" WHERE (\"topic\" = '$ahoyTopic/$ahoyInvertername/ch0/YieldTotal') AND $timeFilter) GROUP BY time(1w)",
              "rawQuery": true,
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "last"
                  }
                ]
              ],
              "tags": []
            },
            {
              "alias": "Cloudiness",
              "datasource": {
                "type": "influxdb",
                "uid": "${DS_TELEGRAF_@ INFLUXDB}"
              },
              "hide": false,
              "query": "SELECT mean(\"cloudiness\") FROM \"weather\" WHERE (\"country\" =~ /^$country$/ AND \"city\" =~ /^$city$/) AND $timeFilter GROUP BY time(1w), \"country\", \"city\" fill(none)",
              "rawQuery": true,
              "refId": "B",
              "resultFormat": "time_series"
            }
          ],
          "timeFrom": "3M",
          "title": "Weekly Production",
          "transformations": [],
          "type": "timeseries"
        }
      ],
      "title": "Details",
      "type": "row"
    }
  ],
  "refresh": "1m",
  "schemaVersion": 37,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "text": "0.23",
          "value": "0.23"
        },
        "hide": 2,
        "includeAll": false,
        "multi": false,
        "name": "kwhPrice",
        "options": [
          {
            "selected": true,
            "text": "0.23",
            "value": "0.23"
          }
        ],
        "query": "0.23",
        "skipUrlSync": false,
        "type": "custom"
      },
      {
        "current": {
          "selected": false,
          "text": "inverter",
          "value": "inverter"
        },
        "hide": 2,
        "includeAll": false,
        "multi": false,
        "name": "ahoyTopic",
        "options": [
          {
            "selected": true,
            "text": "inverter",
            "value": "inverter"
          }
        ],
        "query": "inverter",
        "skipUrlSync": false,
        "type": "custom"
      },
      {
        "current": {
          "selected": false,
          "text": "Hoymiles",
          "value": "Hoymiles"
        },
        "hide": 2,
        "includeAll": false,
        "multi": false,
        "name": "ahoyInvertername",
        "options": [
          {
            "selected": true,
            "text": "Hoymiles",
            "value": "Hoymiles"
          }
        ],
        "query": "Hoymiles",
        "skipUrlSync": false,
        "type": "custom"
      },
      {
        "current": {},
        "datasource": {
          "type": "influxdb",
          "uid": "${DS_TELEGRAF_@ INFLUXDB}"
        },
        "definition": "SHOW TAG VALUES FROM \"weather\" WITH KEY = \"country\"",
        "hide": 0,
        "includeAll": true,
        "label": "Country",
        "multi": true,
        "name": "country",
        "options": [],
        "query": "SHOW TAG VALUES FROM \"weather\" WITH KEY = \"country\"",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "current": {},
        "datasource": {
          "type": "influxdb",
          "uid": "${DS_TELEGRAF_@ INFLUXDB}"
        },
        "definition": "SHOW TAG VALUES FROM \"weather\" WITH KEY = \"city\"",
        "hide": 0,
        "includeAll": true,
        "label": "City",
        "multi": true,
        "name": "city",
        "options": [],
        "query": "SHOW TAG VALUES FROM \"weather\" WITH KEY = \"city\"",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "current": {},
        "datasource": {
          "type": "influxdb",
          "uid": "${DS_TELEGRAF_@ INFLUXDB}"
        },
        "definition": "SELECT mean(\"sunrise\")  / 1000000 FROM \"weather\" WHERE (\"country\" =~ /^$country$/ AND \"city\" =~ /^$city$/) AND $timeFilter",
        "description": "sunrise of selected location",
        "hide": 2,
        "includeAll": false,
        "multi": false,
        "name": "sunrise",
        "options": [],
        "query": "SELECT mean(\"sunrise\")  / 1000000 FROM \"weather\" WHERE (\"country\" =~ /^$country$/ AND \"city\" =~ /^$city$/) AND $timeFilter",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      },
      {
        "current": {},
        "datasource": {
          "type": "influxdb",
          "uid": "${DS_TELEGRAF_@ INFLUXDB}"
        },
        "definition": "SELECT mean(\"sunset\")  / 1000000 FROM \"weather\" WHERE (\"country\" =~ /^$country$/ AND \"city\" =~ /^$city$/) AND $timeFilter",
        "description": "sunset of selected location",
        "hide": 2,
        "includeAll": false,
        "multi": false,
        "name": "sunset",
        "options": [],
        "query": "SELECT mean(\"sunset\")  / 1000000 FROM \"weather\" WHERE (\"country\" =~ /^$country$/ AND \"city\" =~ /^$city$/) AND $timeFilter",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "now/d",
    "to": "now/d"
  },
  "timepicker": {},
  "timezone": "",
  "title": "PV Power Ahoy",
  "uid": "opBBFjWVz",
  "version": 81,
  "weekStart": "",
  "gnetId": 18257,
  "description": "AHOY-DTU (https://github.com/grindylow/ahoy) delivers power metrics from inverter via MQTT to a MQTT (mosquitto) server. Telegraf subscribes that topic (“inverter/#”) and writes everything to InfluxDB. The Dashboard consumes data from InfluxDB."
}