Grafana dashboard: Złotniki
Description: nasze mieszkanko


{
  "__inputs": [
    {
      "name": "DS_HOME_ASSISTANT",
      "label": "Home assistant",
      "description": "",
      "type": "datasource",
      "pluginId": "influxdb",
      "pluginName": "InfluxDB"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "bargauge",
      "name": "Bar gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "7.3.2"
    },
    {
      "type": "datasource",
      "id": "influxdb",
      "name": "InfluxDB",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "news",
      "name": "News",
      "version": ""
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 13406,
  "graphTooltip": 1,
  "id": null,
  "links": [],
  "panels": [
    {
      "datasource": "${DS_HOME_ASSISTANT}",
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "fixed"
          },
          "custom": {},
          "decimals": 1,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              },
              {
                "color": "#EAB839",
                "value": 90
              }
            ]
          },
          "unit": "dthms"
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 14,
        "x": 0,
        "y": 0
      },
      "id": 8,
      "options": {
        "displayMode": "gradient",
        "orientation": "horizontal",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "showUnfilled": false
      },
      "pluginVersion": "7.3.2",
      "targets": [
        {
          "alias": "$tag_entity_id",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "entity_id"
              ],
              "type": "tag"
            },
            {
              "params": [
                "previous"
              ],
              "type": "fill"
            }
          ],
          "measurement": "min",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "duration"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "domain",
              "operator": "=",
              "value": "sensor"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Czas dojazdu",
      "transparent": true,
      "type": "bargauge"
    },
    {
      "datasource": "${DS_HOME_ASSISTANT}",
      "fieldConfig": {
        "defaults": {
          "custom": {}
        },
        "overrides": []
      },
      "gridPos": {
        "h": 11,
        "w": 10,
        "x": 14,
        "y": 0
      },
      "id": 10,
      "options": {
        "feedUrl": "https://gazetawroclawska.pl/rss/gazetawroclawska.xml"
      },
      "pluginVersion": "7.3.2",
      "targets": [
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": []
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Wiadomości",
      "type": "news"
    },
    {
      "datasource": "${DS_HOME_ASSISTANT}",
      "description": "",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "mappings": [],
          "max": 0,
          "min": 0,
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "dark-blue",
                "value": null
              },
              {
                "color": "dark-yellow",
                "value": 1
              }
            ]
          },
          "unit": "Misc"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byType",
              "options": "number"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "mode": "palette-classic"
                }
              },
              {
                "id": "color",
                "value": {
                  "mode": "thresholds"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byType",
              "options": "number"
            },
            "properties": [
              {
                "id": "mappings",
                "value": [
                  {
                    "from": "",
                    "id": 1,
                    "text": "|",
                    "to": "",
                    "type": 1,
                    "value": "1"
                  },
                  {
                    "from": "",
                    "id": 2,
                    "text": "O",
                    "to": "",
                    "type": 1,
                    "value": "0"
                  }
                ]
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 4,
        "w": 14,
        "x": 0,
        "y": 7
      },
      "id": 6,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "vertical",
        "reduceOptions": {
          "calcs": [
            "last"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "value_and_name"
      },
      "pluginVersion": "7.3.2",
      "targets": [
        {
          "$$hashKey": "object:2219",
          "aggregation": "Last",
          "alias": "Biuro",
          "crit": 0,
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "displayAliasType": "Always",
          "displayType": "Regular",
          "displayValueWithAlias": "When Alias Displayed",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "previous"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "state",
          "orderByTime": "ASC",
          "policy": "default",
          "query": "SELECT last(\"value\") FROM \"state\" WHERE (\"entity_id\" = 'office') AND $timeFilter GROUP BY time(1s) fill(previous)",
          "rawQuery": false,
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "office"
            }
          ],
          "units": "short",
          "url": "",
          "valueDisplayRegex": "",
          "valueHandler": "Number Threshold",
          "warn": 1
        },
        {
          "$$hashKey": "object:2219",
          "aggregation": "Last",
          "alias": "Hall",
          "crit": 0,
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "displayAliasType": "Always",
          "displayType": "Regular",
          "displayValueWithAlias": "When Alias Displayed",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "previous"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "state",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "B",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "lights_hall_ikea"
            }
          ],
          "units": "short",
          "url": "",
          "valueDisplayRegex": "",
          "valueHandler": "Number Threshold",
          "warn": 1
        },
        {
          "$$hashKey": "object:2219",
          "aggregation": "Last",
          "alias": "Entry",
          "crit": 0,
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "displayAliasType": "Always",
          "displayType": "Regular",
          "displayValueWithAlias": "When Alias Displayed",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "previous"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "state",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "C",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "lights_entry_ikea"
            }
          ],
          "units": "short",
          "url": "",
          "valueDisplayRegex": "",
          "valueHandler": "Number Threshold",
          "warn": 1
        },
        {
          "$$hashKey": "object:2219",
          "aggregation": "Last",
          "alias": "Łazienka",
          "crit": 0,
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "displayAliasType": "Always",
          "displayType": "Regular",
          "displayValueWithAlias": "When Alias Displayed",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "previous"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "state",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "D",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "bathroom"
            }
          ],
          "units": "short",
          "url": "",
          "valueDisplayRegex": "",
          "valueHandler": "Number Threshold",
          "warn": 1
        },
        {
          "$$hashKey": "object:2219",
          "aggregation": "Last",
          "alias": "Sypialnia",
          "crit": 0,
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "displayAliasType": "Always",
          "displayType": "Regular",
          "displayValueWithAlias": "When Alias Displayed",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "previous"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "state",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "E",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "mibedsidelamp2_2ba4"
            }
          ],
          "units": "short",
          "url": "",
          "valueDisplayRegex": "",
          "valueHandler": "Number Threshold",
          "warn": 1
        },
        {
          "$$hashKey": "object:2219",
          "aggregation": "Last",
          "alias": "Balkon",
          "crit": 0,
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "displayAliasType": "Always",
          "displayType": "Regular",
          "displayValueWithAlias": "When Alias Displayed",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "previous"
              ],
              "type": "fill"
            }
          ],
          "hide": false,
          "measurement": "state",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "F",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "last"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "=",
              "value": "mibedsidelamp2_eec2"
            }
          ],
          "units": "short",
          "url": "",
          "valueDisplayRegex": "",
          "valueHandler": "Number Threshold",
          "warn": 1
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Oświetlenie",
      "type": "stat"
    },
    {
      "datasource": "${DS_HOME_ASSISTANT}",
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": null,
            "filterable": false
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 80
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 7,
        "w": 14,
        "x": 0,
        "y": 11
      },
      "id": 12,
      "interval": "1m",
      "options": {
        "showHeader": true,
        "sortBy": [
          {
            "desc": true,
            "displayName": "entity_id"
          }
        ]
      },
      "pluginVersion": "7.3.2",
      "targets": [
        {
          "groupBy": [],
          "hide": false,
          "limit": "5",
          "measurement": "state",
          "orderByTime": "DESC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "table",
          "select": [
            [
              {
                "params": [
                  "media_album_name_str"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "media_artist_str"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "media_title_str"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "state"
                ],
                "type": "field"
              }
            ],
            [
              {
                "params": [
                  "friendly_name_str"
                ],
                "type": "field"
              }
            ]
          ],
          "slimit": "",
          "tags": [
            {
              "key": "domain",
              "operator": "=",
              "value": "media_player"
            }
          ],
          "tz": "UTC"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Spotify",
      "transformations": [
        {
          "id": "organize",
          "options": {
            "excludeByName": {
              "Time": true
            },
            "indexByName": {
              "Time": 0,
              "friendly_name_str": 1,
              "media_album_name_str": 2,
              "media_artist_str": 3,
              "media_title_str": 4,
              "state": 5
            },
            "renameByName": {
              "Time": "",
              "media_album_name_str": "Album",
              "media_artist_str": "Artysta",
              "media_title_str": "Piosenka"
            }
          }
        }
      ],
      "type": "table"
    },
    {
      "datasource": "${DS_HOME_ASSISTANT}",
      "fieldConfig": {
        "defaults": {
          "custom": {
            "align": null,
            "filterable": false
          },
          "decimals": 1,
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "blue",
                "value": null
              },
              {
                "color": "green",
                "value": 20.5
              },
              {
                "color": "yellow",
                "value": 22.5
              },
              {
                "color": "red",
                "value": 50
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "°C.mean {entity_id: temperature_humidity_sensor_temperature}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "na zewnątrz"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "°C.mean {entity_id: mi_temperature_a4c13841b1a2}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "pokój Stasia"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "°C.mean {entity_id: mi_temperature_a4c138a651ef}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "sypialnia"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "°C.mean {entity_id: mi_temperature_a4c138b25c0f}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "salon"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "°C.mean {entity_id: mi_temperature_a4c138db877e}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "łazienka"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 5,
        "w": 10,
        "x": 14,
        "y": 11
      },
      "id": 2,
      "interval": "",
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "vertical",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "value_and_name"
      },
      "pluginVersion": "7.3.2",
      "targets": [
        {
          "alias": "",
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "entity_id"
              ],
              "type": "tag"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "°C",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "!=",
              "value": "openweathermap_forecast_temperature"
            },
            {
              "condition": "AND",
              "key": "entity_id",
              "operator": "!=",
              "value": "openweathermap_temperature"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Temperatura",
      "type": "stat"
    },
    {
      "datasource": "${DS_HOME_ASSISTANT}",
      "fieldConfig": {
        "defaults": {
          "custom": {},
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "dark-red",
                "value": null
              },
              {
                "color": "dark-yellow",
                "value": 56
              },
              {
                "color": "dark-green",
                "value": 60
              },
              {
                "color": "#6ED0E0",
                "value": 68
              }
            ]
          },
          "unit": "humidity"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "%.mean {entity_id: mi_humidity_a4c13841b1a2}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "pokój Stasia"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "%.mean {entity_id: mi_humidity_a4c138a651ef}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "sypialnia"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "%.mean {entity_id: mi_humidity_a4c138b25c0f}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "salon"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "%.mean {entity_id: mi_humidity_a4c138db877e}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "łazienka"
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "%.mean {entity_id: temperature_humidity_sensor_humidity}"
            },
            "properties": [
              {
                "id": "displayName",
                "value": "na zewnątrz"
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 5,
        "w": 10,
        "x": 14,
        "y": 16
      },
      "id": 4,
      "options": {
        "colorMode": "value",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "mean"
          ],
          "fields": "",
          "values": false
        },
        "textMode": "auto"
      },
      "pluginVersion": "7.3.2",
      "targets": [
        {
          "groupBy": [
            {
              "params": [
                "$__interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "entity_id"
              ],
              "type": "tag"
            },
            {
              "params": [
                "none"
              ],
              "type": "fill"
            }
          ],
          "measurement": "%",
          "orderByTime": "ASC",
          "policy": "default",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [
            {
              "key": "entity_id",
              "operator": "!=",
              "value": "openweathermap_humidity"
            },
            {
              "condition": "AND",
              "key": "entity_id",
              "operator": "!=",
              "value": "sm_g980f_poziom_baterii"
            },
            {
              "condition": "AND",
              "key": "entity_id",
              "operator": "!=",
              "value": "iphone_grzegorz_battery_level"
            },
            {
              "condition": "AND",
              "key": "entity_id",
              "operator": "!=",
              "value": "motion_sensor_battery"
            },
            {
              "condition": "AND",
              "key": "entity_id",
              "operator": "!=",
              "value": "openweathermap_cloud_coverage"
            },
            {
              "condition": "AND",
              "key": "entity_id",
              "operator": "!=",
              "value": "openweathermap_humidity"
            },
            {
              "condition": "AND",
              "key": "entity_id",
              "operator": "!=",
              "value": "pilot_bathroom"
            },
            {
              "condition": "AND",
              "key": "entity_id",
              "operator": "!=",
              "value": "pilot_entry"
            },
            {
              "condition": "AND",
              "key": "entity_id",
              "operator": "!=",
              "value": "pilot_hall"
            },
            {
              "condition": "AND",
              "key": "entity_id",
              "operator": "!=",
              "value": "plito_office"
            },
            {
              "condition": "AND",
              "key": "entity_id",
              "operator": "!=",
              "value": "water_leak_sensor_battery_2"
            },
            {
              "condition": "AND",
              "key": "entity_id",
              "operator": "!=",
              "value": "water_leak_sensor_battery_2"
            },
            {
              "condition": "AND",
              "key": "entity_id",
              "operator": "!=",
              "value": "temperature_humidity_sensor_battery"
            },
            {
              "condition": "AND",
              "key": "entity_id",
              "operator": "!=",
              "value": "water_leak_sensor_battery_3"
            },
            {
              "condition": "AND",
              "key": "entity_id",
              "operator": "!=",
              "value": "water_leak_sensor_battery_4"
            },
            {
              "condition": "AND",
              "key": "entity_id",
              "operator": "!=",
              "value": "water_leak_sensor_battery"
            }
          ]
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Wilgotność",
      "type": "stat"
    }
  ],
  "refresh": "5s",
  "schemaVersion": 26,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": []
  },
  "time": {
    "from": "now-30m",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "Złotniki",
  "uid": "s77gASZRz",
  "version": 16,
  "description": "nasze mieszkanko"
}