[
  {
    "id": "analog_input_group",
    "type": "group",
    "style": {
      "stroke": "#999999",
      "stroke-opacity": "1",
      "fill": "none",
      "fill-opacity": "1",
      "label": true,
      "label-position": "nw",
      "color": "#a4a4a4"
    },
    "nodes": [
      "inject_temp_20",
      "inject_temp_25",
      "inject_humidity_60",
      "debug_analog_value",
      "function_sensor_simulator",
      "inject_sensor_sim",
      "comment_analog_logic",
      "65a51beb90e94384",
      "beac57070d251b3a"
    ],
    "x": 134,
    "y": 2819,
    "w": 872,
    "h": 462
  },
  {
    "id": "inject_temp_20",
    "type": "inject",
    "g": "analog_input_group",
    "name": "Temperature 20°C",
    "props": [
      {
        "p": "payload"
      }
    ],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": "0",
    "topic": "",
    "payload": "20",
    "payloadType": "num",
    "x": 270,
    "y": 2920,
    "wires": [
      [
        "beac57070d251b3a"
      ]
    ]
  },
  {
    "id": "inject_temp_25",
    "type": "inject",
    "g": "analog_input_group",
    "name": "Temperature 25°C",
    "props": [
      {
        "p": "payload"
      }
    ],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": "0",
    "topic": "",
    "payload": "25.8",
    "payloadType": "num",
    "x": 270,
    "y": 3000,
    "wires": [
      [
        "65a51beb90e94384"
      ]
    ]
  },
  {
    "id": "inject_humidity_60",
    "type": "inject",
    "g": "analog_input_group",
    "name": "Humidity 60%",
    "props": [
      {
        "p": "inputTarget",
        "v": "Analog Input",
        "vt": "str"
      },
      {
        "p": "payload",
        "v": "60.2",
        "vt": "num"
      }
    ],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": "0",
    "topic": "",
    "x": 250,
    "y": 3040,
    "wires": [
      [
        "65a51beb90e94384"
      ]
    ]
  },
  {
    "id": "debug_analog_value",
    "type": "debug",
    "g": "analog_input_group",
    "name": "1 · Feedback",
    "active": true,
    "tosidebar": true,
    "console": false,
    "tostatus": false,
    "complete": "true",
    "targetType": "full",
    "statusVal": "",
    "statusType": "auto",
    "x": 890,
    "y": 3000,
    "wires": []
  },
  {
    "id": "function_sensor_simulator",
    "type": "function",
    "g": "analog_input_group",
    "name": "Sensor Simulator",
    "func": "// Send a random temperature reading (18 to 26) to the Analog Input device\nconst value = Math.round((18 + Math.random() * 8) * 10) / 10;\nmsg.inputTarget = \"Analog Input\";\nmsg.payload = value;\nnode.status({ fill: \"blue\", shape: \"dot\", text: value + \" °C\" });\nreturn msg;",
    "outputs": 1,
    "timeout": 0,
    "noerr": 0,
    "initialize": "",
    "finalize": "",
    "libs": [],
    "x": 530,
    "y": 3240,
    "wires": [
      [
        "65a51beb90e94384"
      ]
    ]
  },
  {
    "id": "inject_sensor_sim",
    "type": "inject",
    "g": "analog_input_group",
    "name": "Next Sensor Reading",
    "props": [],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": "0",
    "topic": "",
    "x": 280,
    "y": 3240,
    "wires": [
      [
        "function_sensor_simulator"
      ]
    ]
  },
  {
    "id": "comment_analog_logic",
    "type": "comment",
    "g": "analog_input_group",
    "name": "Communication Analog Input",
    "info": "## Analog Input node\nDevice: double-click the device node and choose the device of your installation, then Deploy.\n\n### Input\nA number in `msg.payload`. `msg.inputTarget` is optional (`Analog Input`). The value must lie in the range of the device object (here 0-100).\n\n### Output\n1. Feedback — the value, each time the device reports one (also after a value written by this flow, once the server has stored it). Nothing leaves the output at the moment the flow writes.",
    "x": 340,
    "y": 2860,
    "wires": []
  },
  {
    "id": "65a51beb90e94384",
    "type": "widget-AnalogInput",
    "g": "analog_input_group",
    "dropdownRoom": "",
    "dropdownCategory": "",
    "dropdownWidget": "",
    "displayName": "Analog Input (set device)",
    "x": 640,
    "y": 3000,
    "wires": [
      [
        "debug_analog_value"
      ]
    ]
  },
  {
    "id": "beac57070d251b3a",
    "type": "hypervisu-input-target",
    "g": "analog_input_group",
    "selectedWidget": "9",
    "selectedInput": "Analog Input",
    "displayName": "Input Target",
    "x": 470,
    "y": 2920,
    "wires": [
      [
        "65a51beb90e94384"
      ]
    ]
  }
]