Hvordan lage en Virtual Device som vises i app

Lurer på om det er mulig å lage en virtual device som vises i app, som en bryter, denne skal endre en variabel mellom true/false. Hvordan?

Hei,

DU kan bruke denne, bare endre variablene og når du er ferdig, så registrerer du den som Virtual Device

{
  "Id": "oYinQN8bgwxeDt9",
  "ClassId": "oYinQN8bgwxeDt9",
  "Author": "",
  "Version": 0,
  "CreatedAt": "2020-12-23T00:26:08.786120894+01:00",
  "UpdatedAt": "2020-12-23T08:44:59.055636073+01:00",
  "Name": "skoleferie",
  "Group": "virtual device",
  "Description": "Aktiverer fullstendig helgemodus",
  "Nodes": [
    {
      "Id": "1",
      "Type": "trigger",
      "Label": "Trigger",
      "SuccessTransition": "2",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:cmd/rt:dev/rn:flow/ad:1/sv:out_bin_switch/ad:oYinQN8bgwxeDt9_0",
      "Service": "out_bin_switch",
      "ServiceInterface": "cmd.binary.set",
      "Config": {
        "InputVariableType": "",
        "IsValueFilterEnabled": false,
        "LookupServiceNameAndLocation": false,
        "RegisterAsVirtualService": true,
        "Timeout": 0,
        "ValueFilter": {
          "Value": null,
          "ValueType": "bool"
        },
        "ValueJPath": "",
        "ValueJPathResultType": "",
        "VirtualServiceGroup": "ch_0",
        "VirtualServiceProps": null
      },
      "Ui": {
        "nodeType": "",
        "x": 236,
        "y": 162
      },
      "TypeAlias": "Trigger"
    },
    {
      "Id": "2",
      "Type": "if",
      "Label": "operation switch",
      "SuccessTransition": "",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "Config": {
        "Expression": [
          {
            "BooleanOperator": "",
            "LeftVariableIsGlobal": false,
            "LeftVariableName": "",
            "Operand": "eq",
            "RightVariable": {
              "Value": true,
              "ValueType": "bool"
            }
          }
        ],
        "FalseTransition": "6",
        "TrueTransition": "7"
      },
      "Ui": {
        "nodeType": "",
        "x": 213,
        "y": 398
      },
      "TypeAlias": "If condition"
    },
    {
      "Id": "5",
      "Type": "action",
      "Label": "Send response",
      "SuccessTransition": "",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "pt:j1/mt:evt/rt:dev/rn:flow/ad:1/sv:out_bin_switch/ad:oYinQN8bgwxeDt9_0",
      "Service": "out_bin_switch",
      "ServiceInterface": "evt.binary.report",
      "Config": {
        "DefaultValue": {
          "Value": "",
          "ValueType": ""
        },
        "IsVariableGlobal": false,
        "Props": {},
        "RegisterAsVirtualService": true,
        "ResponseToTopic": "",
        "VariableName": "",
        "VirtualServiceGroup": "ch_0",
        "VirtualServiceProps": {}
      },
      "Ui": {
        "nodeType": "",
        "x": 195,
        "y": 1076
      },
      "TypeAlias": "Action"
    },
    {
      "Id": "6",
      "Type": "set_variable",
      "Label": "normal",
      "SuccessTransition": "5",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "Config": {
        "DefaultValue": {
          "Value": "normal",
          "ValueType": "string"
        },
        "Name": "ukeplan",
        "UpdateGlobal": true,
        "UpdateInputMsg": false
      },
      "Ui": {
        "nodeType": "",
        "x": 375,
        "y": 644
      },
      "TypeAlias": "Set variable"
    },
    {
      "Id": "7",
      "Type": "set_variable",
      "Label": "skoleferie",
      "SuccessTransition": "5",
      "TimeoutTransition": "",
      "ErrorTransition": "",
      "Address": "",
      "Service": "",
      "ServiceInterface": "",
      "Config": {
        "DefaultValue": {
          "Value": "skoleferie",
          "ValueType": "string"
        },
        "Name": "ukeplan",
        "UpdateGlobal": true,
        "UpdateInputMsg": false
      },
      "Ui": {
        "nodeType": "",
        "x": 77,
        "y": 663
      },
      "TypeAlias": "Set variable"
    }
  ],
  "Settings": null,
  "IsDisabled": false,
  "IsDefault": false,
  "ParallelExecution": "parallel"
}