{
  "widget": {
    "typeFullFqn": "system.toggle_button",
    "type": "rpc",
    "sizeX": 4,
    "sizeY": 2,
    "config": {
      "showTitle": false,
      "backgroundColor": "#ffffff",
      "color": "rgba(0, 0, 0, 0.87)",
      "padding": "0px",
      "settings": {
        "initialState": {
          "action": "GET_ATTRIBUTE",
          "defaultValue": false,
          "executeRpc": {
            "method": "getState",
            "requestTimeout": 5000,
            "requestPersistent": false,
            "persistentPollingInterval": 1000
          },
          "getAttribute": {
            "key": "doorState",
            "scope": "SHARED_SCOPE"
          },
          "getTimeSeries": {
            "key": "state"
          },
          "getAlarmStatus": {
            "severityList": null,
            "typeList": null
          },
          "dataToValue": {
            "type": "NONE",
            "compareToValue": true,
            "dataToValueFunction": "/* Should return boolean value */\nreturn data;"
          }
        },
        "checkState": {
          "action": "SET_ATTRIBUTE",
          "executeRpc": {
            "method": "setState",
            "requestTimeout": 5000,
            "requestPersistent": false,
            "persistentPollingInterval": 1000
          },
          "setAttribute": {
            "key": "doorState",
            "scope": "SHARED_SCOPE"
          },
          "putTimeSeries": {
            "key": "state"
          },
          "valueToData": {
            "type": "CONSTANT",
            "constantValue": true,
            "valueToDataFunction": "/* Convert input boolean value to RPC parameters or attribute/time-series value */\nreturn value;"
          }
        },
        "uncheckState": {
          "action": "SET_ATTRIBUTE",
          "executeRpc": {
            "method": "setState",
            "requestTimeout": 5000,
            "requestPersistent": false,
            "persistentPollingInterval": 1000
          },
          "setAttribute": {
            "key": "doorState",
            "scope": "SHARED_SCOPE"
          },
          "putTimeSeries": {
            "key": "state"
          },
          "valueToData": {
            "type": "CONSTANT",
            "constantValue": false,
            "valueToDataFunction": "/* Convert input boolean value to RPC parameters or attribute/time-series value */ \n return value;"
          }
        },
        "disabledState": {
          "action": "DO_NOTHING",
          "defaultValue": false,
          "getAttribute": {
            "key": "state",
            "scope": null
          },
          "getTimeSeries": {
            "key": "state"
          },
          "getAlarmStatus": {
            "severityList": null,
            "typeList": null
          },
          "dataToValue": {
            "type": "NONE",
            "compareToValue": true,
            "dataToValueFunction": "/* Should return boolean value */\nreturn data;"
          }
        },
        "autoScale": true,
        "horizontalFill": true,
        "verticalFill": false,
        "checkedAppearance": {
          "type": "outlined",
          "autoScale": true,
          "showLabel": true,
          "label": "Opened",
          "showIcon": true,
          "icon": "mdi:lock-open-variant",
          "iconSize": 24,
          "iconSizeUnit": "px",
          "mainColor": "#198038",
          "backgroundColor": "#FFFFFF",
          "customStyle": {
            "enabled": null,
            "hovered": null,
            "pressed": null,
            "activated": null,
            "disabled": null
          },
          "borderRadius": "4px"
        },
        "uncheckedAppearance": {
          "type": "filled",
          "autoScale": true,
          "showLabel": true,
          "label": "Closed",
          "showIcon": true,
          "icon": "lock",
          "iconSize": 24,
          "iconSizeUnit": "px",
          "mainColor": "#D12730",
          "backgroundColor": "#FFFFFF",
          "customStyle": {
            "enabled": null,
            "hovered": null,
            "pressed": null,
            "activated": null,
            "disabled": null
          },
          "borderRadius": "4px"
        },
        "background": {
          "type": "color",
          "color": "#FFFFFF00",
          "overlay": {
            "enabled": false,
            "color": "rgba(255,255,255,0.72)",
            "blur": 3
          },
          "imageUrl": null
        },
        "padding": "0px"
      },
      "title": "Toggle button",
      "dropShadow": true,
      "enableFullscreen": false,
      "widgetStyle": {},
      "actions": {},
      "widgetCss": "",
      "noDataDisplayMessage": "",
      "titleFont": {
        "size": 16,
        "sizeUnit": "px",
        "family": "Roboto",
        "weight": "500",
        "style": null,
        "lineHeight": "1.6"
      },
      "showTitleIcon": false,
      "titleTooltip": "",
      "titleStyle": {
        "fontSize": "16px",
        "fontWeight": 400
      },
      "pageSize": 1024,
      "titleIcon": "home",
      "iconColor": "rgba(0, 0, 0, 0.87)",
      "iconSize": "24px",
      "configMode": "advanced",
      "targetDevice": {
        "type": "device",
        "deviceId": "3a96d1d0-c098-11f0-8765-8f93a36e8f0f"
      },
      "titleColor": "#2C13B1D6",
      "borderRadius": "4px",
      "datasources": []
    },
    "row": 0,
    "col": 0,
    "id": "0d905073-994f-1858-c2a8-a81d4c428b03"
  },
  "aliasesInfo": {
    "datasourceAliases": {},
    "targetDeviceAlias": null
  },
  "filtersInfo": {
    "datasourceFilters": {}
  },
  "originalSize": {
    "sizeX": 6,
    "sizeY": 2
  },
  "originalColumns": 24
}