{
  "__ceresflows_export": "1.0",
  "name": "EC Control",
  "description": "Control of EC by adding solutions A/B and water",
  "mode": "",
  "timeoutSec": 0,
  "onTimeout": "PAUSE",
  "hardwareDependencies": {
    "453923a6-2e38-43e5-bbdc-c3de109bf198": {
      "name": "EC Main Tank",
      "model": "EC V2 DFRobot",
      "type": "SENSOR",
      "description": "This is the sensor that measures the current level of \"EC\" in the main tank."
    },
    "5d7835b2-f99b-4aa0-8908-fa8a8b5e0ce4": {
      "name": "Main Tank Level",
      "model": "A02YYUW Ultrasonic",
      "type": "SENSOR",
      "description": "This is the sensor that measures the current level of the main reservoir. It can change constantly. When watering, it is emptied to a certain level, but after the residual volume is returned, the amount can increase."
    },
    "ca82075d-045e-4538-b32a-8c340afa52ae": {
      "name": "Pump Fresh Water",
      "model": "Generic Pump",
      "type": "ACTUATOR",
      "description": "This is the pump that fills the main tank with \"clean water\", from the clean water tank."
    },
    "e6397319-0c00-48bb-addc-189a0a3f4d0b": {
      "name": "Pump A",
      "model": "Generic Pump",
      "type": "ACTUATOR",
      "description": "This is the pump for adding nutrient \"Solution A\" to the main tank."
    },
    "d32f7579-1a94-4ba8-86c4-f00c3615c772": {
      "name": "Pump B",
      "model": "Generic Pump",
      "type": "ACTUATOR",
      "description": "This is the pump for adding nutrient \"Solution B\" to the main tank."
    },
    "152c2b91-f5ed-4f28-a9fe-65f724f669b2": {
      "name": "Pump Mixer",
      "model": "Generic Pump",
      "type": "ACTUATOR",
      "description": "This is the pump for \"mixing\" the solution in the main tank."
    }
  },
  "nodes": [
    {
      "id": "start",
      "type": "START",
      "params": {
        "label": "Start",
        "hasError": false
      },
      "position": {
        "x": -326.9799651142931,
        "y": -20.348946050132074
      }
    },
    {
      "id": "end",
      "type": "END",
      "params": {
        "label": "End",
        "hasError": false
      },
      "position": {
        "x": -138.0981766994953,
        "y": 1116.099367646212
      }
    },
    {
      "id": "SENSOR_READ_1770191546330",
      "type": "SENSOR_READ",
      "params": {
        "label": "Сензор ЕС 01",
        "readingType": "ec:multi_point",
        "retryCount": 3,
        "retryDelay": 1000,
        "onFailure": "STOP",
        "errorNotification": false,
        "hasError": false,
        "deviceId": "453923a6-2e38-43e5-bbdc-c3de109bf198",
        "variable": "var_1",
        "comment": "Measuring the current level of EC in the main reservoir"
      },
      "position": {
        "x": 46.49771521217579,
        "y": 2.1118624700108555
      }
    },
    {
      "id": "IF_1770191637315",
      "type": "IF",
      "params": {
        "label": "IF ЕС = ЕСc",
        "operator": "==",
        "onFailure": "STOP",
        "errorNotification": false,
        "hasError": false,
        "variable": "var_1",
        "value": "{{global_2}}",
        "comment": "Checks whether the current EC level is equal to the desired level.\n1. If equal - skip.\n2. If not equal - go to check whether it is lower or higher than the desired level"
      },
      "position": {
        "x": 30.62662427589919,
        "y": 305.38397468218227
      }
    },
    {
      "id": "IF_1770191823912",
      "type": "IF",
      "params": {
        "label": "if ЕС <> ЕСc",
        "operator": ">",
        "onFailure": "STOP",
        "errorNotification": false,
        "hasError": false,
        "variable": "var_1",
        "comment": "Here you check whether the EC level is lower or higher than the desired level. - If it is higher, add clean water until it is equal\n- If it is lower, add solution A/B",
        "value": "{{global_2}}"
      },
      "position": {
        "x": 370.3742674679168,
        "y": 508.8019440313499
      }
    },
    {
      "id": "SENSOR_READ_1770192103755",
      "type": "SENSOR_READ",
      "params": {
        "label": "Sensor Water Level 01",
        "readingType": "volume:multi_point",
        "retryCount": 3,
        "retryDelay": 1000,
        "onFailure": "STOP",
        "errorNotification": false,
        "hasError": false,
        "deviceId": "5d7835b2-f99b-4aa0-8908-fa8a8b5e0ce4",
        "variable": "var_4",
        "comment": "Measuring the current water level in the main tank"
      },
      "position": {
        "x": 169.17741124721712,
        "y": 683.3829240298114
      }
    },
    {
      "id": "IF_1770192145369",
      "type": "IF",
      "params": {
        "label": "IF MT <>",
        "operator": "<=",
        "onFailure": "STOP",
        "errorNotification": false,
        "hasError": false,
        "variable": "global_3",
        "value": "{{var_4}}",
        "comment": "We check the level of the main tank to see if it is up to the maximum we have set to add clean water. For example, the maximum level of the tank is 100 liters, but we have set it to be able to add water if it is below 70 liters. In this logic, if there are more than 70 liters in the main tank, it will not be triggered to add clean water to lower the EC"
      },
      "position": {
        "x": 43.24053132712331,
        "y": 883.4721867855419
      }
    },
    {
      "id": "ACTUATOR_SET_1770192197458",
      "type": "ACTUATOR_SET",
      "params": {
        "label": "Помпа Вода ON",
        "strategy": "actuator_manual",
        "durationUnit": "sec",
        "amountMode": "VOLUME",
        "amountUnit": "ml",
        "safetyTtlUnit": "sec",
        "retryCount": 3,
        "retryDelay": 1000,
        "onFailure": "STOP",
        "errorNotification": false,
        "revertOnStop": true,
        "hasError": false,
        "deviceId": "ca82075d-045e-4538-b32a-8c340afa52ae",
        "action": "ON"
      },
      "position": {
        "x": 258.2405313271234,
        "y": 1058.4721867855421
      }
    },
    {
      "id": "LOOP_1770192411740",
      "type": "LOOP",
      "params": {
        "label": "Loop Water+ ЕС-",
        "limitMode": "COUNT",
        "interval": 3,
        "intervalUnit": "sec",
        "count": 150,
        "timeout": 60,
        "timeoutUnit": "sec",
        "operator": "==",
        "onFailure": "STOP",
        "errorNotification": false,
        "hasError": false,
        "variable": "var_7",
        "value": "0",
        "exitMessage": "{{var_8}}"
      },
      "position": {
        "x": 256.89098063047214,
        "y": 1207.4721867855421
      }
    },
    {
      "id": "generic_1770192606304",
      "type": "ACTUATOR_SET",
      "params": {
        "label": "Помпа Вода OFF",
        "strategy": "actuator_manual",
        "durationUnit": "sec",
        "amountMode": "VOLUME",
        "amountUnit": "ml",
        "safetyTtlUnit": "sec",
        "retryCount": 3,
        "retryDelay": 1000,
        "onFailure": "STOP",
        "errorNotification": false,
        "revertOnStop": true,
        "hasError": false,
        "deviceId": "ca82075d-045e-4538-b32a-8c340afa52ae",
        "action": "OFF"
      },
      "position": {
        "x": -145.16183259382018,
        "y": 1345.4588716366134
      }
    },
    {
      "id": "generic_1770192686000",
      "type": "SENSOR_READ",
      "params": {
        "label": "Sensor Water Level 02",
        "readingType": "volume:multi_point",
        "retryCount": 3,
        "retryDelay": 1000,
        "onFailure": "STOP",
        "errorNotification": false,
        "hasError": false,
        "deviceId": "5d7835b2-f99b-4aa0-8908-fa8a8b5e0ce4",
        "variable": "var_4",
        "comment": "Measuring the current water level in the main tank"
      },
      "position": {
        "x": 185.2259392786682,
        "y": 1506.4318242367694
      }
    },
    {
      "id": "IF_1770192716162",
      "type": "IF",
      "params": {
        "label": "Curent ЕС <= ЕС",
        "operator": "<=",
        "onFailure": "STOP",
        "errorNotification": false,
        "hasError": false,
        "variable": "var_1",
        "value": "{{global_2}}",
        "comment": "If the current EC level is equal to the desired EC level -> TRUE"
      },
      "position": {
        "x": 768.7861649714318,
        "y": 1903.4233508150935
      }
    },
    {
      "id": "generic_1770192783054",
      "type": "SENSOR_READ",
      "params": {
        "label": "Sensor EC",
        "readingType": "ec:multi_point",
        "retryCount": 3,
        "retryDelay": 1000,
        "onFailure": "STOP",
        "errorNotification": false,
        "hasError": false,
        "deviceId": "453923a6-2e38-43e5-bbdc-c3de109bf198",
        "variable": "var_1",
        "comment": "Measuring the current level of EC in the main reservoir"
      },
      "position": {
        "x": 510.2066007660136,
        "y": 1511.966556755862
      }
    },
    {
      "id": "FLOW_CONTROL_1770192829654",
      "type": "FLOW_CONTROL",
      "params": {
        "label": "Flow Control (Jump/Label)",
        "controlType": "LOOP_BACK",
        "hasError": false,
        "targetLabel": "LOOP_1770192411740"
      },
      "position": {
        "x": 439.12993208885746,
        "y": 2171.0348031378367
      }
    },
    {
      "id": "LOOP_1770192978164",
      "type": "LOOP",
      "params": {
        "label": "Loop ЕС < ЕСc",
        "limitMode": "COUNT",
        "interval": 2,
        "intervalUnit": "sec",
        "count": 150,
        "timeout": 60,
        "timeoutUnit": "sec",
        "operator": "<",
        "onFailure": "STOP",
        "errorNotification": false,
        "hasError": false,
        "variable": "var_1",
        "value": "{{global_2}}",
        "comment": "Check if the current EC level is higher than the desired one. If the current EC level becomes higher, the loop is terminated.",
        "exitMessage": "The EC level has been raised to the desired level."
      },
      "position": {
        "x": 624.0921857016071,
        "y": 724.4631026600292
      }
    },
    {
      "id": "ACTUATOR_SET_1770193070268",
      "type": "ACTUATOR_SET",
      "params": {
        "label": "Pump A",
        "strategy": "actuator_manual",
        "durationUnit": "sec",
        "amountMode": "DOSES",
        "amountUnit": "ml",
        "safetyTtlUnit": "sec",
        "retryCount": 3,
        "retryDelay": 1000,
        "onFailure": "STOP",
        "errorNotification": false,
        "revertOnStop": true,
        "hasError": false,
        "deviceId": "e6397319-0c00-48bb-addc-189a0a3f4d0b",
        "action": "DOSE",
        "amount": "{{global_5}}",
        "comment": "Activates the solution A refill pump"
      },
      "position": {
        "x": 763.8969431776106,
        "y": 965.9227316469812
      }
    },
    {
      "id": "generic_1770193160960",
      "type": "ACTUATOR_SET",
      "params": {
        "label": "Pump B",
        "strategy": "actuator_manual",
        "durationUnit": "sec",
        "amountMode": "DOSES",
        "amountUnit": "ml",
        "safetyTtlUnit": "sec",
        "retryCount": 3,
        "retryDelay": 1000,
        "onFailure": "STOP",
        "errorNotification": false,
        "revertOnStop": true,
        "hasError": false,
        "deviceId": "d32f7579-1a94-4ba8-86c4-f00c3615c772",
        "action": "DOSE",
        "amount": "{{global_5}}",
        "comment": "Activates the solution B refill pump"
      },
      "position": {
        "x": 761.6708958657545,
        "y": 1127.9713934124043
      }
    },
    {
      "id": "generic_1770193189571",
      "type": "SENSOR_READ",
      "params": {
        "label": "Sensor EC+",
        "readingType": "ec:multi_point",
        "retryCount": 3,
        "retryDelay": 1000,
        "onFailure": "STOP",
        "errorNotification": false,
        "hasError": false,
        "deviceId": "453923a6-2e38-43e5-bbdc-c3de109bf198",
        "variable": "var_1",
        "comment": "Measuring the current level of EC in the main reservoir"
      },
      "position": {
        "x": 744.8442833723508,
        "y": 1320.152032685875
      }
    },
    {
      "id": "FLOW_CONTROL_1770193237801",
      "type": "FLOW_CONTROL",
      "params": {
        "label": "Flow Control (Jump/Label)",
        "controlType": "LOOP_BACK",
        "hasError": false,
        "targetLabel": "LOOP_1770192978164"
      },
      "position": {
        "x": 1020.7703725084937,
        "y": 1516.5395156700906
      }
    },
    {
      "id": "ACTUATOR_SET_1770194025141",
      "type": "ACTUATOR_SET",
      "params": {
        "label": "Set Actuator",
        "strategy": "actuator_manual",
        "durationUnit": "sec",
        "amountMode": "VOLUME",
        "amountUnit": "ml",
        "safetyTtlUnit": "sec",
        "retryCount": 3,
        "retryDelay": 1000,
        "onFailure": "STOP",
        "errorNotification": false,
        "revertOnStop": true,
        "hasError": false,
        "deviceId": "152c2b91-f5ed-4f28-a9fe-65f724f669b2",
        "action": "PULSE_ON",
        "duration": "{{global_6}}",
        "comment": "Activating the agitation pump"
      },
      "position": {
        "x": 1033.4421656676514,
        "y": 1214.8865871961234
      }
    },
    {
      "id": "IF_1773220252478",
      "type": "IF",
      "params": {
        "label": "Max level tank <= Current level",
        "operator": "<=",
        "onFailure": "STOP",
        "errorNotification": false,
        "hasError": false,
        "variable": "global_9",
        "value": "{{var_4}}",
        "comment": "If the current level of the main tank is = the maximum level of the main tank -> True"
      },
      "position": {
        "x": 291.1848851009104,
        "y": 1671.6982552499562
      }
    },
    {
      "id": "MATH_VARIABLE_1773220617858",
      "type": "MATH_VARIABLE",
      "params": {
        "label": "Math / Variable",
        "operation": "SET",
        "valueType": "constant",
        "operandValue": 1,
        "hasError": false,
        "targetVariable": "var_7",
        "textVariable": "var_8",
        "textValue": "The maximum level of the main tank has been reached."
      },
      "position": {
        "x": 414.2914453989672,
        "y": 1888.4411270266098
      }
    },
    {
      "id": "generic_1773221214729",
      "type": "MATH_VARIABLE",
      "params": {
        "label": "Math / Variable",
        "operation": "SET",
        "valueType": "constant",
        "operandValue": 1,
        "hasError": false,
        "targetVariable": "var_7",
        "textVariable": "var_8",
        "textValue": "The current EC level is equal to the desired EC."
      },
      "position": {
        "x": 550.263286082778,
        "y": 1987.3149678962743
      }
    }
  ],
  "edges": [
    {
      "id": "xy-edge__startsource-SENSOR_READ_1770191546330target",
      "source": "start",
      "target": "SENSOR_READ_1770191546330",
      "sourceHandle": "source",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__IF_1770191823912true-SENSOR_READ_1770192103755target",
      "source": "IF_1770191823912",
      "target": "SENSOR_READ_1770192103755",
      "sourceHandle": "true",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__SENSOR_READ_1770192103755source-IF_1770192145369",
      "source": "SENSOR_READ_1770192103755",
      "target": "IF_1770192145369",
      "sourceHandle": "source",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__IF_1770192145369true-endtarget",
      "source": "IF_1770192145369",
      "target": "end",
      "sourceHandle": "true",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__IF_1770192145369false-ACTUATOR_SET_1770192197458target",
      "source": "IF_1770192145369",
      "target": "ACTUATOR_SET_1770192197458",
      "sourceHandle": "false",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__ACTUATOR_SET_1770192197458source-LOOP_1770192411740",
      "source": "ACTUATOR_SET_1770192197458",
      "target": "LOOP_1770192411740",
      "sourceHandle": "source",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__LOOP_1770192411740exit-generic_1770192606304target",
      "source": "LOOP_1770192411740",
      "target": "generic_1770192606304",
      "sourceHandle": "exit",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__generic_1770192606304source-endtarget",
      "source": "generic_1770192606304",
      "target": "end",
      "sourceHandle": "source",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__LOOP_1770192411740body-generic_1770192686000target",
      "source": "LOOP_1770192411740",
      "target": "generic_1770192686000",
      "sourceHandle": "body",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__generic_1770192686000source-generic_1770192783054target",
      "source": "generic_1770192686000",
      "target": "generic_1770192783054",
      "sourceHandle": "source",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__IF_1770192716162false-FLOW_CONTROL_1770192829654target",
      "source": "IF_1770192716162",
      "target": "FLOW_CONTROL_1770192829654",
      "sourceHandle": "false",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__IF_1770191823912false-LOOP_1770192978164",
      "source": "IF_1770191823912",
      "target": "LOOP_1770192978164",
      "sourceHandle": "false",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__LOOP_1770192978164exit-endtarget",
      "source": "LOOP_1770192978164",
      "target": "end",
      "sourceHandle": "exit",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__LOOP_1770192978164body-ACTUATOR_SET_1770193070268target",
      "source": "LOOP_1770192978164",
      "target": "ACTUATOR_SET_1770193070268",
      "sourceHandle": "body",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__ACTUATOR_SET_1770193070268source-generic_1770193160960target",
      "source": "ACTUATOR_SET_1770193070268",
      "target": "generic_1770193160960",
      "sourceHandle": "source",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__generic_1770193189571source-FLOW_CONTROL_1770193237801target",
      "source": "generic_1770193189571",
      "target": "FLOW_CONTROL_1770193237801",
      "sourceHandle": "source",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__generic_1770193160960source-ACTUATOR_SET_1770194025141target",
      "source": "generic_1770193160960",
      "target": "ACTUATOR_SET_1770194025141",
      "sourceHandle": "source",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__ACTUATOR_SET_1770194025141source-generic_1770193189571target",
      "source": "ACTUATOR_SET_1770194025141",
      "target": "generic_1770193189571",
      "sourceHandle": "source",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__IF_1770191637315false-IF_1770191823912",
      "source": "IF_1770191637315",
      "target": "IF_1770191823912",
      "sourceHandle": "false",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__SENSOR_READ_1770191546330source-IF_1770191637315",
      "source": "SENSOR_READ_1770191546330",
      "target": "IF_1770191637315",
      "sourceHandle": "source",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__IF_1770191637315true-endtarget",
      "source": "IF_1770191637315",
      "target": "end",
      "sourceHandle": "true",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__IF_1773220252478false-IF_1770192716162",
      "source": "IF_1773220252478",
      "target": "IF_1770192716162",
      "sourceHandle": "false",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__IF_1773220252478true-MATH_VARIABLE_1773220617858target",
      "source": "IF_1773220252478",
      "target": "MATH_VARIABLE_1773220617858",
      "sourceHandle": "true",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__generic_1770192783054source-IF_1773220252478",
      "source": "generic_1770192783054",
      "target": "IF_1773220252478",
      "sourceHandle": "source",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__MATH_VARIABLE_1773220617858source-FLOW_CONTROL_1770192829654target",
      "source": "MATH_VARIABLE_1773220617858",
      "target": "FLOW_CONTROL_1770192829654",
      "sourceHandle": "source",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__generic_1773221214729source-FLOW_CONTROL_1770192829654target",
      "source": "generic_1773221214729",
      "target": "FLOW_CONTROL_1770192829654",
      "sourceHandle": "source",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    },
    {
      "id": "xy-edge__IF_1770192716162true-generic_1773221214729target",
      "source": "IF_1770192716162",
      "target": "generic_1773221214729",
      "sourceHandle": "true",
      "targetHandle": "target",
      "type": "smoothstep",
      "style": {
        "strokeWidth": 2
      }
    }
  ],
  "variables": [
    {
      "id": "var_1",
      "name": "EC current",
      "type": "number",
      "scope": "local",
      "unit": "mS/cm",
      "hasTolerance": false,
      "description": "",
      "defaultTolMode": "symmetric"
    },
    {
      "id": "global_2",
      "name": "ЕС need",
      "type": "number",
      "scope": "global",
      "unit": "mS/cm",
      "hasTolerance": true,
      "description": "Desired EC level",
      "value": 2600,
      "defaultTolerance": 200,
      "defaultTolMode": "symmetric"
    },
    {
      "id": "global_3",
      "name": "Add clean water tank level",
      "type": "number",
      "scope": "global",
      "unit": "L",
      "hasTolerance": false,
      "description": "If the available amount of water in the main tank is \"X\" (L), do not add water to reduce the EC.",
      "value": 75000,
      "defaultTolMode": "symmetric"
    },
    {
      "id": "var_4",
      "name": "Current level main tank",
      "type": "number",
      "scope": "local",
      "unit": "L",
      "hasTolerance": false,
      "description": "",
      "defaultTolMode": "symmetric"
    },
    {
      "id": "global_5",
      "name": "AB Doses",
      "type": "number",
      "scope": "global",
      "unit": "doses",
      "hasTolerance": false,
      "description": "How many doses of AB solutions",
      "value": 2,
      "defaultTolMode": "symmetric"
    },
    {
      "id": "global_6",
      "name": "Pump mix",
      "type": "number",
      "scope": "global",
      "unit": "sec",
      "hasTolerance": false,
      "description": "How long should the agitation pump run?",
      "value": 10,
      "defaultTolMode": "symmetric"
    },
    {
      "id": "var_7",
      "name": "Loop Break",
      "type": "number",
      "scope": "local",
      "unit": "boolean",
      "hasTolerance": false,
      "description": "",
      "defaultTolMode": "symmetric"
    },
    {
      "id": "var_8",
      "name": "Msg",
      "type": "number",
      "scope": "local",
      "unit": "text",
      "hasTolerance": false,
      "description": "",
      "defaultTolMode": "symmetric"
    },
    {
      "id": "global_9",
      "name": "Max level main tank",
      "type": "number",
      "scope": "global",
      "unit": "L",
      "hasTolerance": false,
      "description": "",
      "value": 100000,
      "defaultTolerance": 100,
      "defaultTolMode": "symmetric"
    }
  ]
}