[
    {
        "id": "fe1a1499fa859787",
        "type": "server-state-changed",
        "z": "644e448e6898ecfb",
        "name": "Marantz",
        "server": "47fda6e5630a2a77",
        "version": 5,
        "outputs": 1,
        "exposeAsEntityConfig": "",
        "entityId": "media_player.marantz_av7702mkii",
        "entityIdType": "exact",
        "outputInitially": false,
        "stateType": "str",
        "ifState": "",
        "ifStateType": "str",
        "ifStateOperator": "is",
        "outputOnlyOnStateChange": true,
        "for": "0",
        "forType": "num",
        "forUnits": "minutes",
        "ignorePrevStateNull": false,
        "ignorePrevStateUnknown": false,
        "ignorePrevStateUnavailable": false,
        "ignoreCurrentStateUnknown": false,
        "ignoreCurrentStateUnavailable": false,
        "outputProperties": [
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "entityState"
            },
            {
                "property": "data",
                "propertyType": "msg",
                "value": "",
                "valueType": "eventData"
            },
            {
                "property": "topic",
                "propertyType": "msg",
                "value": "",
                "valueType": "triggerId"
            }
        ],
        "x": 120,
        "y": 3520,
        "wires": [
            [
                "554583ba4be50651"
            ]
        ]
    },
    {
        "id": "554583ba4be50651",
        "type": "switch",
        "z": "644e448e6898ecfb",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "off",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "unavailable",
                "vt": "str"
            },
            {
                "t": "else"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 3,
        "x": 110,
        "y": 3600,
        "wires": [
            [
                "7e2ffc8f5a26ef0d"
            ],
            [
                "7e2ffc8f5a26ef0d"
            ],
            [
                "05c302c4e45f5d5b",
                "fa1009c35afeda57"
            ]
        ]
    },
    {
        "id": "fa1009c35afeda57",
        "type": "gate",
        "z": "644e448e6898ecfb",
        "name": "Pass updates when rcv on",
        "controlTopic": "control",
        "defaultState": "open",
        "openCmd": "open",
        "closeCmd": "close",
        "toggleCmd": "toggle",
        "defaultCmd": "default",
        "statusCmd": "status",
        "persist": false,
        "storeName": "default",
        "x": 360,
        "y": 3760,
        "wires": [
            [
                "3638f8684ec0c6d8"
            ]
        ]
    },
    {
        "id": "14548a308b22feb9",
        "type": "change",
        "z": "644e448e6898ecfb",
        "name": "close",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "close",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "control",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 310,
        "y": 3660,
        "wires": [
            [
                "fa1009c35afeda57"
            ]
        ]
    },
    {
        "id": "05c302c4e45f5d5b",
        "type": "change",
        "z": "644e448e6898ecfb",
        "name": "open",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "open",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "control",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 110,
        "y": 3760,
        "wires": [
            [
                "fa1009c35afeda57"
            ]
        ]
    },
    {
        "id": "c66207327b48cf60",
        "type": "function",
        "z": "644e448e6898ecfb",
        "name": "Get levels",
        "func": "msg.headers = {\n    \"Content-Type\": \"text/xml; charset=\\\"utf-8\\\"\"\n};\n\nmsg.payload = {\n    \"tx\": {\n        \"cmd\": [\n            {\n                \"$\": {\n                    \"id\": [1],\n                },\n                \"_\": \"GetDialogLevel\"\n            },\n            {\n                \"$\": {\n                    \"id\": [1],\n                },\n                \"_\": \"GetSubwooferLevel\"\n            }\n        ],\n    }\n}\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 680,
        "y": 3720,
        "wires": [
            [
                "7f6f320d6fb6c392"
            ]
        ]
    },
    {
        "id": "7f6f320d6fb6c392",
        "type": "xml",
        "z": "644e448e6898ecfb",
        "name": "",
        "property": "payload",
        "attr": "",
        "chr": "",
        "x": 690,
        "y": 3780,
        "wires": [
            [
                "1458c322845ef907"
            ]
        ]
    },
    {
        "id": "1458c322845ef907",
        "type": "http request",
        "z": "644e448e6898ecfb",
        "name": "Query Marantz",
        "method": "POST",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "http://marantz.dragonfear/goform/AppCommand.xml",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 660,
        "y": 3840,
        "wires": [
            [
                "91994f7fe5e3a61a"
            ]
        ]
    },
    {
        "id": "91994f7fe5e3a61a",
        "type": "xml",
        "z": "644e448e6898ecfb",
        "name": "",
        "property": "payload",
        "attr": "",
        "chr": "",
        "x": 690,
        "y": 3900,
        "wires": [
            [
                "dfeea65bb750936a"
            ]
        ]
    },
    {
        "id": "aa2b288d2ea9a046",
        "type": "ha-switch",
        "z": "644e448e6898ecfb",
        "name": "Dialog level adjustment",
        "version": 0,
        "debugenabled": false,
        "inputs": 1,
        "outputs": 2,
        "entityConfig": "8126bb57a108c419",
        "enableInput": true,
        "outputOnStateChange": true,
        "outputProperties": [
            {
                "property": "outputType",
                "propertyType": "msg",
                "value": "state change",
                "valueType": "str"
            },
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "entityState"
            }
        ],
        "x": 1970,
        "y": 3520,
        "wires": [
            [
                "ed4127592969f1b8",
                "414ab3b342f7261f"
            ],
            [
                "ed4127592969f1b8",
                "414ab3b342f7261f"
            ]
        ]
    },
    {
        "id": "0f87a9e3c32ba769",
        "type": "ha-switch",
        "z": "644e448e6898ecfb",
        "name": "Subwoofer level adjustment",
        "version": 0,
        "debugenabled": false,
        "inputs": 1,
        "outputs": 2,
        "entityConfig": "9362e373c2dcba97",
        "enableInput": true,
        "outputOnStateChange": true,
        "outputProperties": [
            {
                "property": "outputType",
                "propertyType": "msg",
                "value": "state change",
                "valueType": "str"
            },
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "entityState"
            }
        ],
        "x": 1990,
        "y": 4080,
        "wires": [
            [
                "9561c8c5924c4ebd",
                "5f22a154f7c5df64"
            ],
            [
                "9561c8c5924c4ebd",
                "5f22a154f7c5df64"
            ]
        ]
    },
    {
        "id": "ace70bd27efe29d1",
        "type": "function",
        "z": "644e448e6898ecfb",
        "name": "function 5",
        "func": "var dialog_status = \"0\";\nvar dialog_adjust = \"\";\nvar dialog_level_value = \"\";\nvar subwoofer_status = \"0\";\nvar subwoofer_adjust = \"\";\nvar subwoofer_level_value = \"\";\n\nif (msg.payload == \"off\" || msg.payload == \"unavailable\") {\n} else {\n    dialog_status = msg.payload.rx.cmd[0].status[0];\n    dialog_adjust = msg.payload.rx.cmd[0].adjust[0];\n    dialog_level_value = msg.payload.rx.cmd[0].level[0];\n    subwoofer_status = msg.payload.rx.cmd[1].status[0];\n    subwoofer_adjust = msg.payload.rx.cmd[1].adjust[0];\n    subwoofer_level_value = msg.payload.rx.cmd[1].sw1level[0];\n}\n\nvar dialog_level_adjustment = null;\nvar subwoofer_level_adjustment = null;\nvar dialog_level = null;\nvar subwoofer_level = null;\n\nif (dialog_status == \"0\") {\n    dialog_level_adjustment = {\"payload\": \"unavailable\"};\n} else if (dialog_status == \"1\") {\n    if (dialog_adjust == \"1\") {\n        dialog_level_adjustment = {\"payload\": \"on\"};\n    } else {\n        dialog_level_adjustment = {\"payload\": \"off\"};\n    }\n    dialog_level = {\"payload\": parseFloat(dialog_level_value.replace(\"dB\", \"\"))};\n}\n\nif (subwoofer_status == \"0\") {\n    subwoofer_level_adjustment = {\"payload\": \"unavailable\"};\n} else if (subwoofer_status == \"1\") {\n    if (subwoofer_adjust == \"1\") {\n        subwoofer_level_adjustment = {\"payload\": \"on\"};\n    } else {\n        subwoofer_level_adjustment = {\"payload\": \"off\"};\n    }\n    subwoofer_level = { \"payload\": parseFloat(subwoofer_level_value.replace(\"dB\", \"\")) };\n}\n\nvar loads = [\n    dialog_level_adjustment,\n    dialog_level,\n    subwoofer_level_adjustment,\n    subwoofer_level,\n];\n\nreturn loads",
        "outputs": 4,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1250,
        "y": 3620,
        "wires": [
            [
                "6fc18d15dffc3d6c"
            ],
            [
                "405246bcb1fe5905"
            ],
            [
                "46a02ad0b37929bd"
            ],
            [
                "384bf6700a12f16c"
            ]
        ],
        "outputLabels": [
            "dialog level adjustment",
            "dialog level",
            "subwoofer level adjustment",
            "subwoofer level"
        ]
    },
    {
        "id": "a8be825d8c5533b8",
        "type": "switch",
        "z": "644e448e6898ecfb",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "unavailable",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "off",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "on",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 3,
        "x": 1740,
        "y": 3400,
        "wires": [
            [
                "b18d5a851f34accf"
            ],
            [
                "eb59e4fe03529ad7"
            ],
            [
                "192523eaebd402ff"
            ]
        ]
    },
    {
        "id": "b18d5a851f34accf",
        "type": "function",
        "z": "644e448e6898ecfb",
        "name": "for now we set it to off",
        "func": "\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1950,
        "y": 3400,
        "wires": [
            [
                "eb59e4fe03529ad7"
            ]
        ]
    },
    {
        "id": "872be2c7960778b9",
        "type": "switch",
        "z": "644e448e6898ecfb",
        "name": "",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "unavailable",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "off",
                "vt": "str"
            },
            {
                "t": "eq",
                "v": "on",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 3,
        "x": 1740,
        "y": 3980,
        "wires": [
            [
                "f11070c06f6fb873"
            ],
            [
                "a5d84e7a7b6d79cb"
            ],
            [
                "b2ae4963303f7c02"
            ]
        ]
    },
    {
        "id": "f11070c06f6fb873",
        "type": "function",
        "z": "644e448e6898ecfb",
        "name": "for now we set it to off",
        "func": "\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1950,
        "y": 3980,
        "wires": [
            [
                "a5d84e7a7b6d79cb"
            ]
        ]
    },
    {
        "id": "a5d84e7a7b6d79cb",
        "type": "change",
        "z": "644e448e6898ecfb",
        "name": "off",
        "rules": [
            {
                "t": "set",
                "p": "enable",
                "pt": "msg",
                "to": "false",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1740,
        "y": 4060,
        "wires": [
            [
                "0f87a9e3c32ba769"
            ]
        ]
    },
    {
        "id": "b2ae4963303f7c02",
        "type": "change",
        "z": "644e448e6898ecfb",
        "name": "on",
        "rules": [
            {
                "t": "set",
                "p": "enable",
                "pt": "msg",
                "to": "true",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1740,
        "y": 4100,
        "wires": [
            [
                "0f87a9e3c32ba769"
            ]
        ]
    },
    {
        "id": "eb59e4fe03529ad7",
        "type": "change",
        "z": "644e448e6898ecfb",
        "name": "off",
        "rules": [
            {
                "t": "set",
                "p": "enable",
                "pt": "msg",
                "to": "false",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1740,
        "y": 3480,
        "wires": [
            [
                "aa2b288d2ea9a046"
            ]
        ]
    },
    {
        "id": "192523eaebd402ff",
        "type": "change",
        "z": "644e448e6898ecfb",
        "name": "on",
        "rules": [
            {
                "t": "set",
                "p": "enable",
                "pt": "msg",
                "to": "true",
                "tot": "bool"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 1740,
        "y": 3520,
        "wires": [
            [
                "aa2b288d2ea9a046"
            ]
        ]
    },
    {
        "id": "349ca5eccc51f4f2",
        "type": "catch",
        "z": "644e448e6898ecfb",
        "name": "",
        "scope": [
            "1458c322845ef907"
        ],
        "uncaught": false,
        "x": 870,
        "y": 3900,
        "wires": [
            [
                "0231fc312c9defce"
            ]
        ]
    },
    {
        "id": "0231fc312c9defce",
        "type": "change",
        "z": "644e448e6898ecfb",
        "name": "unavailable",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "unavailable",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 890,
        "y": 3840,
        "wires": [
            [
                "dfeea65bb750936a"
            ]
        ]
    },
    {
        "id": "31d91ec6f5378c3b",
        "type": "ha-number",
        "z": "644e448e6898ecfb",
        "name": "Refresh dialog level",
        "version": 1,
        "debugenabled": false,
        "inputs": 1,
        "outputs": 1,
        "entityConfig": "cc77b2f6a2734462",
        "mode": "set",
        "value": "payload",
        "valueType": "msg",
        "outputProperties": [
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "value"
            },
            {
                "property": "previousValue",
                "propertyType": "msg",
                "value": "",
                "valueType": "previousValue"
            }
        ],
        "x": 1780,
        "y": 3640,
        "wires": [
            [
                "2f7771fa3070ae39"
            ]
        ]
    },
    {
        "id": "ad2312faf1492f84",
        "type": "ha-number",
        "z": "644e448e6898ecfb",
        "name": "Refresh subwoofer level",
        "version": 1,
        "debugenabled": false,
        "inputs": 1,
        "outputs": 1,
        "entityConfig": "c931da5ba638184d",
        "mode": "set",
        "value": "payload",
        "valueType": "msg",
        "outputProperties": [
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "value"
            },
            {
                "property": "previousValue",
                "propertyType": "msg",
                "value": "",
                "valueType": "previousValue"
            }
        ],
        "x": 1790,
        "y": 4220,
        "wires": [
            [
                "666d74b731956176"
            ]
        ]
    },
    {
        "id": "c15530e2563d1730",
        "type": "ha-number",
        "z": "644e448e6898ecfb",
        "name": "Subwoofer level changed",
        "version": 1,
        "debugenabled": false,
        "inputs": 0,
        "outputs": 1,
        "entityConfig": "c931da5ba638184d",
        "mode": "listen",
        "value": "payload",
        "valueType": "msg",
        "outputProperties": [
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "value"
            },
            {
                "property": "previousValue",
                "propertyType": "msg",
                "value": "",
                "valueType": "previousValue"
            }
        ],
        "x": 1800,
        "y": 4360,
        "wires": [
            [
                "961332a13e0d741f"
            ]
        ]
    },
    {
        "id": "5325b4a7c3b8dcee",
        "type": "ha-number",
        "z": "644e448e6898ecfb",
        "name": "Dialog level changed",
        "version": 1,
        "debugenabled": false,
        "inputs": 0,
        "outputs": 1,
        "entityConfig": "cc77b2f6a2734462",
        "mode": "listen",
        "value": "payload",
        "valueType": "msg",
        "outputProperties": [
            {
                "property": "payload",
                "propertyType": "msg",
                "value": "",
                "valueType": "value"
            },
            {
                "property": "previousValue",
                "propertyType": "msg",
                "value": "",
                "valueType": "previousValue"
            }
        ],
        "x": 1780,
        "y": 3780,
        "wires": [
            [
                "4319f1fd7d0fa328"
            ]
        ]
    },
    {
        "id": "d7b3e0ee3b18eebc",
        "type": "gate",
        "z": "644e448e6898ecfb",
        "name": "",
        "controlTopic": "control",
        "defaultState": "open",
        "openCmd": "open",
        "closeCmd": "close",
        "toggleCmd": "toggle",
        "defaultCmd": "default",
        "statusCmd": "status",
        "persist": false,
        "storeName": "default",
        "x": 2140,
        "y": 3780,
        "wires": [
            [
                "76bd16e363575b4d",
                "41dbf4e5e86eb919"
            ]
        ]
    },
    {
        "id": "afde48313139a48b",
        "type": "change",
        "z": "644e448e6898ecfb",
        "name": "close",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "close",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "control",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 2140,
        "y": 3700,
        "wires": [
            [
                "d7b3e0ee3b18eebc"
            ]
        ]
    },
    {
        "id": "2f7771fa3070ae39",
        "type": "change",
        "z": "644e448e6898ecfb",
        "name": "open",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "open",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "control",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 2140,
        "y": 3640,
        "wires": [
            [
                "996b8681cb0752b8"
            ]
        ]
    },
    {
        "id": "dc08c6b34331f5ef",
        "type": "change",
        "z": "644e448e6898ecfb",
        "name": "close",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "close",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "control",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 2140,
        "y": 4280,
        "wires": [
            [
                "d4048522dde4fdf5"
            ]
        ]
    },
    {
        "id": "666d74b731956176",
        "type": "change",
        "z": "644e448e6898ecfb",
        "name": "open",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "open",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "control",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 2140,
        "y": 4220,
        "wires": [
            [
                "b134b7d3c6e6f724"
            ]
        ]
    },
    {
        "id": "d4048522dde4fdf5",
        "type": "gate",
        "z": "644e448e6898ecfb",
        "name": "",
        "controlTopic": "control",
        "defaultState": "open",
        "openCmd": "open",
        "closeCmd": "close",
        "toggleCmd": "toggle",
        "defaultCmd": "default",
        "statusCmd": "status",
        "persist": false,
        "storeName": "default",
        "x": 2140,
        "y": 4360,
        "wires": [
            [
                "6d1ecb0520b0d59a",
                "c04acee39815a70d"
            ]
        ]
    },
    {
        "id": "feb77d5fe4b54e5e",
        "type": "q-gate",
        "z": "644e448e6898ecfb",
        "name": "Queue updates",
        "controlTopic": "control",
        "defaultState": "open",
        "openCmd": "open",
        "closeCmd": "close",
        "toggleCmd": "toggle",
        "queueCmd": "queue",
        "defaultCmd": "default",
        "triggerCmd": "trigger",
        "flushCmd": "flush",
        "resetCmd": "reset",
        "peekCmd": "peek",
        "dropCmd": "drop",
        "statusCmd": "status",
        "maxQueueLength": "1",
        "keepNewest": true,
        "qToggle": false,
        "persist": false,
        "storeName": "default",
        "x": 1080,
        "y": 3620,
        "wires": [
            [
                "ace70bd27efe29d1"
            ]
        ]
    },
    {
        "id": "e7323a176572da8f",
        "type": "change",
        "z": "644e448e6898ecfb",
        "name": "queue",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "queue",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "control",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 470,
        "y": 3480,
        "wires": [
            [
                "feb77d5fe4b54e5e",
                "3638f8684ec0c6d8"
            ]
        ]
    },
    {
        "id": "acc5b02df561c13a",
        "type": "change",
        "z": "644e448e6898ecfb",
        "name": "open",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "open",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "control",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 470,
        "y": 3520,
        "wires": [
            [
                "feb77d5fe4b54e5e",
                "3638f8684ec0c6d8"
            ]
        ]
    },
    {
        "id": "9449704cad04e84b",
        "type": "link in",
        "z": "644e448e6898ecfb",
        "name": "queue Marantz updates",
        "links": [
            "ed4127592969f1b8",
            "41dbf4e5e86eb919",
            "9561c8c5924c4ebd",
            "c04acee39815a70d"
        ],
        "x": 385,
        "y": 3480,
        "wires": [
            [
                "e7323a176572da8f"
            ]
        ]
    },
    {
        "id": "e35289233951a9ce",
        "type": "link in",
        "z": "644e448e6898ecfb",
        "name": "continue Marantz updates",
        "links": [
            "449d7b34eb932af7",
            "9251e4e303fd8e13",
            "f44e72736738bee4",
            "1d8bf4d616385c0d"
        ],
        "x": 385,
        "y": 3520,
        "wires": [
            [
                "acc5b02df561c13a"
            ]
        ]
    },
    {
        "id": "ed4127592969f1b8",
        "type": "link out",
        "z": "644e448e6898ecfb",
        "name": "link out 1",
        "mode": "link",
        "links": [
            "9449704cad04e84b"
        ],
        "x": 2335,
        "y": 3520,
        "wires": []
    },
    {
        "id": "41dbf4e5e86eb919",
        "type": "link out",
        "z": "644e448e6898ecfb",
        "name": "link out 2",
        "mode": "link",
        "links": [
            "9449704cad04e84b"
        ],
        "x": 2335,
        "y": 3780,
        "wires": []
    },
    {
        "id": "9561c8c5924c4ebd",
        "type": "link out",
        "z": "644e448e6898ecfb",
        "name": "link out 3",
        "mode": "link",
        "links": [
            "9449704cad04e84b"
        ],
        "x": 2335,
        "y": 4080,
        "wires": []
    },
    {
        "id": "c04acee39815a70d",
        "type": "link out",
        "z": "644e448e6898ecfb",
        "name": "link out 4",
        "mode": "link",
        "links": [
            "9449704cad04e84b"
        ],
        "x": 2335,
        "y": 4360,
        "wires": []
    },
    {
        "id": "414ab3b342f7261f",
        "type": "function",
        "z": "644e448e6898ecfb",
        "name": "SetDialogLevel",
        "func": "var value = msg.payload ? \"1\" : \"0\";\nnode.status({ fill: \"blue\", text: \"Dialog adjust \" + msg.payload + \" (\" + value + \") \" + new Date() });\n\nmsg.headers = {\n    \"Content-Type\": \"text/xml; charset=\\\"utf-8\\\"\"\n};\n\nmsg.payload = {\n    \"tx\": {\n        \"cmd\": {\n            \"$\": {\n                \"id\": [1],\n            },\n            \"_\": \"SetDialogLevel\"\n        },\n        \"adjust\": {\n            \"_\": value\n        }\n    }\n}\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2400,
        "y": 3560,
        "wires": [
            [
                "984d3daa009ac505"
            ]
        ]
    },
    {
        "id": "984d3daa009ac505",
        "type": "xml",
        "z": "644e448e6898ecfb",
        "name": "",
        "property": "payload",
        "attr": "",
        "chr": "",
        "x": 2570,
        "y": 3560,
        "wires": [
            [
                "58d4c02ac8ce76e9"
            ]
        ]
    },
    {
        "id": "58d4c02ac8ce76e9",
        "type": "http request",
        "z": "644e448e6898ecfb",
        "name": "Update dialog level adjustment on Marantz",
        "method": "POST",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "http://marantz.dragonfear/goform/AppCommand.xml",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 2810,
        "y": 3560,
        "wires": [
            [
                "ddacf9403b2fc068"
            ]
        ]
    },
    {
        "id": "ddacf9403b2fc068",
        "type": "xml",
        "z": "644e448e6898ecfb",
        "name": "",
        "property": "payload",
        "attr": "",
        "chr": "",
        "x": 3070,
        "y": 3560,
        "wires": [
            [
                "449d7b34eb932af7"
            ]
        ]
    },
    {
        "id": "91d0c13a16cc3af8",
        "type": "catch",
        "z": "644e448e6898ecfb",
        "name": "",
        "scope": [
            "58d4c02ac8ce76e9"
        ],
        "uncaught": false,
        "x": 2850,
        "y": 3620,
        "wires": [
            [
                "449d7b34eb932af7"
            ]
        ]
    },
    {
        "id": "449d7b34eb932af7",
        "type": "link out",
        "z": "644e448e6898ecfb",
        "name": "link out 5",
        "mode": "link",
        "links": [
            "e35289233951a9ce"
        ],
        "x": 3185,
        "y": 3580,
        "wires": []
    },
    {
        "id": "5f22a154f7c5df64",
        "type": "function",
        "z": "644e448e6898ecfb",
        "name": "SetSubwooferLevel",
        "func": "var value = msg.payload ? \"1\" : \"0\";\nnode.status({ fill: \"blue\", text: \"Subwoofer adjust \" + msg.payload + \" (\" + value + \") \" + new Date() });\n\nmsg.headers = {\n    \"Content-Type\": \"text/xml; charset=\\\"utf-8\\\"\"\n};\n\nmsg.payload = {\n    \"tx\": {\n        \"cmd\": {\n            \"$\": {\n                \"id\": [1],\n            },\n            \"_\": \"SetSubwooferLevel\"\n        },\n        \"adjust\": {\n            \"_\": value\n        }\n    }\n}\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2410,
        "y": 4120,
        "wires": [
            [
                "6bf2b82de72a3d92"
            ]
        ]
    },
    {
        "id": "6bf2b82de72a3d92",
        "type": "xml",
        "z": "644e448e6898ecfb",
        "name": "",
        "property": "payload",
        "attr": "",
        "chr": "",
        "x": 2570,
        "y": 4120,
        "wires": [
            [
                "d47770aa09ab023b"
            ]
        ]
    },
    {
        "id": "d47770aa09ab023b",
        "type": "http request",
        "z": "644e448e6898ecfb",
        "name": "Update subwoofer level adjustment on Marantz",
        "method": "POST",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "http://marantz.dragonfear/goform/AppCommand.xml",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 2820,
        "y": 4120,
        "wires": [
            [
                "4e441eab278ca43a"
            ]
        ]
    },
    {
        "id": "4e441eab278ca43a",
        "type": "xml",
        "z": "644e448e6898ecfb",
        "name": "",
        "property": "payload",
        "attr": "",
        "chr": "",
        "x": 3070,
        "y": 4120,
        "wires": [
            [
                "9251e4e303fd8e13"
            ]
        ]
    },
    {
        "id": "246426cb8e17dd06",
        "type": "catch",
        "z": "644e448e6898ecfb",
        "name": "",
        "scope": [
            "d47770aa09ab023b"
        ],
        "uncaught": false,
        "x": 2850,
        "y": 4180,
        "wires": [
            [
                "9251e4e303fd8e13"
            ]
        ]
    },
    {
        "id": "9251e4e303fd8e13",
        "type": "link out",
        "z": "644e448e6898ecfb",
        "name": "link out 6",
        "mode": "link",
        "links": [
            "e35289233951a9ce"
        ],
        "x": 3185,
        "y": 4140,
        "wires": []
    },
    {
        "id": "40cf30ac54c18013",
        "type": "function",
        "z": "644e448e6898ecfb",
        "name": "Get levels",
        "func": "msg.headers = {\n    \"Content-Type\": \"text/xml; charset=\\\"utf-8\\\"\"\n};\n\nmsg.payload = {\n    \"tx\": {\n        \"cmd\": [\n            {\n                \"$\": {\n                    \"id\": [1],\n                },\n                \"_\": \"GetDialogLevel\"\n            },\n            {\n                \"$\": {\n                    \"id\": [1],\n                },\n                \"_\": \"GetSubwooferLevel\"\n            }\n        ],\n    }\n}\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 420,
        "y": 4040,
        "wires": [
            [
                "72d41e818297db16"
            ]
        ]
    },
    {
        "id": "72d41e818297db16",
        "type": "xml",
        "z": "644e448e6898ecfb",
        "name": "",
        "property": "payload",
        "attr": "",
        "chr": "",
        "x": 590,
        "y": 4040,
        "wires": [
            [
                "af166de0cf715638"
            ]
        ]
    },
    {
        "id": "af166de0cf715638",
        "type": "http request",
        "z": "644e448e6898ecfb",
        "name": "Query Marantz",
        "method": "POST",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "http://marantz.dragonfear/goform/AppCommand.xml",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 740,
        "y": 4040,
        "wires": [
            [
                "9cf6f548d76cc992"
            ]
        ]
    },
    {
        "id": "9cf6f548d76cc992",
        "type": "xml",
        "z": "644e448e6898ecfb",
        "name": "",
        "property": "payload",
        "attr": "",
        "chr": "",
        "x": 890,
        "y": 4040,
        "wires": [
            [
                "a8b1d3107b0e1d63"
            ]
        ]
    },
    {
        "id": "a8b1d3107b0e1d63",
        "type": "debug",
        "z": "644e448e6898ecfb",
        "name": "debug 34",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 1180,
        "y": 4040,
        "wires": []
    },
    {
        "id": "69cd63b6bfb73cd0",
        "type": "inject",
        "z": "644e448e6898ecfb",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "5",
        "payloadType": "num",
        "x": 250,
        "y": 4040,
        "wires": [
            [
                "40cf30ac54c18013"
            ]
        ]
    },
    {
        "id": "76bd16e363575b4d",
        "type": "function",
        "z": "644e448e6898ecfb",
        "name": "SetDialogLevel",
        "func": "var value = (msg.payload + 12) * 2;\n//var value = msg.payload < 0 ? \"+\" + msg.payload + \"dB\" : \"\" + msg.payload + \"dB\";\nnode.status({ fill: \"blue\", text: \"Dialog level adjust \" + msg.payload + \" (\" + value + \") \" + new Date() });\nmsg.headers = {\n    \"Content-Type\": \"text/xml; charset=\\\"utf-8\\\"\"\n};\n\nmsg.payload = {\n    \"tx\": [\n        {\n            \"cmd\": {\n                \"$\": {\n                    \"id\": [1],\n                },\n                \"_\": \"SetDialogLevel\"\n            },\n            \"value\": {\n                \"_\": value\n            }\n        }\n    ]\n}\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2400,
        "y": 3820,
        "wires": [
            [
                "ebeea8565eac558e"
            ]
        ]
    },
    {
        "id": "ebeea8565eac558e",
        "type": "xml",
        "z": "644e448e6898ecfb",
        "name": "",
        "property": "payload",
        "attr": "",
        "chr": "",
        "x": 2570,
        "y": 3820,
        "wires": [
            [
                "17cd1a3bf7b4e346"
            ]
        ]
    },
    {
        "id": "17cd1a3bf7b4e346",
        "type": "http request",
        "z": "644e448e6898ecfb",
        "name": "Update dialog level on Marantz",
        "method": "POST",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "http://marantz.dragonfear/goform/AppCommand.xml",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 2770,
        "y": 3820,
        "wires": [
            [
                "0e2db63dd93248b0"
            ]
        ]
    },
    {
        "id": "0e2db63dd93248b0",
        "type": "xml",
        "z": "644e448e6898ecfb",
        "name": "",
        "property": "payload",
        "attr": "",
        "chr": "",
        "x": 3070,
        "y": 3820,
        "wires": [
            [
                "f44e72736738bee4"
            ]
        ]
    },
    {
        "id": "0b0fc06c639ff598",
        "type": "catch",
        "z": "644e448e6898ecfb",
        "name": "",
        "scope": [
            "17cd1a3bf7b4e346"
        ],
        "uncaught": false,
        "x": 2850,
        "y": 3880,
        "wires": [
            [
                "f44e72736738bee4"
            ]
        ]
    },
    {
        "id": "f44e72736738bee4",
        "type": "link out",
        "z": "644e448e6898ecfb",
        "name": "link out 7",
        "mode": "link",
        "links": [
            "e35289233951a9ce"
        ],
        "x": 3185,
        "y": 3840,
        "wires": []
    },
    {
        "id": "6d1ecb0520b0d59a",
        "type": "function",
        "z": "644e448e6898ecfb",
        "name": "SetSubwooferLevel",
        "func": "var value = (msg.payload + 12) * 2;\n//var value = msg.payload < 0 ? \"+\" + msg.payload + \"dB\" : \"\" + msg.payload + \"dB\";\nnode.status({ fill: \"blue\", text: \"Subwoofer level adjust \" + msg.payload + \" (\" + value + \") \" + new Date() });\nmsg.headers = {\n    \"Content-Type\": \"text/xml; charset=\\\"utf-8\\\"\"\n};\n\nmsg.payload = {\n    \"tx\": [\n        {\n            \"cmd\": {\n                \"$\": {\n                    \"id\": [1],\n                },\n                \"_\": \"SetSubwooferLevel\"\n            },\n            \"value\": {\n                \"_\": value\n            }\n        }\n    ]\n}\nreturn msg;",
        "outputs": 1,
        "timeout": "",
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 2410,
        "y": 4400,
        "wires": [
            [
                "9f1d10e5b27c0c06"
            ]
        ]
    },
    {
        "id": "9f1d10e5b27c0c06",
        "type": "xml",
        "z": "644e448e6898ecfb",
        "name": "",
        "property": "payload",
        "attr": "",
        "chr": "",
        "x": 2570,
        "y": 4400,
        "wires": [
            [
                "0afc9d2fc0b7797f"
            ]
        ]
    },
    {
        "id": "0afc9d2fc0b7797f",
        "type": "http request",
        "z": "644e448e6898ecfb",
        "name": "Update subwoofer level on Marantz",
        "method": "POST",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "http://marantz.dragonfear/goform/AppCommand.xml",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 2780,
        "y": 4400,
        "wires": [
            [
                "3af104099ff3a46d"
            ]
        ]
    },
    {
        "id": "3af104099ff3a46d",
        "type": "xml",
        "z": "644e448e6898ecfb",
        "name": "",
        "property": "payload",
        "attr": "",
        "chr": "",
        "x": 3070,
        "y": 4400,
        "wires": [
            [
                "1d8bf4d616385c0d"
            ]
        ]
    },
    {
        "id": "2717cc91c818bb8b",
        "type": "catch",
        "z": "644e448e6898ecfb",
        "name": "",
        "scope": [
            "0afc9d2fc0b7797f"
        ],
        "uncaught": false,
        "x": 2850,
        "y": 4480,
        "wires": [
            [
                "1d8bf4d616385c0d"
            ]
        ]
    },
    {
        "id": "1d8bf4d616385c0d",
        "type": "link out",
        "z": "644e448e6898ecfb",
        "name": "link out 8",
        "mode": "link",
        "links": [
            "e35289233951a9ce"
        ],
        "x": 3185,
        "y": 4420,
        "wires": []
    },
    {
        "id": "51e790236946664f",
        "type": "inject",
        "z": "644e448e6898ecfb",
        "name": "reopen",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 290,
        "y": 3520,
        "wires": [
            [
                "acc5b02df561c13a"
            ]
        ]
    },
    {
        "id": "996b8681cb0752b8",
        "type": "delay",
        "z": "644e448e6898ecfb",
        "name": "",
        "pauseType": "delay",
        "timeout": "50",
        "timeoutUnits": "milliseconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 2300,
        "y": 3640,
        "wires": [
            [
                "d7b3e0ee3b18eebc"
            ]
        ]
    },
    {
        "id": "b134b7d3c6e6f724",
        "type": "delay",
        "z": "644e448e6898ecfb",
        "name": "",
        "pauseType": "delay",
        "timeout": "50",
        "timeoutUnits": "milliseconds",
        "rate": "1",
        "nbRateUnits": "1",
        "rateUnits": "second",
        "randomFirst": "1",
        "randomLast": "5",
        "randomUnits": "seconds",
        "drop": false,
        "allowrate": false,
        "outputs": 1,
        "x": 2300,
        "y": 4220,
        "wires": [
            [
                "d4048522dde4fdf5"
            ]
        ]
    },
    {
        "id": "6fc18d15dffc3d6c",
        "type": "rbe",
        "z": "644e448e6898ecfb",
        "name": "",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": false,
        "property": "payload",
        "topi": "topic",
        "x": 1420,
        "y": 3600,
        "wires": [
            [
                "a8be825d8c5533b8"
            ]
        ]
    },
    {
        "id": "46a02ad0b37929bd",
        "type": "rbe",
        "z": "644e448e6898ecfb",
        "name": "",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": false,
        "property": "payload",
        "topi": "topic",
        "x": 1420,
        "y": 3980,
        "wires": [
            [
                "872be2c7960778b9"
            ]
        ]
    },
    {
        "id": "961332a13e0d741f",
        "type": "rbe",
        "z": "644e448e6898ecfb",
        "name": "",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": false,
        "property": "payload",
        "topi": "topic",
        "x": 2000,
        "y": 4360,
        "wires": [
            [
                "d4048522dde4fdf5"
            ]
        ]
    },
    {
        "id": "4319f1fd7d0fa328",
        "type": "rbe",
        "z": "644e448e6898ecfb",
        "name": "",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": false,
        "property": "payload",
        "topi": "topic",
        "x": 2000,
        "y": 3780,
        "wires": [
            [
                "d7b3e0ee3b18eebc"
            ]
        ]
    },
    {
        "id": "405246bcb1fe5905",
        "type": "ha-number",
        "z": "644e448e6898ecfb",
        "name": "Get dialog level",
        "version": 1,
        "debugenabled": false,
        "inputs": 1,
        "outputs": 1,
        "entityConfig": "cc77b2f6a2734462",
        "mode": "get",
        "value": "payload",
        "valueType": "msg",
        "outputProperties": [
            {
                "property": "old_value",
                "propertyType": "msg",
                "value": "",
                "valueType": "value"
            }
        ],
        "x": 1450,
        "y": 3700,
        "wires": [
            [
                "bff5232d01b6944f"
            ]
        ]
    },
    {
        "id": "bff5232d01b6944f",
        "type": "function",
        "z": "644e448e6898ecfb",
        "name": "different?",
        "func": "if (msg.payload != msg.old_value) {\n    node.status(\"Value from Marantz \" + msg.payload + \" differs from current value \" + msg.old_value + \": \" + new Date());\n    return msg;\n}\n    node.status(\"Value from Marantz \" + msg.payload + \" is same as current value \" + msg.old_value + \": \" + new Date());\n",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1630,
        "y": 3700,
        "wires": [
            [
                "afde48313139a48b",
                "31d91ec6f5378c3b"
            ]
        ]
    },
    {
        "id": "384bf6700a12f16c",
        "type": "ha-number",
        "z": "644e448e6898ecfb",
        "name": "Get subwoofer level",
        "version": 1,
        "debugenabled": false,
        "inputs": 1,
        "outputs": 1,
        "entityConfig": "c931da5ba638184d",
        "mode": "get",
        "value": "payload",
        "valueType": "msg",
        "outputProperties": [
            {
                "property": "old_value",
                "propertyType": "msg",
                "value": "",
                "valueType": "value"
            }
        ],
        "x": 1460,
        "y": 4280,
        "wires": [
            [
                "ae4b585e49724206"
            ]
        ]
    },
    {
        "id": "ae4b585e49724206",
        "type": "function",
        "z": "644e448e6898ecfb",
        "name": "different?",
        "func": "if (msg.payload != msg.old_value) {\n    node.status(\"Value from Marantz \" + msg.payload + \" differs from current value \" + msg.old_value + \": \" + new Date());\n    return msg;\n}\n    node.status(\"Value from Marantz \" + msg.payload + \" is same as current value \" + msg.old_value + \": \" + new Date());\n",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 1630,
        "y": 4280,
        "wires": [
            [
                "ad2312faf1492f84",
                "dc08c6b34331f5ef"
            ]
        ]
    },
    {
        "id": "415b43f1b0babb1f",
        "type": "comment",
        "z": "644e448e6898ecfb",
        "name": "XML reference",
        "info": "https://github.com/JPHutchins/denonavr2016/blob/master/XML_data_dump.txt",
        "x": 410,
        "y": 4080,
        "wires": []
    },
    {
        "id": "3638f8684ec0c6d8",
        "type": "q-gate",
        "z": "644e448e6898ecfb",
        "name": "Queue refreshes",
        "controlTopic": "control",
        "defaultState": "open",
        "openCmd": "open",
        "closeCmd": "close",
        "toggleCmd": "toggle",
        "queueCmd": "queue",
        "defaultCmd": "default",
        "triggerCmd": "trigger",
        "flushCmd": "flush",
        "resetCmd": "reset",
        "peekCmd": "peek",
        "dropCmd": "drop",
        "statusCmd": "status",
        "maxQueueLength": "1",
        "keepNewest": true,
        "qToggle": false,
        "persist": false,
        "storeName": "default",
        "x": 650,
        "y": 3660,
        "wires": [
            [
                "c66207327b48cf60"
            ]
        ]
    },
    {
        "id": "92cfa176d015c97e",
        "type": "inject",
        "z": "644e448e6898ecfb",
        "name": "tick",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "3",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 110,
        "y": 3860,
        "wires": [
            [
                "fa1009c35afeda57"
            ]
        ]
    },
    {
        "id": "7e2ffc8f5a26ef0d",
        "type": "junction",
        "z": "644e448e6898ecfb",
        "x": 220,
        "y": 3600,
        "wires": [
            [
                "feb77d5fe4b54e5e",
                "14548a308b22feb9"
            ]
        ]
    },
    {
        "id": "dfeea65bb750936a",
        "type": "junction",
        "z": "644e448e6898ecfb",
        "x": 840,
        "y": 3660,
        "wires": [
            [
                "feb77d5fe4b54e5e"
            ]
        ]
    },
    {
        "id": "47fda6e5630a2a77",
        "type": "server",
        "name": "Home Assistant",
        "version": 5,
        "addon": false,
        "rejectUnauthorizedCerts": false,
        "ha_boolean": "y|yes|true|on|home|open",
        "connectionDelay": true,
        "cacheJson": true,
        "heartbeat": false,
        "heartbeatInterval": "30",
        "areaSelector": "friendlyName",
        "deviceSelector": "friendlyName",
        "entitySelector": "friendlyName",
        "statusSeparator": ": ",
        "statusYear": "hidden",
        "statusMonth": "short",
        "statusDay": "numeric",
        "statusHourCycle": "default",
        "statusTimeFormat": "h:m:s.ms",
        "enableGlobalContextStore": true
    },
    {
        "id": "8126bb57a108c419",
        "type": "ha-entity-config",
        "server": "47fda6e5630a2a77",
        "deviceConfig": "9e59a5b40a65b4a1",
        "name": "Marantz AV7702mkII dialog level adjustment",
        "version": "6",
        "entityType": "switch",
        "haConfig": [
            {
                "property": "name",
                "value": "Marantz AV7702mkII dialog level adjustment"
            },
            {
                "property": "icon",
                "value": "mdi:music-clef-alto"
            },
            {
                "property": "entity_picture",
                "value": ""
            },
            {
                "property": "entity_category",
                "value": "config"
            },
            {
                "property": "device_class",
                "value": "switch"
            }
        ],
        "resend": false,
        "debugEnabled": false
    },
    {
        "id": "9362e373c2dcba97",
        "type": "ha-entity-config",
        "server": "47fda6e5630a2a77",
        "deviceConfig": "9e59a5b40a65b4a1",
        "name": "Marantz AV7702mkII subwoofer level adjustment",
        "version": "6",
        "entityType": "switch",
        "haConfig": [
            {
                "property": "name",
                "value": "Marantz AV7702mkII subwoofer level adjustment"
            },
            {
                "property": "icon",
                "value": "mdi:music-clef-bass"
            },
            {
                "property": "entity_picture",
                "value": ""
            },
            {
                "property": "entity_category",
                "value": "config"
            },
            {
                "property": "device_class",
                "value": "switch"
            }
        ],
        "resend": false,
        "debugEnabled": false
    },
    {
        "id": "cc77b2f6a2734462",
        "type": "ha-entity-config",
        "server": "47fda6e5630a2a77",
        "deviceConfig": "9e59a5b40a65b4a1",
        "name": "Marantz AV7702mkII dialog level",
        "version": "6",
        "entityType": "number",
        "haConfig": [
            {
                "property": "name",
                "value": "Marantz AV7702mkII dialog level"
            },
            {
                "property": "icon",
                "value": "mdi:music-clef-alto"
            },
            {
                "property": "entity_picture",
                "value": ""
            },
            {
                "property": "entity_category",
                "value": "config"
            },
            {
                "property": "device_class",
                "value": ""
            },
            {
                "property": "unit_of_measurement",
                "value": "dB"
            },
            {
                "property": "min_value",
                "value": -12
            },
            {
                "property": "max_value",
                "value": 12
            },
            {
                "property": "step_value",
                "value": 0.5
            },
            {
                "property": "mode",
                "value": "slider"
            }
        ],
        "resend": false,
        "debugEnabled": false
    },
    {
        "id": "c931da5ba638184d",
        "type": "ha-entity-config",
        "server": "47fda6e5630a2a77",
        "deviceConfig": "9e59a5b40a65b4a1",
        "name": "Marantz AV7702mkII subwoofer level",
        "version": "6",
        "entityType": "number",
        "haConfig": [
            {
                "property": "name",
                "value": "Marantz AV7702mkII subwoofer level"
            },
            {
                "property": "icon",
                "value": "mdi:music-clef-bass"
            },
            {
                "property": "entity_picture",
                "value": ""
            },
            {
                "property": "entity_category",
                "value": "config"
            },
            {
                "property": "device_class",
                "value": ""
            },
            {
                "property": "unit_of_measurement",
                "value": "dB"
            },
            {
                "property": "min_value",
                "value": -12
            },
            {
                "property": "max_value",
                "value": 12
            },
            {
                "property": "step_value",
                "value": 0.5
            },
            {
                "property": "mode",
                "value": "slider"
            }
        ],
        "resend": false,
        "debugEnabled": false
    },
    {
        "id": "9e59a5b40a65b4a1",
        "type": "ha-device-config",
        "name": "Marantz AV7702mkII",
        "hwVersion": "",
        "manufacturer": "Marantz",
        "model": "AV7702mkII",
        "swVersion": ""
    }
]
