{
  "widget": {
    "typeFullFqn": "system.single_switch",
    "type": "rpc",
    "sizeX": 3.5,
    "sizeY": 1,
    "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": {
            "scope": "SHARED_SCOPE",
            "key": "powerState"
          },
          "getTimeSeries": {
            "key": "state"
          },
          "getAlarmStatus": {
            "severityList": null,
            "typeList": null
          },
          "dataToValue": {
            "type": "NONE",
            "dataToValueFunction": "/* Should return boolean value */\nreturn data;",
            "compareToValue": true
          }
        },
        "onUpdateState": {
          "action": "SET_ATTRIBUTE",
          "executeRpc": {
            "method": "setState",
            "requestTimeout": 5000,
            "requestPersistent": false,
            "persistentPollingInterval": 1000
          },
          "setAttribute": {
            "scope": "SHARED_SCOPE",
            "key": "powerState"
          },
          "putTimeSeries": {
            "key": "state"
          },
          "valueToData": {
            "type": "CONSTANT",
            "constantValue": true,
            "valueToDataFunction": "/* Convert input boolean value to RPC parameters or attribute/time-series value */\nreturn value;"
          }
        },
        "offUpdateState": {
          "action": "SET_ATTRIBUTE",
          "executeRpc": {
            "method": "setState",
            "requestTimeout": 5000,
            "requestPersistent": false,
            "persistentPollingInterval": 1000
          },
          "setAttribute": {
            "scope": "SHARED_SCOPE",
            "key": "powerState"
          },
          "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;"
          }
        },
        "layout": "right",
        "autoScale": true,
        "showLabel": true,
        "label": "Ventilation",
        "labelFont": {
          "family": "Roboto",
          "size": 16,
          "sizeUnit": "px",
          "style": "normal",
          "weight": "500",
          "lineHeight": "24px"
        },
        "labelColor": "rgba(0, 0, 0, 0.76)",
        "showIcon": false,
        "iconSize": 24,
        "iconSizeUnit": "px",
        "icon": "mdi:lightbulb-outline",
        "iconColor": "rgba(0, 0, 0, 0.76)",
        "switchColorOn": "#4CAF50",
        "switchColorOff": "#AF4C4E65",
        "switchColorDisabled": "#D5D7E5",
        "tumblerColorOn": "#FFFFFF",
        "tumblerColorOff": "#FFFFFF",
        "tumblerColorDisabled": "#fff",
        "showOnLabel": true,
        "onLabel": "On",
        "onLabelFont": {
          "family": "Roboto",
          "size": 16,
          "sizeUnit": "px",
          "style": "normal",
          "weight": "400",
          "lineHeight": "24px"
        },
        "onLabelColor": "rgba(0, 0, 0, 0.38)",
        "showOffLabel": true,
        "offLabel": "Off",
        "offLabelFont": {
          "family": "Roboto",
          "size": 16,
          "sizeUnit": "px",
          "style": "normal",
          "weight": "400",
          "lineHeight": "24px"
        },
        "offLabelColor": "rgba(0, 0, 0, 0.38)",
        "background": {
          "type": "color",
          "color": "#fff",
          "overlay": {
            "enabled": false,
            "color": "rgba(255,255,255,0.72)",
            "blur": 3
          }
        },
        "padding": ""
      },
      "title": "Single Switch",
      "dropShadow": true,
      "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",
      "datasources": [],
      "targetDevice": {
        "type": "device",
        "deviceId": "1ac53760-bbc1-11f0-8d2a-7fcbd0bfb6b8"
      },
      "borderRadius": null
    },
    "row": 0,
    "col": 0,
    "id": "fd319a30-a8ac-a305-8edd-bdf9152b44d6"
  },
  "aliasesInfo": {
    "datasourceAliases": {},
    "targetDeviceAlias": null
  },
  "filtersInfo": {
    "datasourceFilters": {}
  },
  "originalSize": {
    "sizeX": 5,
    "sizeY": 2
  },
  "originalColumns": 24
}