{
  "widget": {
    "type": "latest",
    "sizeX": 8,
    "sizeY": 3,
    "config": {
      "datasources": [
        {
          "type": "entityCount",
          "name": null,
          "entityAliasId": "989c6591-826d-497d-20d3-30467735b722",
          "filterId": "0a7b9547-398e-cb44-acd7-f56439c12d32",
          "dataKeys": [
            {
              "name": "count",
              "type": "count",
              "label": "inactiveDevicesNumber",
              "color": "#4caf50",
              "settings": {},
              "_hash": 0.7518461373516785,
              "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": 1678090031165,
            "endTimeMs": 1678176431165
          },
          "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=\"inactiveDevices\">\n    <div class='content' id=\"inactiveDevices\">\n        <div class='value' id=\"inactiveDevices\">\n            ${inactiveDevicesNumber:0}\n        </div> \n        <div class='description' id=\"inactiveDevices\">\n            Inactive 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: #e53935;\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": "Inactive Devices Counter Card",
      "dropShadow": false,
      "enableFullscreen": false,
      "widgetStyle": {},
      "titleStyle": {
        "fontSize": "16px",
        "fontWeight": 400
      },
      "useDashboardTimewindow": true,
      "showLegend": false,
      "actions": {
        "elementClick": [
          {
            "name": "inactiveDevices",
            "icon": "more_horiz",
            "type": "updateDashboardState",
            "targetDashboardStateId": "inactive_devices",
            "setEntityId": false,
            "stateEntityParamName": null,
            "openRightLayout": false,
            "id": "20174295-39d9-1284-46b1-d9325c928cca"
          }
        ]
      },
      "showTitleIcon": false,
      "titleIcon": null,
      "iconColor": "rgba(0, 0, 0, 0.87)",
      "iconSize": "24px",
      "titleTooltip": "",
      "enableDataExport": false,
      "displayTimewindow": true,
      "widgetCss": "",
      "pageSize": 1024,
      "noDataDisplayMessage": ""
    },
    "id": "90a8cea8-94b4-3ba1-cdda-231146816c40",
    "typeFullFqn": "system.cards.html_value_card"
  },
  "aliasesInfo": {
    "datasourceAliases": {
      "0": {
        "alias": "All Sensors",
        "filter": {
          "type": "entityType",
          "resolveMultiple": true,
          "entityType": "DEVICE"
        }
      }
    },
    "targetDeviceAlias": null
  },
  "filtersInfo": {
    "datasourceFilters": {
      "0": {
        "filter": "InactiveDeviceFilter",
        "keyFilters": [
          {
            "key": {
              "type": "ATTRIBUTE",
              "key": "active"
            },
            "valueType": "BOOLEAN",
            "predicates": [
              {
                "keyFilterPredicate": {
                  "type": "BOOLEAN",
                  "operation": "EQUAL",
                  "value": {
                    "defaultValue": false
                  }
                },
                "userInfo": {
                  "editable": true,
                  "label": "",
                  "autogeneratedLabel": true,
                  "order": 0
                }
              }
            ]
          }
        ],
        "editable": false
      }
    }
  },
  "originalSize": {
    "sizeX": 5,
    "sizeY": 2
  },
  "originalColumns": 24
}