Grafana dashboard: Tesla Powerwall
Description: Dashboard for Tesla Powerwall Exporter


{
  "__inputs": [
    {
      "name": "DS_GRAFANACLOUD-DAMIANMYERSCOUGH-PROM",
      "label": "grafanacloud-damianmyerscough-prom",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__elements": [],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "8.4.5-56740"
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "timeseries",
      "name": "Time series",
      "version": ""
    }
  ],
  "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"
      }
    ]
  },
  "description": "Dashboard for Tesla Powerwall Exporter",
  "editable": true,
  "fiscalYearStartMonth": 0,
  "gnetId": 16053,
  "graphTooltip": 0,
  "id": null,
  "links": [],
  "liveNow": false,
  "panels": [
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GRAFANACLOUD-DAMIANMYERSCOUGH-PROM}"
      },
      "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": "smooth",
            "lineWidth": 1,
            "pointSize": 5,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": 600000,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "decimals": 1,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "kwatt"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 8,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 4,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "multi",
          "sort": "asc"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-DAMIANMYERSCOUGH-PROM}"
          },
          "exemplar": true,
          "expr": "round(tesla_battery_instant_power{job=\"tesla_powerwall\"} / 1000, 0.1)",
          "interval": "",
          "legendFormat": "Battery",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-DAMIANMYERSCOUGH-PROM}"
          },
          "exemplar": true,
          "expr": "round(tesla_solar_instant_power{job=\"tesla_powerwall\"} / 1000, 0.1)",
          "hide": false,
          "interval": "",
          "legendFormat": "Solar",
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-DAMIANMYERSCOUGH-PROM}"
          },
          "exemplar": true,
          "expr": "round(tesla_site_instant_power{job=\"tesla_powerwall\"} / 1000, 0.1)",
          "hide": false,
          "interval": "",
          "legendFormat": "Gird",
          "refId": "C"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-DAMIANMYERSCOUGH-PROM}"
          },
          "exemplar": true,
          "expr": "round(tesla_load_instant_power{job=\"tesla_powerwall\"} / 1000, 0.1)",
          "hide": false,
          "interval": "",
          "legendFormat": "House",
          "refId": "D"
        }
      ],
      "title": "Tesla Powerwall Overview",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GRAFANACLOUD-DAMIANMYERSCOUGH-PROM}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-RdYlGr"
          },
          "mappings": [],
          "noValue": "-",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "kwatth"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 5,
        "x": 0,
        "y": 8
      },
      "id": 8,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "8.4.5-56740",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-DAMIANMYERSCOUGH-PROM}"
          },
          "exemplar": true,
          "expr": "(sum_over_time(tesla_site_instant_power{job=\"tesla_powerwall\"}[$__interval:1h]) / count_over_time(tesla_site_instant_power{job=\"tesla_powerwall\"}[$__interval:1h]) / 1000) / 2",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Grid",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GRAFANACLOUD-DAMIANMYERSCOUGH-PROM}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-RdYlGr"
          },
          "mappings": [],
          "noValue": "-",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "kwatth"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 5,
        "x": 5,
        "y": 8
      },
      "id": 6,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "8.4.5-56740",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-DAMIANMYERSCOUGH-PROM}"
          },
          "exemplar": true,
          "expr": "(sum_over_time(tesla_solar_instant_power{job=\"tesla_powerwall\"}[$__interval:1h]) / count_over_time(tesla_solar_instant_power{job=\"tesla_powerwall\"}[$__interval:1h]) / 1000) / 2",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "Solar",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GRAFANACLOUD-DAMIANMYERSCOUGH-PROM}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "palette-classic"
          },
          "custom": {
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 0,
            "drawStyle": "line",
            "fillOpacity": 31,
            "gradientMode": "opacity",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "lineInterpolation": "linear",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 1,
            "pointSize": 3,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "never",
            "spanNulls": 600000,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "max": 100,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "percent"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 6,
        "w": 14,
        "x": 10,
        "y": 8
      },
      "id": 2,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "hidden",
          "placement": "bottom"
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-DAMIANMYERSCOUGH-PROM}"
          },
          "exemplar": true,
          "expr": "tesla_powerwall_state_of_charge_percentage{job=\"tesla_powerwall\"}",
          "interval": "",
          "legendFormat": "Charge",
          "refId": "A"
        }
      ],
      "title": "Battery Charge",
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GRAFANACLOUD-DAMIANMYERSCOUGH-PROM}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "continuous-RdYlGr"
          },
          "mappings": [],
          "noValue": "-",
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          },
          "unit": "kwatth"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 5,
        "x": 0,
        "y": 14
      },
      "id": 9,
      "options": {
        "colorMode": "value",
        "graphMode": "none",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "sum"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "8.4.5-56740",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-DAMIANMYERSCOUGH-PROM}"
          },
          "exemplar": true,
          "expr": "(sum_over_time(tesla_load_instant_power{job=\"tesla_powerwall\"}[$__interval:1h]) / count_over_time(tesla_load_instant_power{job=\"tesla_powerwall\"}[$__interval:1h]) / 1000) / 2",
          "interval": "",
          "legendFormat": "",
          "refId": "A"
        }
      ],
      "title": "House",
      "type": "stat"
    },
    {
      "datasource": {
        "type": "prometheus",
        "uid": "${DS_GRAFANACLOUD-DAMIANMYERSCOUGH-PROM}"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "dark-green",
            "mode": "fixed"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          },
          "unit": "kwatth"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 19,
        "x": 5,
        "y": 14
      },
      "id": 11,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "max"
          ],
          "fields": "",
          "values": false
        },
        "text": {},
        "textMode": "value_and_name"
      },
      "pluginVersion": "8.4.5-56740",
      "targets": [
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-DAMIANMYERSCOUGH-PROM}"
          },
          "exemplar": true,
          "expr": "tesla_battery_instant_power{job=\"tesla_powerwall\"} / 1000",
          "hide": false,
          "interval": "",
          "legendFormat": "Battery",
          "refId": "B"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-DAMIANMYERSCOUGH-PROM}"
          },
          "exemplar": true,
          "expr": "tesla_solar_instant_power{job=\"tesla_powerwall\"} / 1000",
          "interval": "",
          "legendFormat": "Solar",
          "refId": "A"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-DAMIANMYERSCOUGH-PROM}"
          },
          "exemplar": true,
          "expr": "tesla_site_instant_power{job=\"tesla_powerwall\"} / 1000",
          "hide": false,
          "interval": "",
          "legendFormat": "Grid",
          "refId": "D"
        },
        {
          "datasource": {
            "type": "prometheus",
            "uid": "${DS_GRAFANACLOUD-DAMIANMYERSCOUGH-PROM}"
          },
          "exemplar": true,
          "expr": "tesla_load_instant_power{job=\"tesla_powerwall\"} / 1000",
          "hide": false,
          "interval": "",
          "legendFormat": "House",
          "refId": "C"
        }
      ],
      "title": "Peak Output",
      "type": "stat"
    }
  ],
  "refresh": false,
  "schemaVersion": 35,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "2022-04-06T06:59:46.000Z",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Tesla Powerwall",
  "uid": "8lHzJ9snk",
  "version": 19,
  "weekStart": ""
}