[
  {
    "id": "ha_tab",
    "type": "tab",
    "label": "KNX Utility - HA Translator",
    "disabled": false,
    "info": ""
  },
  {
    "id": "ha_c",
    "type": "comment",
    "z": "ha_tab",
    "name": "Translate Home Assistant-like strings to booleans",
    "info": "Home Assistant Translator runs inside KNX Utility with no gateway. Deploy this example and click an inject button: the output payload is converted to a boolean, preserving the other message fields.",
    "x": 350,
    "y": 60,
    "wires": []
  },
  {
    "id": "ha_node",
    "type": "knxUltimateUtility",
    "z": "ha_tab",
    "name": "HA Translator",
    "payloadPropName": "payload",
    "x": 560,
    "y": 220,
    "wires": [
      [
        "ha_dbg"
      ]
    ],
    "utilityType": "hatranslator",
    "inputs": 1,
    "outputs": 1,
    "server": "",
    "haTranslationTable": "on:true\noff:false\nopen:true\nclosed:false\nhome:true\nnot_home:false"
  },
  {
    "id": "ha_on",
    "type": "inject",
    "z": "ha_tab",
    "name": "payload:on",
    "props": [
      {
        "p": "payload",
        "v": "on",
        "vt": "str"
      }
    ],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "",
    "x": 180,
    "y": 180,
    "wires": [
      [
        "ha_node"
      ]
    ]
  },
  {
    "id": "ha_off",
    "type": "inject",
    "z": "ha_tab",
    "name": "payload:off",
    "props": [
      {
        "p": "payload",
        "v": "off",
        "vt": "str"
      }
    ],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "",
    "x": 180,
    "y": 220,
    "wires": [
      [
        "ha_node"
      ]
    ]
  },
  {
    "id": "ha_home",
    "type": "inject",
    "z": "ha_tab",
    "name": "payload:home",
    "props": [
      {
        "p": "payload",
        "v": "home",
        "vt": "str"
      }
    ],
    "repeat": "",
    "crontab": "",
    "once": false,
    "onceDelay": 0.1,
    "topic": "",
    "x": 180,
    "y": 260,
    "wires": [
      [
        "ha_node"
      ]
    ]
  },
  {
    "id": "ha_dbg",
    "type": "debug",
    "z": "ha_tab",
    "name": "Translated payload",
    "active": true,
    "tosidebar": true,
    "console": false,
    "tostatus": true,
    "complete": "true",
    "targetType": "full",
    "x": 820,
    "y": 220,
    "wires": []
  }
]
