{
  "widget": {
    "typeFullFqn": "system.cards.html_value_card",
    "type": "latest",
    "sizeX": 7.5,
    "sizeY": 3,
    "config": {
      "datasources": [
        {
          "type": "entityCount",
          "name": "",
          "entityAliasId": "989c6591-826d-497d-20d3-30467735b722",
          "filterId": "b465aa25-e06a-3c92-ac4d-95508a850564",
          "dataKeys": [
            {
              "name": "count",
              "type": "count",
              "label": "lowBatteryDevicesNumber",
              "color": "#2196f3",
              "settings": {},
              "_hash": 0.5457014775529246,
              "aggregationType": null,
              "units": null,
              "decimals": null,
              "funcBody": null,
              "usePostProcessing": null,
              "postFuncBody": null
            }
          ],
          "alarmFilterConfig": {
            "statusList": [
              "ACTIVE"
            ]
          }
        }
      ],
      "timewindow": {
        "displayValue": "",
        "selectedTab": 0,
        "realtime": {
          "realtimeType": 1,
          "interval": 1000,
          "timewindowMs": 60000,
          "quickInterval": "CURRENT_DAY",
          "hideInterval": false,
          "hideLastInterval": false,
          "hideQuickInterval": false
        },
        "history": {
          "historyType": 0,
          "interval": 1000,
          "timewindowMs": 60000,
          "fixedTimewindow": {
            "startTimeMs": 1760857224948,
            "endTimeMs": 1760943624948
          },
          "quickInterval": "CURRENT_DAY",
          "hideInterval": false,
          "hideLastInterval": false,
          "hideFixedInterval": false,
          "hideQuickInterval": false
        },
        "aggregation": {
          "type": "AVG",
          "limit": 25000
        }
      },
      "showTitle": false,
      "backgroundColor": "#FFFFFF00",
      "color": "rgba(0, 0, 0, 0.87)",
      "padding": "0px",
      "settings": {
        "cardHtml": "<div class='card' id=\"lowBatteryDevices\">\n    <div class='content' id=\"lowBatteryDevices\">\n        <div class='value' id=\"lowBatteryDevices\">\n            ${lowBatteryDevicesNumber:0}\n        </div> \n        <div class='description' id=\"lowBatteryDevices\">\n            Low battery devices\n        </div>\n    </div>\n</div>",
        "cardCss": ".card {\n  width: 100%;\n  height: 100%;\n  border: 1px solid #E0E0E0;\n  border-radius: 16px;\n  box-sizing: border-box;\n  background: #ffffff;\n}\n\n.card .content {\n  padding: 24px 32px;\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  justify-content: center;\n  height: 100%;\n  box-sizing: border-box;\n}\n\n.card .value {\n  font-size: 1.5em;\n  font-weight: 700;\n  line-height: 1.5;\n  color: #F2994A;\n  text-align: center;\n}\n\n.card .description {\n  font-size: 1em;\n  font-weight: 500;\n  line-height: 1.5;\n  color: #333333;\n  text-align: center;\n  letter-spacing: 0.5px;\n  text-transform: uppercase;\n}\n\n@media (min-width: 960px) and (max-width: 1200px) {\n  .card .value {\n    font-size: 2.3em;\n  }\n\n  .card .description {\n    font-size: 0.9em;\n  }\n}"
      },
      "title": "Low Battery Devices Counter Card",
      "dropShadow": false,
      "enableFullscreen": false,
      "widgetStyle": {},
      "titleStyle": {
        "fontSize": "16px",
        "fontWeight": 400
      },
      "useDashboardTimewindow": true,
      "showLegend": false,
      "actions": {},
      "displayTimewindow": true,
      "widgetCss": "",
      "pageSize": 1024,
      "noDataDisplayMessage": "",
      "showTitleIcon": false,
      "titleTooltip": ""
    },
    "row": 0,
    "col": 0,
    "id": "fb69cec2-a913-93f6-5f34-f769d0a7c1e9"
  },
  "aliasesInfo": {
    "datasourceAliases": {
      "0": {
        "alias": "All Sensors",
        "filter": {
          "type": "entityType",
          "resolveMultiple": true,
          "entityType": "DEVICE"
        }
      }
    },
    "targetDeviceAlias": null
  },
  "filtersInfo": {
    "datasourceFilters": {
      "0": {
        "filter": "LowBatteryFilter",
        "keyFilters": [
          {
            "key": {
              "type": "TIME_SERIES",
              "key": "battery"
            },
            "valueType": "NUMERIC",
            "predicates": [
              {
                "keyFilterPredicate": {
                  "operation": "LESS",
                  "value": {
                    "defaultValue": 20,
                    "dynamicValue": {
                      "sourceType": "CURRENT_TENANT",
                      "sourceAttribute": "lowBattThreshold",
                      "inherit": false
                    }
                  },
                  "type": "NUMERIC"
                },
                "userInfo": {
                  "editable": true,
                  "label": "",
                  "autogeneratedLabel": true,
                  "order": 0
                }
              }
            ]
          }
        ],
        "editable": false
      }
    }
  },
  "originalSize": {
    "sizeX": 6,
    "sizeY": 2
  },
  "originalColumns": 24
}