{
  "title": "Gas Shutoff Valve LoRaWAN \"Smartico V-LR\"",
  "configuration": {
    "description": "Клапан газовый отсечной LoRaWAN",
    "widgets": {
      "59b3eca7-8648-c530-c9ce-00abea30cd7a": {
        "isSystemType": true,
        "bundleAlias": "cards",
        "typeAlias": "html_card",
        "type": "static",
        "title": "New widget",
        "sizeX": 7.5,
        "sizeY": 3,
        "config": {
          "datasources": [],
          "timewindow": {
            "realtime": {
              "timewindowMs": 60000
            }
          },
          "showTitle": false,
          "backgroundColor": "rgb(255, 255, 255)",
          "color": "rgba(0, 0, 0, 0.87)",
          "padding": "8px",
          "settings": {
            "cardCss": ".card {\n    font-weight: bold;\n    font-size: 32px;\n    color: #999;\n    width: 100%;\n    height: 100%;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n}",
            "cardHtml": "<div class='card'><img src=\"https://upload.smartico.biz/pictures/GAS_Valve_LoRaWAN.png\" width=\"100%\" height=\"80%\" no-repeat></div>"
          },
          "title": "New HTML Card",
          "dropShadow": true,
          "showTitleIcon": false,
          "iconColor": "rgba(0, 0, 0, 0.87)",
          "iconSize": "24px",
          "titleTooltip": "",
          "enableFullscreen": false,
          "enableDataExport": false,
          "widgetStyle": {},
          "titleStyle": {
            "fontSize": "16px",
            "fontWeight": 400
          },
          "showLegend": false
        },
        "row": 0,
        "col": 0,
        "id": "59b3eca7-8648-c530-c9ce-00abea30cd7a"
      },
      "e7498b5c-073f-76cc-56f0-d739c9ca64c8": {
        "isSystemType": true,
        "bundleAlias": "cards",
        "typeAlias": "simple_card",
        "type": "latest",
        "title": "New widget",
        "sizeX": 5,
        "sizeY": 3,
        "config": {
          "datasources": [
            {
              "type": "entity",
              "name": null,
              "entityAliasId": "6df0d594-8f57-bf56-efa5-198c2a05f102",
              "dataKeys": [
                {
                  "name": "REAL_TIME",
                  "type": "timeseries",
                  "label": "Data received",
                  "color": "#2196f3",
                  "settings": {},
                  "_hash": 0.8217965985704481,
                  "units": null,
                  "decimals": null,
                  "funcBody": null,
                  "usePostProcessing": null,
                  "postFuncBody": null
                }
              ]
            }
          ],
          "timewindow": {
            "realtime": {
              "timewindowMs": 60000
            }
          },
          "showTitle": false,
          "backgroundColor": "#72a0d0",
          "color": "rgba(255, 255, 255, 0.87)",
          "padding": "16px",
          "settings": {
            "labelPosition": "top"
          },
          "title": "New Simple card",
          "dropShadow": true,
          "enableFullscreen": false,
          "titleStyle": {
            "fontSize": "16px",
            "fontWeight": 400
          },
          "units": "",
          "decimals": 0,
          "useDashboardTimewindow": true,
          "showLegend": false,
          "widgetStyle": {},
          "actions": {},
          "showTitleIcon": false,
          "iconColor": "rgba(0, 0, 0, 0.87)",
          "iconSize": "24px",
          "titleTooltip": "",
          "enableDataExport": false
        },
        "row": 0,
        "col": 0,
        "id": "e7498b5c-073f-76cc-56f0-d739c9ca64c8"
      },
      "ecccfb52-6a51-070c-4b73-d880ddc9f5a6": {
        "isSystemType": true,
        "bundleAlias": "cards",
        "typeAlias": "simple_card",
        "type": "latest",
        "title": "New widget",
        "sizeX": 5,
        "sizeY": 3,
        "config": {
          "datasources": [
            {
              "type": "entity",
              "name": null,
              "entityAliasId": "6df0d594-8f57-bf56-efa5-198c2a05f102",
              "dataKeys": [
                {
                  "name": "VALVE_MODEL",
                  "type": "timeseries",
                  "label": "Type valve",
                  "color": "#2196f3",
                  "settings": {},
                  "_hash": 0.07974388741483462,
                  "units": null,
                  "decimals": null,
                  "funcBody": null,
                  "usePostProcessing": null,
                  "postFuncBody": null
                }
              ]
            }
          ],
          "timewindow": {
            "realtime": {
              "timewindowMs": 60000
            }
          },
          "showTitle": false,
          "backgroundColor": "#4caf50",
          "color": "rgba(255, 255, 255, 0.87)",
          "padding": "16px",
          "settings": {
            "labelPosition": "top"
          },
          "title": "New Simple card",
          "dropShadow": true,
          "enableFullscreen": false,
          "titleStyle": {
            "fontSize": "16px",
            "fontWeight": 400
          },
          "units": "",
          "decimals": 0,
          "useDashboardTimewindow": true,
          "showLegend": false,
          "widgetStyle": {},
          "actions": {},
          "showTitleIcon": false,
          "iconColor": "rgba(0, 0, 0, 0.87)",
          "iconSize": "24px",
          "titleTooltip": "",
          "enableDataExport": false
        },
        "row": 0,
        "col": 0,
        "id": "ecccfb52-6a51-070c-4b73-d880ddc9f5a6"
      },
      "dd51fa7b-cd16-47f3-8c5f-b31745a489f8": {
        "isSystemType": true,
        "bundleAlias": "cards",
        "typeAlias": "simple_card",
        "type": "latest",
        "title": "New widget",
        "sizeX": 5,
        "sizeY": 3,
        "config": {
          "datasources": [
            {
              "type": "entity",
              "name": null,
              "entityAliasId": "6df0d594-8f57-bf56-efa5-198c2a05f102",
              "dataKeys": [
                {
                  "name": "SERIAL",
                  "type": "timeseries",
                  "label": "Serial number",
                  "color": "#2196f3",
                  "settings": {},
                  "_hash": 0.134681046468329,
                  "units": null,
                  "decimals": null,
                  "funcBody": null,
                  "usePostProcessing": null,
                  "postFuncBody": null
                }
              ]
            }
          ],
          "timewindow": {
            "realtime": {
              "timewindowMs": 60000
            }
          },
          "showTitle": false,
          "backgroundColor": "#4caf50",
          "color": "rgba(255, 255, 255, 0.87)",
          "padding": "16px",
          "settings": {
            "labelPosition": "top"
          },
          "title": "New Simple card",
          "dropShadow": true,
          "enableFullscreen": false,
          "titleStyle": {
            "fontSize": "16px",
            "fontWeight": 400
          },
          "units": "",
          "decimals": null,
          "useDashboardTimewindow": true,
          "showLegend": false,
          "widgetStyle": {},
          "actions": {},
          "showTitleIcon": false,
          "iconColor": "rgba(0, 0, 0, 0.87)",
          "iconSize": "24px",
          "titleTooltip": "",
          "enableDataExport": false
        },
        "row": 0,
        "col": 0,
        "id": "dd51fa7b-cd16-47f3-8c5f-b31745a489f8"
      },
      "43c47bf9-adf3-6592-5c34-c598f1a505a6": {
        "isSystemType": true,
        "bundleAlias": "cards",
        "typeAlias": "simple_card",
        "type": "latest",
        "title": "New widget",
        "sizeX": 5,
        "sizeY": 3,
        "config": {
          "datasources": [
            {
              "type": "entity",
              "name": null,
              "entityAliasId": "6df0d594-8f57-bf56-efa5-198c2a05f102",
              "dataKeys": [
                {
                  "name": "STS_VALVE",
                  "type": "timeseries",
                  "label": "State valve",
                  "color": "#2196f3",
                  "settings": {},
                  "_hash": 0.09734489508805466,
                  "units": null,
                  "decimals": null,
                  "funcBody": null,
                  "usePostProcessing": null,
                  "postFuncBody": null
                }
              ]
            }
          ],
          "timewindow": {
            "realtime": {
              "timewindowMs": 60000
            }
          },
          "showTitle": false,
          "backgroundColor": "#3f51b5",
          "color": "rgba(255, 255, 255, 0.87)",
          "padding": "16px",
          "settings": {
            "labelPosition": "top"
          },
          "title": "New Simple card",
          "dropShadow": true,
          "enableFullscreen": false,
          "titleStyle": {
            "fontSize": "16px",
            "fontWeight": 400
          },
          "units": "",
          "decimals": null,
          "useDashboardTimewindow": true,
          "showLegend": false,
          "widgetStyle": {},
          "actions": {},
          "showTitleIcon": false,
          "iconColor": "rgba(0, 0, 0, 0.87)",
          "iconSize": "24px",
          "titleTooltip": "",
          "enableDataExport": false
        },
        "row": 0,
        "col": 0,
        "id": "43c47bf9-adf3-6592-5c34-c598f1a505a6"
      },
      "34cd5999-f722-b48a-a110-5ac78b70448b": {
        "isSystemType": true,
        "bundleAlias": "charts",
        "typeAlias": "state_chart",
        "type": "timeseries",
        "title": "New widget",
        "sizeX": 8,
        "sizeY": 5,
        "config": {
          "datasources": [
            {
              "type": "entity",
              "name": null,
              "entityAliasId": "6df0d594-8f57-bf56-efa5-198c2a05f102",
              "dataKeys": [
                {
                  "name": "STS_VALVE_CODE",
                  "type": "timeseries",
                  "label": "State valve",
                  "color": "#2196f3",
                  "settings": {
                    "excludeFromStacking": false,
                    "hideDataByDefault": false,
                    "disableDataHiding": false,
                    "removeFromLegend": false,
                    "showLines": true,
                    "fillLines": false,
                    "showPoints": false,
                    "showPointShape": "circle",
                    "pointShapeFormatter": "var size = radius * Math.sqrt(Math.PI) / 2;\nctx.moveTo(x - size, y - size);\nctx.lineTo(x + size, y + size);\nctx.moveTo(x - size, y + size);\nctx.lineTo(x + size, y - size);",
                    "showPointsLineWidth": 5,
                    "showPointsRadius": 3,
                    "showSeparateAxis": false,
                    "axisPosition": "left",
                    "thresholds": [
                      {
                        "thresholdValueSource": "predefinedValue"
                      }
                    ],
                    "comparisonSettings": {
                      "showValuesForComparison": true
                    }
                  },
                  "_hash": 0.7008573771800477,
                  "units": null,
                  "decimals": null,
                  "funcBody": null,
                  "usePostProcessing": null,
                  "postFuncBody": null
                }
              ]
            }
          ],
          "timewindow": {
            "hideInterval": false,
            "hideAggregation": false,
            "hideAggInterval": false,
            "selectedTab": 0,
            "realtime": {
              "timewindowMs": 7200000,
              "interval": 15000
            },
            "aggregation": {
              "type": "AVG",
              "limit": 25000
            }
          },
          "showTitle": true,
          "backgroundColor": "#fff",
          "color": "rgba(0, 0, 0, 0.87)",
          "padding": "8px",
          "settings": {
            "shadowSize": 4,
            "fontColor": "#545454",
            "fontSize": 10,
            "xaxis": {
              "showLabels": true,
              "color": "#545454"
            },
            "yaxis": {
              "showLabels": true,
              "color": "#545454",
              "ticksFormatter": "if (value === 1) {return 'Close';}\nif (value === 2) {return 'Ready open';}\nif (value === 3) {return 'Open';}\nelse {return ' ';\n}",
              "min": 0,
              "max": 4,
              "tickSize": 1
            },
            "grid": {
              "color": "#545454",
              "tickColor": "#DDDDDD",
              "verticalLines": true,
              "horizontalLines": true,
              "outlineWidth": 1
            },
            "stack": false,
            "tooltipIndividual": false,
            "tooltipValueFormatter": "if (value === 1) {return 'Close';}\nif (value === 2) {return 'Ready open';}\nif (value === 3) {return 'Open';}\nelse {return 'Undef.';\n}",
            "smoothLines": false,
            "timeForComparison": "months",
            "xaxisSecond": {
              "axisPosition": "top",
              "showLabels": true
            },
            "tooltipCumulative": true,
            "hideZeros": false
          },
          "title": "Valve switching graph",
          "dropShadow": true,
          "enableFullscreen": false,
          "titleStyle": {
            "fontSize": "16px",
            "fontWeight": 400
          },
          "widgetStyle": {},
          "useDashboardTimewindow": false,
          "showLegend": false,
          "actions": {},
          "legendConfig": {
            "position": "bottom",
            "showMin": false,
            "showMax": false,
            "showAvg": false,
            "showTotal": false
          },
          "showTitleIcon": false,
          "iconColor": "rgba(0, 0, 0, 0.87)",
          "iconSize": "24px",
          "titleTooltip": "",
          "enableDataExport": false,
          "displayTimewindow": true
        },
        "row": 0,
        "col": 0,
        "id": "34cd5999-f722-b48a-a110-5ac78b70448b"
      },
      "4cee1f1e-07bd-99de-01b2-b81297647e2a": {
        "isSystemType": true,
        "bundleAlias": "alarm_widgets",
        "typeAlias": "alarms_table",
        "type": "alarm",
        "title": "New widget",
        "sizeX": 10.5,
        "sizeY": 6.5,
        "config": {
          "timewindow": {
            "realtime": {
              "interval": 1000,
              "timewindowMs": 86400000
            },
            "aggregation": {
              "type": "NONE",
              "limit": 200
            }
          },
          "showTitle": true,
          "backgroundColor": "rgb(255, 255, 255)",
          "color": "rgba(0, 0, 0, 0.87)",
          "padding": "4px",
          "settings": {
            "enableSelection": true,
            "enableSearch": true,
            "displayDetails": true,
            "allowAcknowledgment": true,
            "allowClear": true,
            "displayPagination": true,
            "defaultPageSize": 10,
            "defaultSortOrder": "-createdTime",
            "enableSelectColumnDisplay": true,
            "enableStatusFilter": true,
            "enableStickyAction": false,
            "alarmsTitle": "Alarms"
          },
          "title": "New Alarms table",
          "dropShadow": true,
          "enableFullscreen": false,
          "titleStyle": {
            "fontSize": "16px",
            "fontWeight": 400,
            "padding": "5px 10px 5px 10px"
          },
          "useDashboardTimewindow": false,
          "showLegend": false,
          "alarmSource": {
            "type": "entity",
            "name": "alarms",
            "entityAliasId": "6df0d594-8f57-bf56-efa5-198c2a05f102",
            "dataKeys": [
              {
                "name": "createdTime",
                "type": "alarm",
                "label": "Created Time",
                "color": "#2196f3",
                "settings": {
                  "columnWidth": "0px"
                },
                "_hash": 0.14170525042527515,
                "units": null,
                "decimals": null,
                "funcBody": null,
                "usePostProcessing": null,
                "postFuncBody": null
              },
              {
                "name": "type",
                "type": "alarm",
                "label": "Type",
                "color": "#f44336",
                "settings": {
                  "columnWidth": "0px"
                },
                "_hash": 0.31006229794972073,
                "units": null,
                "decimals": null,
                "funcBody": null,
                "usePostProcessing": null,
                "postFuncBody": null
              },
              {
                "name": "severity",
                "type": "alarm",
                "label": "Severity",
                "color": "#ffc107",
                "settings": {
                  "columnWidth": "0px"
                },
                "_hash": 0.023186990279779884,
                "units": null,
                "decimals": null,
                "funcBody": null,
                "usePostProcessing": null,
                "postFuncBody": null
              }
            ]
          },
          "alarmSearchStatus": "ACTIVE",
          "alarmsPollingInterval": 5,
          "showTitleIcon": false,
          "titleIcon": "more_horiz",
          "iconColor": "rgba(0, 0, 0, 0.87)",
          "iconSize": "24px",
          "titleTooltip": "",
          "widgetStyle": {},
          "displayTimewindow": true,
          "actions": {},
          "datasources": [],
          "alarmsMaxCountLoad": 0,
          "alarmsFetchSize": 100,
          "enableDataExport": false
        },
        "row": 0,
        "col": 0,
        "id": "4cee1f1e-07bd-99de-01b2-b81297647e2a"
      }
    },
    "states": {
      "default": {
        "name": "Smartico V-LR",
        "root": true,
        "layouts": {
          "main": {
            "widgets": {
              "59b3eca7-8648-c530-c9ce-00abea30cd7a": {
                "sizeX": 4,
                "sizeY": 4,
                "row": 0,
                "col": 0
              },
              "e7498b5c-073f-76cc-56f0-d739c9ca64c8": {
                "sizeX": 20,
                "sizeY": 2,
                "row": 0,
                "col": 4
              },
              "ecccfb52-6a51-070c-4b73-d880ddc9f5a6": {
                "sizeX": 5,
                "sizeY": 2,
                "row": 2,
                "col": 4
              },
              "dd51fa7b-cd16-47f3-8c5f-b31745a489f8": {
                "sizeX": 5,
                "sizeY": 2,
                "row": 2,
                "col": 9
              },
              "43c47bf9-adf3-6592-5c34-c598f1a505a6": {
                "sizeX": 10,
                "sizeY": 2,
                "row": 2,
                "col": 14
              },
              "34cd5999-f722-b48a-a110-5ac78b70448b": {
                "sizeX": 14,
                "sizeY": 9,
                "row": 4,
                "col": 0
              },
              "4cee1f1e-07bd-99de-01b2-b81297647e2a": {
                "sizeX": 10,
                "sizeY": 9,
                "row": 4,
                "col": 14
              }
            },
            "gridSettings": {
              "backgroundColor": "#eeeeee",
              "color": "rgba(0,0,0,0.870588)",
              "columns": 24,
              "margin": 10,
              "backgroundSizeMode": "100%"
            }
          }
        }
      }
    },
    "entityAliases": {
      "6df0d594-8f57-bf56-efa5-198c2a05f102": {
        "id": "6df0d594-8f57-bf56-efa5-198c2a05f102",
        "alias": "GasValve",
        "filter": {
          "type": "deviceSearchQuery",
          "resolveMultiple": true,
          "rootStateEntity": false,
          "stateEntityParamName": null,
          "defaultStateEntity": null,
          "rootEntity": {
            "entityType": "ASSET",
            "id": "d71925c0-e6b5-11ea-86f4-f57359a3b710"
          },
          "direction": "FROM",
          "maxLevel": 1,
          "fetchLastLevelOnly": false,
          "relationType": "Contains",
          "deviceTypes": [
            "Gas Valve"
          ]
        }
      }
    },
    "timewindow": {
      "hideInterval": false,
      "hideAggregation": false,
      "hideAggInterval": false,
      "selectedTab": 0,
      "realtime": {
        "timewindowMs": 604800000,
        "interval": 1800000
      },
      "aggregation": {
        "type": "AVG",
        "limit": 25000
      }
    },
    "settings": {
      "stateControllerId": "entity",
      "showTitle": false,
      "showDashboardsSelect": true,
      "showEntitiesSelect": true,
      "showDashboardTimewindow": true,
      "showDashboardExport": true,
      "toolbarAlwaysOpen": true
    }
  },
  "name": "Gas Shutoff Valve LoRaWAN \"Smartico V-LR\""
}