{
  "title": "Water Consumption",
  "image": null,
  "mobileHide": false,
  "mobileOrder": null,
  "configuration": {
    "description": "",
    "widgets": {
      "c88e1187-6255-34bc-d63c-8c9d790452d6": {
        "typeFullFqn": "system.cards.timeseries_table",
        "type": "timeseries",
        "sizeX": 8,
        "sizeY": 6.5,
        "config": {
          "datasources": [
            {
              "type": "entity",
              "name": "",
              "entityAliasId": "ed5afb8b-4a5f-063c-4235-be4a5f1ab702",
              "filterId": null,
              "dataKeys": [
                {
                  "name": "waterConsumption",
                  "type": "timeseries",
                  "label": "Water Meter",
                  "color": "#2196f3",
                  "settings": {},
                  "units": "gal",
                  "decimals": 0,
                  "aggregationType": null,
                  "funcBody": null,
                  "usePostProcessing": null,
                  "postFuncBody": null
                },
                {
                  "name": "waterConsumptionHourly",
                  "type": "timeseries",
                  "label": "Water Consumption Hourly",
                  "color": "#4caf50",
                  "settings": {},
                  "units": "gal/hr",
                  "decimals": 0,
                  "aggregationType": null,
                  "funcBody": null,
                  "usePostProcessing": null,
                  "postFuncBody": null
                }
              ],
              "alarmFilterConfig": {
                "statusList": [
                  "ACTIVE"
                ]
              },
              "latestDataKeys": []
            }
          ],
          "showTitle": true,
          "backgroundColor": "rgb(255, 255, 255)",
          "color": "rgba(0, 0, 0, 0.87)",
          "padding": "8px",
          "settings": {
            "enableSearch": true,
            "enableSelectColumnDisplay": true,
            "enableStickyHeader": true,
            "enableStickyAction": true,
            "showCellActionsMenu": true,
            "reserveSpaceForHiddenAction": "true",
            "showTimestamp": true,
            "dateFormat": {
              "format": "yyyy-MM-dd HH:mm:ss"
            },
            "displayPagination": true,
            "useEntityLabel": false,
            "defaultPageSize": 10,
            "pageStepCount": 3,
            "pageStepIncrement": 10,
            "hideEmptyLines": false,
            "disableStickyHeader": false,
            "useRowStyleFunction": false,
            "rowStyleFunction": "",
            "sortOrder": {
              "property": "createdTime",
              "direction": "DESC"
            }
          },
          "title": "Water Consumption",
          "dropShadow": true,
          "enableFullscreen": true,
          "titleStyle": {
            "fontSize": "16px",
            "fontWeight": 400,
            "padding": "5px 10px 5px 10px"
          },
          "useDashboardTimewindow": true,
          "showLegend": false,
          "widgetStyle": {},
          "actions": {},
          "showTitleIcon": false,
          "iconColor": "rgba(0, 0, 0, 0.87)",
          "iconSize": "24px",
          "configMode": "basic",
          "titleFont": {
            "size": 16,
            "sizeUnit": "px",
            "family": null,
            "weight": "bold",
            "style": "normal"
          },
          "titleColor": null,
          "titleIcon": null,
          "enableDataExport": true
        },
        "row": 0,
        "col": 0,
        "id": "c88e1187-6255-34bc-d63c-8c9d790452d6"
      },
      "a964be38-6d03-30dc-3c31-3492316b5562": {
        "typeFullFqn": "system.cards.aggregated_value_card",
        "type": "timeseries",
        "sizeX": 4.5,
        "sizeY": 3.5,
        "config": {
          "datasources": [
            {
              "type": "entity",
              "name": "",
              "entityAliasId": "ed5afb8b-4a5f-063c-4235-be4a5f1ab702",
              "dataKeys": [
                {
                  "name": "waterConsumptionHourly",
                  "type": "timeseries",
                  "label": "waterConsumptionHourly",
                  "color": "rgba(0, 0, 0, 0.87)",
                  "settings": {},
                  "units": "gall",
                  "decimals": 2
                }
              ],
              "alarmFilterConfig": {
                "statusList": [
                  "ACTIVE"
                ]
              },
              "latestDataKeys": [
                {
                  "name": "waterConsumptionHourly",
                  "type": "timeseries",
                  "label": "Latest",
                  "color": "#4caf50",
                  "settings": {
                    "position": "center",
                    "font": {
                      "size": 52,
                      "sizeUnit": "px",
                      "family": "Roboto",
                      "weight": "500",
                      "style": "normal",
                      "lineHeight": "1"
                    },
                    "color": {
                      "type": "constant",
                      "color": "rgba(0, 0, 0, 0.87)",
                      "rangeList": {
                        "advancedMode": false,
                        "range": []
                      },
                      "colorFunction": "var temperature = value;\nif (typeof temperature !== undefined) {\n  var percent = (temperature + 60)/120 * 100;\n  return tinycolor.mix('blue', 'red', percent).toHexString();\n}\nreturn 'blue';"
                    },
                    "showArrow": false
                  },
                  "units": "gal",
                  "decimals": 2,
                  "aggregationType": "NONE"
                },
                {
                  "name": "waterConsumptionHourly",
                  "type": "timeseries",
                  "label": "Delta absolute",
                  "color": "#ffc107",
                  "settings": {
                    "position": "rightBottom",
                    "font": {
                      "size": 11,
                      "sizeUnit": "px",
                      "family": "Roboto",
                      "weight": "400",
                      "style": "normal",
                      "lineHeight": "16px"
                    },
                    "color": {
                      "type": "constant",
                      "color": "rgba(0, 0, 0, 0.38)",
                      "rangeList": {
                        "advancedMode": false,
                        "range": []
                      },
                      "colorFunction": "var temperature = value;\nif (typeof temperature !== undefined) {\n  var percent = (temperature + 60)/120 * 100;\n  return tinycolor.mix('blue', 'red', percent).toHexString();\n}\nreturn 'blue';"
                    },
                    "showArrow": false
                  },
                  "units": "m³",
                  "decimals": 1,
                  "aggregationType": "AVG",
                  "comparisonEnabled": true,
                  "timeForComparison": "previousInterval",
                  "comparisonResultType": "DELTA_ABSOLUTE"
                }
              ]
            }
          ],
          "timewindow": {
            "selectedTab": 1,
            "history": {
              "historyType": 0,
              "interval": 10000,
              "timewindowMs": 300000
            },
            "aggregation": {
              "type": "AVG"
            }
          },
          "showTitle": true,
          "backgroundColor": "rgba(0, 0, 0, 0)",
          "color": null,
          "padding": "0",
          "settings": {
            "stack": false,
            "fontSize": 10,
            "fontColor": "#545454",
            "showTooltip": true,
            "tooltipIndividual": false,
            "tooltipCumulative": false,
            "hideZeros": false,
            "grid": {
              "verticalLines": true,
              "horizontalLines": true,
              "outlineWidth": 1,
              "color": "#545454",
              "backgroundColor": null,
              "tickColor": "#DDDDDD"
            },
            "xaxis": {
              "title": null,
              "showLabels": true,
              "color": "#545454"
            },
            "yaxis": {
              "min": null,
              "max": null,
              "title": null,
              "showLabels": true,
              "color": "#545454",
              "tickSize": null,
              "tickDecimals": 0,
              "ticksFormatter": ""
            },
            "shadowSize": 4,
            "smoothLines": false,
            "comparisonEnabled": false,
            "xaxisSecond": {
              "axisPosition": "top",
              "title": null,
              "showLabels": true
            },
            "showLegend": true,
            "legendConfig": {
              "direction": "column",
              "position": "bottom",
              "sortDataKeys": false,
              "showMin": false,
              "showMax": false,
              "showAvg": true,
              "showTotal": false,
              "showLatest": false
            },
            "customLegendEnabled": false,
            "showSubtitle": true,
            "subtitle": "${entityName}",
            "subtitleFont": {
              "family": "Roboto",
              "size": 12,
              "sizeUnit": "px",
              "style": "normal",
              "weight": "400",
              "lineHeight": "16px"
            },
            "subtitleColor": "rgba(0, 0, 0, 0.38)",
            "showDate": true,
            "dateFormat": {
              "format": null,
              "lastUpdateAgo": true,
              "custom": false
            },
            "dateFont": {
              "family": "Roboto",
              "size": 12,
              "sizeUnit": "px",
              "style": "normal",
              "weight": "400",
              "lineHeight": "16px"
            },
            "dateColor": "rgba(0, 0, 0, 0.38)",
            "showChart": true,
            "chartColor": "rgba(0, 0, 0, 0.87)",
            "background": {
              "type": "color",
              "color": "#fff",
              "overlay": {
                "enabled": false,
                "color": "rgba(255,255,255,0.72)",
                "blur": 3
              }
            },
            "autoScale": false,
            "padding": "18px"
          },
          "title": "Water consumption for the previous hour",
          "dropShadow": true,
          "enableFullscreen": false,
          "titleStyle": {
            "fontSize": "16px",
            "fontWeight": 400
          },
          "mobileHeight": null,
          "configMode": "basic",
          "actions": {},
          "showTitleIcon": true,
          "titleIcon": "water_drop",
          "iconColor": "rgba(0, 0, 0, 0.87)",
          "titleFont": {
            "size": 16,
            "sizeUnit": "px",
            "family": "Roboto",
            "weight": "500",
            "style": "normal",
            "lineHeight": "24px"
          },
          "iconSize": "24px",
          "titleTooltip": "",
          "widgetStyle": {},
          "widgetCss": "",
          "pageSize": 1024,
          "noDataDisplayMessage": "",
          "useDashboardTimewindow": false,
          "displayTimewindow": false,
          "decimals": 0,
          "timewindowStyle": {
            "showIcon": true,
            "iconSize": "24px",
            "icon": null,
            "iconPosition": "left",
            "font": {
              "size": 12,
              "sizeUnit": "px",
              "family": "Roboto",
              "weight": "400",
              "style": "normal",
              "lineHeight": "16px"
            },
            "color": "rgba(0, 0, 0, 0.38)",
            "displayTypePrefix": false
          },
          "titleColor": "rgba(0, 0, 0, 0.87)",
          "borderRadius": null,
          "enableDataExport": false
        },
        "row": 0,
        "col": 0,
        "id": "a964be38-6d03-30dc-3c31-3492316b5562"
      }
    },
    "states": {
      "default": {
        "name": "Water Consumption",
        "root": true,
        "layouts": {
          "main": {
            "widgets": {
              "c88e1187-6255-34bc-d63c-8c9d790452d6": {
                "sizeX": 15,
                "sizeY": 7,
                "row": 0,
                "col": 9
              },
              "a964be38-6d03-30dc-3c31-3492316b5562": {
                "sizeX": 9,
                "sizeY": 7,
                "mobileHeight": null,
                "row": 0,
                "col": 0
              }
            },
            "gridSettings": {
              "layoutType": "default",
              "backgroundColor": "#eeeeee",
              "columns": 24,
              "margin": 10,
              "outerMargin": true,
              "backgroundSizeMode": "100%",
              "minColumns": 24,
              "viewFormat": "grid",
              "autoFillHeight": false,
              "rowHeight": 70,
              "mobileAutoFillHeight": false,
              "mobileRowHeight": 70
            }
          }
        }
      }
    },
    "entityAliases": {
      "ed5afb8b-4a5f-063c-4235-be4a5f1ab702": {
        "id": "ed5afb8b-4a5f-063c-4235-be4a5f1ab702",
        "alias": "Water Meter",
        "filter": {
          "type": "deviceType",
          "resolveMultiple": true,
          "deviceTypes": [
            "Water Meter"
          ],
          "deviceNameFilter": ""
        }
      }
    },
    "filters": {},
    "timewindow": {
      "selectedTab": 0,
      "realtime": {
        "realtimeType": 0,
        "timewindowMs": 3600000
      },
      "aggregation": {
        "type": "NONE",
        "limit": 50000
      }
    },
    "settings": {
      "stateControllerId": "entity",
      "showTitle": false,
      "showDashboardsSelect": true,
      "showEntitiesSelect": true,
      "showDashboardTimewindow": true,
      "showDashboardExport": true,
      "toolbarAlwaysOpen": true
    }
  },
  "name": "Water Consumption",
  "resources": []
}