{
  "widget": {
    "typeFullFqn": "system.command_button",
    "type": "rpc",
    "sizeX": 3,
    "sizeY": 1,
    "config": {
      "showTitle": false,
      "backgroundColor": "rgba(255, 255, 255, 0)",
      "color": "rgba(0, 0, 0, 0.87)",
      "padding": "0px",
      "settings": {
        "onClickState": {
          "action": "EXECUTE_RPC",
          "executeRpc": {
            "method": "restartVentilation",
            "requestTimeout": 5000,
            "requestPersistent": true,
            "persistentPollingInterval": 1000
          },
          "setAttribute": {
            "scope": "SERVER_SCOPE",
            "key": "state"
          },
          "putTimeSeries": {
            "key": "state"
          },
          "valueToData": {
            "type": "CONSTANT",
            "constantValue": true,
            "valueToDataFunction": "/* Return RPC parameters or attribute/time-series value */\nreturn true;"
          }
        },
        "disabledState": {
          "action": "GET_ATTRIBUTE",
          "defaultValue": false,
          "executeRpc": {
            "method": null,
            "requestTimeout": null,
            "requestPersistent": null,
            "persistentPollingInterval": null
          },
          "getAttribute": {
            "scope": "SHARED_SCOPE",
            "key": "active"
          },
          "getTimeSeries": {
            "key": "state"
          },
          "getAlarmStatus": {
            "severityList": null,
            "typeList": null
          },
          "dataToValue": {
            "type": "NONE",
            "dataToValueFunction": "/* Should return boolean value */\nreturn data;",
            "compareToValue": false
          }
        },
        "appearance": {
          "type": "outlined",
          "showLabel": true,
          "label": "Restart Ventilation",
          "showIcon": true,
          "icon": "restart_alt",
          "iconSize": 24,
          "iconSizeUnit": "px",
          "mainColor": "#2196F3",
          "backgroundColor": "#D0EBFF6F",
          "autoScale": true,
          "customStyle": {
            "enabled": null,
            "hovered": null,
            "pressed": null,
            "activated": null,
            "disabled": null
          }
        }
      },
      "title": "Command button",
      "dropShadow": false,
      "enableFullscreen": false,
      "widgetStyle": {},
      "actions": {},
      "widgetCss": "",
      "noDataDisplayMessage": "",
      "titleFont": {
        "size": 12,
        "sizeUnit": "px",
        "family": null,
        "weight": null,
        "style": null,
        "lineHeight": "1.6"
      },
      "showTitleIcon": false,
      "titleTooltip": "",
      "titleStyle": {
        "fontSize": "16px",
        "fontWeight": 400
      },
      "pageSize": 1024,
      "titleIcon": "",
      "iconColor": "rgba(0, 0, 0, 0.87)",
      "iconSize": "14px",
      "configMode": "basic",
      "borderRadius": "4px",
      "datasources": [],
      "targetDevice": {
        "type": "device",
        "deviceId": "1ac53760-bbc1-11f0-8d2a-7fcbd0bfb6b8"
      }
    },
    "row": 0,
    "col": 0,
    "id": "6b33adeb-6efb-7a96-4f83-9e97b52f76c4"
  },
  "aliasesInfo": {
    "datasourceAliases": {},
    "targetDeviceAlias": null
  },
  "filtersInfo": {
    "datasourceFilters": {}
  },
  "originalSize": {
    "sizeX": 6,
    "sizeY": 2
  },
  "originalColumns": 24
}
