[ { "id": "b1ba5061.28b28", "type": "comment", "z": "ca82e29d.6fe48", "name": "Телевизор", "info": "", "x": 80, "y": 560, "wires": [] }, { "id": "8adfb1d7.71a23", "type": "homekit-service", "z": "ca82e29d.6fe48", "isParent": true, "bridge": "e7e5b264.8234f", "parentService": "", "name": "TV", "serviceName": "Television", "topic": "", "filter": false, "manufacturer": "My TV", "model": "My TV Model", "serialNo": "My TV Serial Number", "cameraConfigVideoProcessor": "ffmpeg", "cameraConfigSource": "", "cameraConfigStillImageSource": "", "cameraConfigMaxStreams": 2, "cameraConfigMaxWidth": 1280, "cameraConfigMaxHeight": 720, "cameraConfigMaxFPS": 10, "cameraConfigMaxBitrate": 300, "cameraConfigVideoCodec": "libx264", "cameraConfigAudioCodec": "libfdk_aac", "cameraConfigAudio": false, "cameraConfigPacketSize": 1316, "cameraConfigVerticalFlip": false, "cameraConfigHorizontalFlip": false, "cameraConfigMapVideo": "0:0", "cameraConfigMapAudio": "0:1", "cameraConfigVideoFilter": "scale=1280:720", "cameraConfigAdditionalCommandLine": "-tune zerolatency", "cameraConfigDebug": false, "cameraConfigSnapshotOutput": "disabled", "cameraConfigInterfaceName": "", "characteristicProperties": "{\"RemoteKey\":true, \"PowerModeSelection\":true}", "x": 510, "y": 620, "wires": [ [ "5cb86e34.5d7dc", "102e9caa.ee0163" ], [] ] }, { "id": "5690245a.91644c", "type": "homekit-service", "z": "ca82e29d.6fe48", "isParent": false, "bridge": "", "parentService": "8adfb1d7.71a23", "name": "TV speaker", "serviceName": "TelevisionSpeaker", "topic": "", "filter": false, "manufacturer": "Default Manufacturer", "model": "Default Model", "serialNo": "Default Serial Number", "cameraConfigVideoProcessor": "ffmpeg", "cameraConfigSource": "", "cameraConfigStillImageSource": "", "cameraConfigMaxStreams": 2, "cameraConfigMaxWidth": 1280, "cameraConfigMaxHeight": 720, "cameraConfigMaxFPS": 10, "cameraConfigMaxBitrate": 300, "cameraConfigVideoCodec": "libx264", "cameraConfigAudioCodec": "libfdk_aac", "cameraConfigAudio": false, "cameraConfigPacketSize": 1316, "cameraConfigVerticalFlip": false, "cameraConfigHorizontalFlip": false, "cameraConfigMapVideo": "0:0", "cameraConfigMapAudio": "0:1", "cameraConfigVideoFilter": "scale=1280:720", "cameraConfigAdditionalCommandLine": "-tune zerolatency", "cameraConfigDebug": false, "cameraConfigSnapshotOutput": "disabled", "cameraConfigInterfaceName": "", "characteristicProperties": "{\n \"VolumeSelector\": true\n}", "x": 430, "y": 660, "wires": [ [], [ "db93d872.5bd8b8" ] ] }, { "id": "e9d9d9c6.e1bc68", "type": "homekit-service", "z": "ca82e29d.6fe48", "isParent": false, "bridge": "", "parentService": "8adfb1d7.71a23", "name": "TV Next HDMI", "serviceName": "InputSource", "topic": "", "filter": false, "manufacturer": "Default Manufacturer", "model": "Default Model", "serialNo": "Default Serial Number", "cameraConfigVideoProcessor": "ffmpeg", "cameraConfigSource": "", "cameraConfigStillImageSource": "", "cameraConfigMaxStreams": 2, "cameraConfigMaxWidth": 1280, "cameraConfigMaxHeight": 720, "cameraConfigMaxFPS": 10, "cameraConfigMaxBitrate": 300, "cameraConfigVideoCodec": "libx264", "cameraConfigAudioCodec": "libfdk_aac", "cameraConfigAudio": false, "cameraConfigPacketSize": 1316, "cameraConfigVerticalFlip": false, "cameraConfigHorizontalFlip": false, "cameraConfigMapVideo": "0:0", "cameraConfigMapAudio": "0:1", "cameraConfigVideoFilter": "scale=1280:720", "cameraConfigAdditionalCommandLine": "-tune zerolatency", "cameraConfigDebug": false, "cameraConfigSnapshotOutput": "disabled", "cameraConfigInterfaceName": "", "characteristicProperties": "{}", "x": 440, "y": 700, "wires": [ [], [] ] }, { "id": "bc80cf25.6b386", "type": "homekit-service", "z": "ca82e29d.6fe48", "isParent": false, "bridge": "", "parentService": "8adfb1d7.71a23", "name": "TV Previous HDMI", "serviceName": "InputSource", "topic": "", "filter": false, "manufacturer": "Default Manufacturer", "model": "Default Model", "serialNo": "Default Serial Number", "cameraConfigVideoProcessor": "ffmpeg", "cameraConfigSource": "", "cameraConfigStillImageSource": "", "cameraConfigMaxStreams": 2, "cameraConfigMaxWidth": 1280, "cameraConfigMaxHeight": 720, "cameraConfigMaxFPS": 10, "cameraConfigMaxBitrate": 300, "cameraConfigVideoCodec": "libx264", "cameraConfigAudioCodec": "libfdk_aac", "cameraConfigAudio": false, "cameraConfigPacketSize": 1316, "cameraConfigVerticalFlip": false, "cameraConfigHorizontalFlip": false, "cameraConfigMapVideo": "0:0", "cameraConfigMapAudio": "0:1", "cameraConfigVideoFilter": "scale=1280:720", "cameraConfigAdditionalCommandLine": "-tune zerolatency", "cameraConfigDebug": false, "cameraConfigSnapshotOutput": "disabled", "cameraConfigInterfaceName": "", "characteristicProperties": "{}", "x": 450, "y": 740, "wires": [ [], [] ] }, { "id": "20a0ca8f.ab44a6", "type": "inject", "z": "ca82e29d.6fe48", "name": "", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": true, "onceDelay": "2", "x": 215, "y": 740, "wires": [ [ "d9346310.65318", "6ae41ff.6e7aee", "3f6e2bc2.a95f94" ] ], "l": false }, { "id": "d9346310.65318", "type": "function", "z": "ca82e29d.6fe48", "name": "", "func": "msg.payload = { \n \"IsConfigured\" : 1, \n \"Identifier\": 1, \n \"ConfiguredName\": \"Previous HDMI\", \n \"InputSourceType\": 3 }; \nreturn msg;", "outputs": 1, "noerr": 0, "x": 315, "y": 740, "wires": [ [ "bc80cf25.6b386" ] ], "l": false }, { "id": "6ae41ff.6e7aee", "type": "function", "z": "ca82e29d.6fe48", "name": "", "func": "msg.payload = { \n \"IsConfigured\" : 1, \n \"Identifier\": 2, \n \"ConfiguredName\": \"Next HDMI\", \n \"InputSourceType\": 3 }; \nreturn msg;", "outputs": 1, "noerr": 0, "x": 315, "y": 700, "wires": [ [ "e9d9d9c6.e1bc68" ] ], "l": false }, { "id": "3f6e2bc2.a95f94", "type": "function", "z": "ca82e29d.6fe48", "name": "", "func": "msg.payload = {\n \"VolumeSelector\": true,\n \"VolumeControlType\": 1,};\nreturn msg;", "outputs": 1, "noerr": 0, "x": 315, "y": 660, "wires": [ [ "5690245a.91644c" ] ], "l": false }, { "id": "5cb86e34.5d7dc", "type": "switch", "z": "ca82e29d.6fe48", "name": "", "property": "payload.ActiveIdentifier", "propertyType": "msg", "rules": [ { "t": "eq", "v": "1", "vt": "num" }, { "t": "eq", "v": "2", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 615, "y": 660, "wires": [ [ "30cbf9b1.474c46" ], [ "30cbf9b1.474c46" ] ], "l": false }, { "id": "db93d872.5bd8b8", "type": "switch", "z": "ca82e29d.6fe48", "name": "", "property": "payload.VolumeSelector", "propertyType": "msg", "rules": [ { "t": "eq", "v": "0", "vt": "num" }, { "t": "eq", "v": "1", "vt": "num" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 615, "y": 720, "wires": [ [ "487ae349.09312c" ], [ "4df255b2.d49a8c" ] ], "l": false }, { "id": "67abc24d.aa6cac", "type": "ping", "z": "ca82e29d.6fe48", "mode": "timed", "name": "", "host": "10.1.1.45", "timer": "5", "inputs": 0, "x": 55, "y": 620, "wires": [ [ "cd76b440.9b8318" ] ], "l": false }, { "id": "91b09c96.9e4fd", "type": "switch", "z": "ca82e29d.6fe48", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "off", "vt": "str" }, { "t": "neq", "v": "off", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 175, "y": 620, "wires": [ [ "4d2eeb50.5f25f4" ], [ "bfba3e72.58088" ] ], "l": false }, { "id": "cd76b440.9b8318", "type": "change", "z": "ca82e29d.6fe48", "name": "", "rules": [ { "t": "change", "p": "payload", "pt": "msg", "from": "false", "fromt": "bool", "to": "off", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 115, "y": 620, "wires": [ [ "91b09c96.9e4fd" ] ], "l": false }, { "id": "bfba3e72.58088", "type": "change", "z": "ca82e29d.6fe48", "name": "On", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "{\"Active\":1}", "tot": "json" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 235, "y": 660, "wires": [ [ "1dd76156.3e06df" ] ], "l": false }, { "id": "4d2eeb50.5f25f4", "type": "change", "z": "ca82e29d.6fe48", "name": "Off", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "{\"Active\":0}", "tot": "json" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 235, "y": 620, "wires": [ [ "1dd76156.3e06df" ] ], "l": false }, { "id": "16fa428c.84935d", "type": "RM", "z": "ca82e29d.6fe48", "name": "", "device": "634d67a2.f66a68", "action": "_msg_", "remote": "", "button": "", "fix": "", "x": 950, "y": 700, "wires": [ [] ] }, { "id": "99b72bfc.8229d8", "type": "function", "z": "ca82e29d.6fe48", "name": "Вкл/Выкл", "func": "//Insert learning code here\nvar data = [38,0,70,0,148,151,17,57,17,58,17,57,17,20,17,20,17,20,17,20,17,21,17,57,17,57,17,57,17,21,17,20,17,20,17,20,17,20,17,20,17,57,19,19,18,19,17,20,18,19,17,20,18,19,18,57,18,19,18,56,18,56,19,56,18,56,18,56,19,55,19,0,13,5,0,0];\nmsg.payload={\n //\"mac\":\"MAC address of your broadlink rm\",\n //\"host\":\"IP address of your broadlink rm\",\n \"action\":\"send\",\n \"data\":data,\n \"repeat\":2\n};\n\nreturn msg;", "outputs": 1, "noerr": 0, "x": 790, "y": 620, "wires": [ [ "16fa428c.84935d" ] ] }, { "id": "30cbf9b1.474c46", "type": "function", "z": "ca82e29d.6fe48", "name": "HDMI", "func": "//Insert learning code here\nvar data = [38,0,140,0,149,150,17,57,18,57,17,57,17,20,17,20,17,21,17,20,17,20,17,57,17,57,17,58,17,20,17,20,17,20,17,20,17,20,18,57,17,57,17,20,17,57,17,21,18,19,17,20,17,57,17,20,19,18,19,56,18,19,17,57,19,55,18,57,17,20,19,0,6,15,150,149,19,55,19,56,18,56,19,18,19,18,19,18,19,18,19,18,20,55,19,55,19,55,19,18,19,19,19,18,19,18,19,18,19,55,19,56,19,18,19,55,19,18,19,18,19,18,19,56,19,18,19,18,19,55,19,18,19,56,19,55,19,55,19,18,19,0,13,5,0,0,0,0,0,0,0,0,0,0,0,0]\nmsg.payload={\n //\"mac\":\"MAC address of your broadlink rm\",\n //\"host\":\"IP address of your broadlink rm\",\n \"action\":\"send\",\n \"data\":data,\n \"repeat\":2\n};\n\nreturn msg;", "outputs": 1, "noerr": 0, "x": 770, "y": 660, "wires": [ [ "16fa428c.84935d" ] ] }, { "id": "487ae349.09312c", "type": "function", "z": "ca82e29d.6fe48", "name": "Громче", "func": "//Insert learning code here\nvar data = [38,0,140,0,150,149,19,55,19,55,20,55,19,18,19,18,19,18,19,18,20,18,19,55,19,55,19,55,20,17,20,18,19,18,19,18,19,18,19,55,20,54,20,55,19,18,19,18,19,18,19,18,20,18,19,18,19,18,19,18,19,55,19,55,20,55,19,55,19,55,20,0,6,14,151,148,20,55,19,55,19,55,19,18,20,17,20,18,19,18,19,18,19,55,19,55,20,55,19,18,19,18,19,18,19,18,19,18,20,55,19,55,19,55,19,18,20,18,19,18,19,18,19,18,19,18,19,18,19,18,20,55,19,55,19,55,19,55,20,55,19,0,13,5,0,0,0,0,0,0,0,0,0,0,0,0];\nmsg.payload={\n //\"mac\":\"MAC address of your broadlink rm\",\n //\"host\":\"IP address of your broadlink rm\",\n \"action\":\"send\",\n \"data\":data,\n \"repeat\":2\n};\n\nreturn msg;", "outputs": 1, "noerr": 0, "x": 780, "y": 700, "wires": [ [ "16fa428c.84935d" ] ] }, { "id": "4df255b2.d49a8c", "type": "function", "z": "ca82e29d.6fe48", "name": "Тише", "func": "//Insert learning code here\nvar data = [38,0,140,0,151,148,19,55,20,55,19,55,19,18,19,18,19,18,20,18,19,18,19,55,19,55,19,55,20,18,19,18,19,18,19,18,19,18,19,55,20,55,19,18,19,55,19,18,20,17,20,18,19,18,19,18,19,18,19,55,19,18,20,55,19,55,19,55,19,55,20,0,6,15,150,148,20,55,19,55,19,55,20,18,19,18,19,18,19,18,19,18,19,55,20,55,19,55,19,18,19,18,19,18,19,18,20,18,19,55,19,55,19,18,19,55,20,18,19,18,19,18,19,18,19,18,19,18,20,55,19,18,19,55,19,55,20,55,19,55,19,0,13,5,0,0,0,0,0,0,0,0,0,0,0,0];\nmsg.payload={\n //\"mac\":\"MAC address of your broadlink rm\",\n //\"host\":\"IP address of your broadlink rm\",\n \"action\":\"send\",\n \"data\":data,\n \"repeat\":2\n};\n\nreturn msg;", "outputs": 1, "noerr": 0, "x": 770, "y": 740, "wires": [ [ "16fa428c.84935d" ] ] }, { "id": "1dd76156.3e06df", "type": "function", "z": "ca82e29d.6fe48", "name": "SW_On > HK_On", "func": "var Out_Data = {};\nOut_Data.Active = 0;\n\nif (msg.payload.Active === 1 )\n{\n Out_Data.Active = 1;\n}\nelse\n{\n Out_Data.Active = 0;\n}\nmsg.payload = Out_Data;\n\nreturn msg;\n", "outputs": 1, "noerr": 0, "x": 375, "y": 620, "wires": [ [ "8adfb1d7.71a23" ] ], "l": false }, { "id": "c7a07938.152b18", "type": "function", "z": "ca82e29d.6fe48", "name": "HK_On > SW_On", "func": "var Out_Msg;\nif (typeof(msg.hap.newValue) != \"undefined\" && msg.hap.newValue !== null)\n{\n if (msg.payload.Active === 1)\n {\n Out_Msg = { payload: 1 };\n }\n else\n {\n Out_Msg = { payload: 0 };\n }\n}\n\nreturn [Out_Msg];", "outputs": 1, "noerr": 0, "x": 675, "y": 620, "wires": [ [ "99b72bfc.8229d8" ] ], "l": false }, { "id": "102e9caa.ee0163", "type": "switch", "z": "ca82e29d.6fe48", "name": "", "property": "payload.Active", "propertyType": "msg", "rules": [ { "t": "eq", "v": "1", "vt": "num" }, { "t": "eq", "v": "0", "vt": "num" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 615, "y": 620, "wires": [ [ "c7a07938.152b18" ], [ "c7a07938.152b18" ] ], "l": false }, { "id": "e7e5b264.8234f", "type": "homekit-bridge", "z": "", "bridgeName": "homever.ru", "pinCode": "111-11-111", "port": "", "allowInsecureRequest": false, "manufacturer": "homever", "model": "https://t.me/homever_meet", "serialNo": "https://homever.ru", "customMdnsConfig": false, "mdnsMulticast": true, "mdnsInterface": "", "mdnsPort": "", "mdnsIp": "", "mdnsTtl": "", "mdnsLoopback": true, "mdnsReuseAddr": true, "allowMessagePassthrough": true }, { "id": "634d67a2.f66a68", "type": "rmdevice", "z": "", "folder": "D:/SharedData", "mac": "34ea3442ca56", "host": "10.1.1.52", "devType": "272a" } ]