161 lines
4.3 KiB
JSON
161 lines
4.3 KiB
JSON
{
|
|
"annotations": {
|
|
"list": [
|
|
{
|
|
"builtIn": 1,
|
|
"datasource": {
|
|
"type": "grafana",
|
|
"uid": "-- Grafana --"
|
|
},
|
|
"enable": true,
|
|
"hide": true,
|
|
"iconColor": "rgba(0, 211, 255, 1)",
|
|
"name": "Annotations & Alerts",
|
|
"type": "dashboard"
|
|
}
|
|
]
|
|
},
|
|
"editable": true,
|
|
"fiscalYearStartMonth": 0,
|
|
"graphTooltip": 0,
|
|
"id": 4,
|
|
"links": [],
|
|
"panels": [
|
|
{
|
|
"datasource": {
|
|
"uid": "cf6lzj1gt48aoe"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green"
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 80
|
|
}
|
|
]
|
|
},
|
|
"unit": "currencyEUR"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 12,
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"id": 2,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "area",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"percentChangeColorMode": "standard",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"lastNotNull"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"showPercentChange": false,
|
|
"textMode": "auto",
|
|
"wideLayout": true
|
|
},
|
|
"pluginVersion": "12.0.1",
|
|
"targets": [
|
|
{
|
|
"query": "import \"date\"\n\nfrom(bucket: \"homeassistant\")\n |> range(start: date.truncate(t: now(), unit: 1mo))\n |> filter(fn: (r) => r[\"entity_id\"] == \"thienpont_serruys_load_grid\")\n |> filter(fn: (r) => r[\"_field\"] == \"value\")\n |> filter(fn: (r) => r[\"domain\"] == \"sensor\")\n |> filter(fn: (r) => r[\"_measurement\"] == \"W\")\n |> aggregateWindow(every: 15m, fn: mean, createEmpty: false, offset: 0s)\n |> sum()\n |> map(fn: (r) => ({ r with _value: r._value * 0.00013 }))\n |> yield(name: \"peak_load_15min\")",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Variable Energy cost this month",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": {
|
|
"uid": "cf6lzj1gt48aoe"
|
|
},
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{
|
|
"color": "green"
|
|
},
|
|
{
|
|
"color": "red",
|
|
"value": 80
|
|
}
|
|
]
|
|
},
|
|
"unit": "currencyEUR"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 12,
|
|
"x": 12,
|
|
"y": 0
|
|
},
|
|
"id": 3,
|
|
"options": {
|
|
"colorMode": "value",
|
|
"graphMode": "area",
|
|
"justifyMode": "auto",
|
|
"orientation": "auto",
|
|
"percentChangeColorMode": "standard",
|
|
"reduceOptions": {
|
|
"calcs": [
|
|
"lastNotNull"
|
|
],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"showPercentChange": false,
|
|
"textMode": "auto",
|
|
"wideLayout": true
|
|
},
|
|
"pluginVersion": "12.0.1",
|
|
"targets": [
|
|
{
|
|
"query": "import \"date\"\n\nfrom(bucket: \"homeassistant\")\n |> range(start: date.truncate(t: now(), unit: 1mo))\n |> filter(fn: (r) => r[\"entity_id\"] == \"thienpont_serruys_load_grid\")\n |> filter(fn: (r) => r[\"_field\"] == \"value\")\n |> filter(fn: (r) => r[\"domain\"] == \"sensor\")\n |> filter(fn: (r) => r[\"_measurement\"] == \"W\")\n |> aggregateWindow(every: 15m, fn: mean, createEmpty: false, offset: 0s)\n |> sort(columns: [\"_value\"], desc: true)\n |> limit(n: 1)\n |> map(fn: (r) => ({ r with _value: r._value * 60.0 / 1000.0 / 12.0 }))",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Fixed monthly Energy cost, based on this month's peak",
|
|
"type": "stat"
|
|
}
|
|
],
|
|
"preload": false,
|
|
"schemaVersion": 41,
|
|
"tags": [],
|
|
"templating": {
|
|
"list": []
|
|
},
|
|
"time": {
|
|
"from": "now-6h",
|
|
"to": "now"
|
|
},
|
|
"timepicker": {},
|
|
"timezone": "browser",
|
|
"title": "Prices",
|
|
"uid": "b8f69b2f-886c-4076-979d-b31352d8b531",
|
|
"version": 4
|
|
}
|