iRidiumNRCHKB tested flows
Tested flows for NRCHKB and Iridium
[{"id":"6ab27bdb74a7eda6","type":"tab","label":"Flow 4","disabled":false,"info":"","env":[]},{"id":"19ed880872d74c19","type":"comment","z":"6ab27bdb74a7eda6","name":"Рабочие схемы","info":"","x":460,"y":20,"wires":[],"icon":"node-red/cog.svg"},{"id":"5c8ff3c2ebd485b5","type":"homekit-service","z":"6ab27bdb74a7eda6","isParent":true,"hostType":"0","bridge":"b67765ced5f88e40","accessoryId":"","parentService":"","name":"Active 1/0","serviceName":"AccessoryMetrics","topic":"Acces code","filter":false,"manufacturer":"NRCHKB","model":"1.5.0","serialNo":"Default Serial Number","firmwareRev":"1.5.0","hardwareRev":"1.5.0","softwareRev":"1.5.0","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":"{}","waitForSetupMsg":false,"outputs":2,"x":360,"y":440,"wires":[["62ae2f719ec05b9c"],[]]},{"id":"62ae2f719ec05b9c","type":"debug","z":"6ab27bdb74a7eda6","name":"debug 17","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":500,"y":440,"wires":[]},{"id":"d8a6bb1deb13c326","type":"comment","z":"6ab27bdb74a7eda6","name":"Accessory metrics???","info":"\"Instead of 'foo' try one of \nthese characteristics: \n'Name', 'Active', 'MetricsBufferFullState', \n'SupportedMetrics'\"\n","x":480,"y":320,"wires":[],"icon":"node-red-contrib-homekit-bridged/nrchkb.png"},{"id":"14e3100c9d53ba77","type":"inject","z":"6ab27bdb74a7eda6","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":90,"y":460,"wires":[["120eed0a7946d4dc"]]},{"id":"12aa28666e4ed94a","type":"inject","z":"6ab27bdb74a7eda6","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":90,"y":420,"wires":[["120eed0a7946d4dc"]]},{"id":"120eed0a7946d4dc","type":"switch","z":"6ab27bdb74a7eda6","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":210,"y":440,"wires":[["3b65c8419b9b190f"],["f1f90f1e740762a0"]]},{"id":"3b65c8419b9b190f","type":"change","z":"6ab27bdb74a7eda6","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"Active\": 1}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":380,"wires":[["5c8ff3c2ebd485b5"]]},{"id":"f1f90f1e740762a0","type":"change","z":"6ab27bdb74a7eda6","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"Active\": 0}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":500,"wires":[["5c8ff3c2ebd485b5"]]},{"id":"19a1bd10ebb0ca53","type":"homekit-service","z":"6ab27bdb74a7eda6","isParent":true,"hostType":"0","bridge":"b67765ced5f88e40","accessoryId":"","parentService":"","name":"Name \"string\" ","serviceName":"AccessoryMetrics","topic":"Acces code","filter":false,"manufacturer":"NRCHKB","model":"1.5.0","serialNo":"Default Serial Number","firmwareRev":"1.5.0","hardwareRev":"1.5.0","softwareRev":"1.5.0","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":"{}","waitForSetupMsg":false,"outputs":2,"x":980,"y":440,"wires":[["075a288067280d3b"],[]]},{"id":"075a288067280d3b","type":"debug","z":"6ab27bdb74a7eda6","name":"debug 18","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1160,"y":440,"wires":[]},{"id":"eb4dcd2aa53abd37","type":"inject","z":"6ab27bdb74a7eda6","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":690,"y":460,"wires":[["874ad32f3adc5c34"]]},{"id":"91b4112809d15898","type":"inject","z":"6ab27bdb74a7eda6","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":690,"y":420,"wires":[["874ad32f3adc5c34"]]},{"id":"874ad32f3adc5c34","type":"switch","z":"6ab27bdb74a7eda6","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":810,"y":440,"wires":[["6ef2ad03f63b0269"],["33ee6a5ee32ca322"]]},{"id":"6ef2ad03f63b0269","type":"change","z":"6ab27bdb74a7eda6","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"Name\": \"Steve\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":920,"y":380,"wires":[["19a1bd10ebb0ca53"]]},{"id":"33ee6a5ee32ca322","type":"change","z":"6ab27bdb74a7eda6","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"Name\": \"Jobs\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":920,"y":500,"wires":[["19a1bd10ebb0ca53"]]},{"id":"08210bf8425f3768","type":"homekit-service","z":"6ab27bdb74a7eda6","isParent":true,"hostType":"0","bridge":"b67765ced5f88e40","accessoryId":"","parentService":"","name":"Name \"string\" ","serviceName":"AccessoryMetrics","topic":"Acces code","filter":false,"manufacturer":"NRCHKB","model":"1.5.0","serialNo":"Default Serial Number","firmwareRev":"1.5.0","hardwareRev":"1.5.0","softwareRev":"1.5.0","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":"{}","waitForSetupMsg":false,"outputs":2,"x":1620,"y":440,"wires":[["1bbc93d4273fd6d4"],[]]},{"id":"1bbc93d4273fd6d4","type":"debug","z":"6ab27bdb74a7eda6","name":"debug 19","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1800,"y":440,"wires":[]},{"id":"5cd28e251054b41c","type":"inject","z":"6ab27bdb74a7eda6","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":1330,"y":460,"wires":[["82da591d6708841d"]]},{"id":"0827ab730924338b","type":"inject","z":"6ab27bdb74a7eda6","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":1330,"y":420,"wires":[["82da591d6708841d"]]},{"id":"82da591d6708841d","type":"switch","z":"6ab27bdb74a7eda6","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":1450,"y":440,"wires":[["45bbd0626ff8525b"],["21b024e8c060a743"]]},{"id":"45bbd0626ff8525b","type":"change","z":"6ab27bdb74a7eda6","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"Name\": \"Steve\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":1560,"y":380,"wires":[["08210bf8425f3768"]]},{"id":"21b024e8c060a743","type":"change","z":"6ab27bdb74a7eda6","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"Name\": \"Jobs\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":1560,"y":500,"wires":[["08210bf8425f3768"]]},{"id":"4d6fc6080694294a","type":"homekit-service","z":"6ab27bdb74a7eda6","isParent":true,"hostType":"0","bridge":"b67765ced5f88e40","accessoryId":"","parentService":"","name":"Leak sensor","serviceName":"LeakSensor","topic":"","filter":false,"manufacturer":"NRCHKB","model":"1.5.0","serialNo":"Default Serial Number","firmwareRev":"1.5.0","hardwareRev":"1.5.0","softwareRev":"1.5.0","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":"","waitForSetupMsg":false,"outputs":2,"x":370,"y":200,"wires":[["c0bc18e6cb8f7230"],[]]},{"id":"c0bc18e6cb8f7230","type":"debug","z":"6ab27bdb74a7eda6","name":"debug 16","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":520,"y":200,"wires":[]},{"id":"c75575bfdadd69e4","type":"inject","z":"6ab27bdb74a7eda6","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":90,"y":180,"wires":[["1a02bb560d7c0c38"]]},{"id":"a6654ae95973aa7e","type":"comment","z":"6ab27bdb74a7eda6","name":"Датчик протечки","info":"","x":460,"y":80,"wires":[],"icon":"node-red-contrib-homekit-bridged/nrchkb.png"},{"id":"1a02bb560d7c0c38","type":"switch","z":"6ab27bdb74a7eda6","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":210,"y":200,"wires":[["fec29bb8f5c1c116"],["83f12afda48b52a7"]]},{"id":"fec29bb8f5c1c116","type":"change","z":"6ab27bdb74a7eda6","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"LeakDetected\": 1}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":140,"wires":[["4d6fc6080694294a"]]},{"id":"83f12afda48b52a7","type":"change","z":"6ab27bdb74a7eda6","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"LeakDetected\": 0}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":260,"wires":[["4d6fc6080694294a"]]},{"id":"c79d9087137c81c9","type":"inject","z":"6ab27bdb74a7eda6","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":90,"y":220,"wires":[["1a02bb560d7c0c38"]]},{"id":"96b8bc4cd1bb1886","type":"inject","z":"6ab27bdb74a7eda6","d":true,"name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"foo\":\"bar\"}","payloadType":"json","x":110,"y":60,"wires":[[]]},{"id":"f0f6f91db47f8ec7","type":"homekit-service","z":"6ab27bdb74a7eda6","isParent":true,"hostType":"0","bridge":"b67765ced5f88e40","accessoryId":"","parentService":"","name":"Fan","serviceName":"Fan","topic":"","filter":false,"manufacturer":"NRCHKB","model":"1.5.0","serialNo":"Default Serial Number","firmwareRev":"1.5.0","hardwareRev":"1.5.0","softwareRev":"1.5.0","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":"{\"RotationSpeed\":{\"minValue\":0,\"maxValue\":3}}","waitForSetupMsg":false,"outputs":2,"x":350,"y":700,"wires":[["9ddc906f8e39abf4"],[]]},{"id":"9ddc906f8e39abf4","type":"debug","z":"6ab27bdb74a7eda6","name":"debug 20","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":520,"y":700,"wires":[]},{"id":"dbd4a37f1f1f86e1","type":"inject","z":"6ab27bdb74a7eda6","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"1","payloadType":"num","x":90,"y":680,"wires":[["eb96fc7fd3b4c5fa"]]},{"id":"025eccf0b8b4b2f2","type":"comment","z":"6ab27bdb74a7eda6","name":"Fan","info":"\"Instead of 'foo' try one of these characteristics: 'Name', 'On', 'RotationDirection', 'RotationSpeed'\"","x":430,"y":580,"wires":[],"icon":"node-red-contrib-homekit-bridged/nrchkb.png"},{"id":"eb96fc7fd3b4c5fa","type":"switch","z":"6ab27bdb74a7eda6","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":210,"y":700,"wires":[["e41a3dafe46a1277"],["fd2597b7fc8cd5de"]]},{"id":"e41a3dafe46a1277","type":"change","z":"6ab27bdb74a7eda6","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"RotationSpeed\": 1}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":640,"wires":[["f0f6f91db47f8ec7"]]},{"id":"fd2597b7fc8cd5de","type":"change","z":"6ab27bdb74a7eda6","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"On\": 0}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":320,"y":760,"wires":[["f0f6f91db47f8ec7"]]},{"id":"8c45fe90ba36ea00","type":"inject","z":"6ab27bdb74a7eda6","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":90,"y":720,"wires":[["eb96fc7fd3b4c5fa"]]},{"id":"a6da406a39807772","type":"inject","z":"6ab27bdb74a7eda6","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"foo\":\"bar\"}","payloadType":"json","x":90,"y":820,"wires":[["5ff54c5cf81ab707"]]},{"id":"5ff54c5cf81ab707","type":"homekit-service","z":"6ab27bdb74a7eda6","isParent":true,"hostType":"0","bridge":"b67765ced5f88e40","accessoryId":"","parentService":"","name":"fan","serviceName":"Fan","topic":"","filter":false,"manufacturer":"NRCHKB","model":"1.5.0","serialNo":"Default Serial Number","firmwareRev":"1.5.0","hardwareRev":"1.5.0","softwareRev":"1.5.0","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":"","waitForSetupMsg":false,"outputs":2,"x":250,"y":820,"wires":[["d0cbf29797e9ca6c"],[]]},{"id":"d0cbf29797e9ca6c","type":"debug","z":"6ab27bdb74a7eda6","name":"debug 21","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":440,"y":820,"wires":[]},{"id":"aa1faf3090e6c9eb","type":"homekit-service","z":"6ab27bdb74a7eda6","isParent":true,"hostType":"0","bridge":"e9f3fa8b7462787d","accessoryId":"","parentService":"","name":"Fan","serviceName":"Fan","topic":"","filter":false,"manufacturer":"NRCHKB","model":"1.4.2","serialNo":"Default Serial Number","firmwareRev":"1.4.2","hardwareRev":"1.4.2","softwareRev":"1.4.2","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":"{\"RotationDirection\":{\"minValue\":0,\"maxValue\":1},\"RotationSpeed\":{\"minValue\":0,\"maxValue\":100}}","waitForSetupMsg":false,"outputs":2,"x":870,"y":660,"wires":[[],[]]},{"id":"59a361abea7aea2f","type":"inject","z":"6ab27bdb74a7eda6","name":"On","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"On\":1}","payloadType":"json","x":710,"y":640,"wires":[["aa1faf3090e6c9eb"]]},{"id":"0382dea58d8018b5","type":"inject","z":"6ab27bdb74a7eda6","name":"Off","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"On\":0}","payloadType":"json","x":710,"y":680,"wires":[["aa1faf3090e6c9eb"]]},{"id":"5ba00bd17b9f52a0","type":"inject","z":"6ab27bdb74a7eda6","name":"Clockwise","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"RotationDirection\":0}","payloadType":"json","x":700,"y":740,"wires":[["aa1faf3090e6c9eb"]]},{"id":"4f79bd95a92c7ab5","type":"inject","z":"6ab27bdb74a7eda6","name":"Counter Clockwise","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"RotationDirection\":1}","payloadType":"json","x":670,"y":780,"wires":[["aa1faf3090e6c9eb"]]},{"id":"d5f49da1ae0434e1","type":"inject","z":"6ab27bdb74a7eda6","name":"RotationSpeed 50%","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"RotationSpeed\":50}","payloadType":"json","x":670,"y":840,"wires":[["aa1faf3090e6c9eb"]]},{"id":"ef197d4c25350e50","type":"inject","z":"6ab27bdb74a7eda6","name":"RotationSpeed 100%","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"RotationSpeed\":100}","payloadType":"json","x":660,"y":880,"wires":[["aa1faf3090e6c9eb"]]},{"id":"959d36cd55803ce6","type":"mqtt in","z":"6ab27bdb74a7eda6","name":"","topic":"prachkaled","qos":"2","datatype":"auto-detect","broker":"0bfcecc77a5edc43","nl":false,"rap":true,"rh":0,"inputs":0,"x":120,"y":1040,"wires":[["84df6e20b04741da"]]},{"id":"84df6e20b04741da","type":"switch","z":"6ab27bdb74a7eda6","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"0","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":270,"y":1040,"wires":[["ced64a20318d13fa"],["961f66565d6e4aec"]]},{"id":"961f66565d6e4aec","type":"change","z":"6ab27bdb74a7eda6","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"On\": \"false\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":1080,"wires":[["cbdb18569d41a550"]]},{"id":"cbdb18569d41a550","type":"homekit-service","z":"6ab27bdb74a7eda6","isParent":true,"hostType":"0","bridge":"6900f1bfb4866b7e","accessoryId":"","parentService":"","name":"Подсветка","serviceName":"Lightbulb","topic":"","filter":false,"manufacturer":"NRCHKB","model":"1.5.0","serialNo":"Default Serial Number","firmwareRev":"1.5.0","hardwareRev":"1.5.0","softwareRev":"1.5.0","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":"{}","waitForSetupMsg":false,"outputs":2,"x":450,"y":1040,"wires":[["f4e9d3dd48e3c0c3","bf8c45482b5c33c5"],[]]},{"id":"ced64a20318d13fa","type":"change","z":"6ab27bdb74a7eda6","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"On\": \"true\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":1000,"wires":[["cbdb18569d41a550"]]},{"id":"9d200291b83f9ce6","type":"mqtt out","z":"6ab27bdb74a7eda6","name":"","topic":"prachkaledfb","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"0bfcecc77a5edc43","x":750,"y":1040,"wires":[]},{"id":"f4e9d3dd48e3c0c3","type":"debug","z":"6ab27bdb74a7eda6","name":"debug 27","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":660,"y":1000,"wires":[]},{"id":"bf8c45482b5c33c5","type":"function","z":"6ab27bdb74a7eda6","name":"function 5","func":"if (msg.hap.session) {\n // Do stuff if it's from HomeKit\n msg.payload = msg.payload.On?1:0;\n return msg;\n} else {\n // Do different stuff if it's not from HomeKit\n return;\n}","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":580,"y":1080,"wires":[["9d200291b83f9ce6"]]},{"id":"ba8c9b7a2a1f46f2","type":"comment","z":"6ab27bdb74a7eda6","name":"прачка подсветка","info":"","x":150,"y":1000,"wires":[]},{"id":"19aebbcd9397469e","type":"comment","z":"6ab27bdb74a7eda6","name":"лампа от Никиты","info":"","x":470,"y":940,"wires":[],"icon":"node-red-contrib-homekit-bridged/nrchkb.png"},{"id":"59c62d1462554abc","type":"hikvisionUltimateDoorbell","z":"6ab27bdb74a7eda6","name":"","topic":"faceid","server":"499a13873f7bee30","ringStatus":"all","floorNo":"all","unitNo":"all","zoneNo":"all","buildingNo":"all","x":360,"y":1260,"wires":[["f5258d7f49a78900","bbdd0bcbdcec7542"],[]]},{"id":"088d01e4278cf987","type":"mqtt out","z":"6ab27bdb74a7eda6","name":"","topic":"callfromfacied","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"0bfcecc77a5edc43","x":640,"y":1260,"wires":[]},{"id":"f5258d7f49a78900","type":"debug","z":"6ab27bdb74a7eda6","name":"debug 28","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":560,"y":1340,"wires":[]},{"id":"bbdd0bcbdcec7542","type":"change","z":"6ab27bdb74a7eda6","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":480,"y":1180,"wires":[["088d01e4278cf987"]]},{"id":"6a875ce827b30d38","type":"inject","z":"6ab27bdb74a7eda6","name":"Open Door","props":[{"p":"openDoor","v":"1","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":180,"y":1220,"wires":[[]]},{"id":"d5440271975d61d0","type":"mqtt in","z":"6ab27bdb74a7eda6","name":"","topic":"opendoor","qos":"2","datatype":"auto-detect","broker":"0bfcecc77a5edc43","nl":false,"rap":true,"rh":0,"inputs":0,"x":140,"y":1340,"wires":[["807d7b3dd215a6ee"]]},{"id":"807d7b3dd215a6ee","type":"function","z":"6ab27bdb74a7eda6","name":"function 7","func":"msg.openDoor = 1; // Pass the door number to open as value, in this case, 1.\nreturn msg;","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":320,"y":1340,"wires":[["59c62d1462554abc"]]},{"id":"5a6e9a07888c5b21","type":"comment","z":"6ab27bdb74a7eda6","name":"hikvision doorbel face id","info":"","x":480,"y":1140,"wires":[],"icon":"node-red-contrib-homekit-bridged/nrchkb.png"},{"id":"b67765ced5f88e40","type":"homekit-bridge","bridgeName":"MYBRIDGE","pinCode":"078-03-703","port":"","advertiser":"bonjour-hap","allowInsecureRequest":false,"manufacturer":"NRCHKB","model":"1.5.0","serialNo":"Default Serial Number","firmwareRev":"1.5.0","hardwareRev":"1.5.0","softwareRev":"1.5.0","customMdnsConfig":false,"mdnsMulticast":true,"mdnsInterface":"","mdnsPort":"","mdnsIp":"","mdnsTtl":"","mdnsLoopback":true,"mdnsReuseAddr":true,"allowMessagePassthrough":true},{"id":"e9f3fa8b7462787d","type":"homekit-bridge","bridgeName":"Bridge Node-RED","pinCode":"605-37-162","port":"","advertiser":"bonjour-hap","allowInsecureRequest":false,"manufacturer":"NRCHKB","model":"1.4.3","serialNo":"Default Serial Number","firmwareRev":"1.4.3","hardwareRev":"1.4.3","softwareRev":"1.4.3","customMdnsConfig":false,"mdnsMulticast":true,"mdnsInterface":"","mdnsPort":"","mdnsIp":"","mdnsTtl":"","mdnsLoopback":true,"mdnsReuseAddr":true,"allowMessagePassthrough":true},{"id":"0bfcecc77a5edc43","type":"mqtt-broker","name":"iRidium Server","broker":"127.0.0.1","port":"1883","clientid":"","autoConnect":true,"usetls":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"autoUnsubscribe":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willRetain":"false","willPayload":"","willMsg":{},"userProps":"","sessionExpiry":""},{"id":"6900f1bfb4866b7e","type":"homekit-bridge","bridgeName":"AkayBridge","pinCode":"953-97-275","port":"","advertiser":"bonjour-hap","allowInsecureRequest":false,"manufacturer":"NRCHKB","model":"1.5.0","serialNo":"Default Serial Number","firmwareRev":"1.5.0","hardwareRev":"1.5.0","softwareRev":"1.5.0","customMdnsConfig":false,"mdnsMulticast":true,"mdnsInterface":"","mdnsPort":"","mdnsIp":"","mdnsTtl":"","mdnsLoopback":true,"mdnsReuseAddr":true,"allowMessagePassthrough":true},{"id":"499a13873f7bee30","type":"Doorbell-config","host":"192.168.68.74","port":"80","name":"Access Controller","authentication":"digest","protocol":"http","heartbeattimerdisconnectionlimit":1,"deviceinfo":"{\"?xml\":\"\",\"DeviceInfo\":{\"deviceName\":\"Access Controller\",\"deviceID\":255,\"model\":\"DS-K1T341CMF\",\"serialNumber\":\"DS-K1T341CMF20220531V030308ENK99823187\",\"macAddress\":\"BC:9B:5E:3D:16:88\",\"firmwareVersion\":\"V3.3.8\",\"firmwareReleasedDate\":\"build 220531\",\"encoderVersion\":\"V1.0\",\"encoderReleasedDate\":\"build 191119\",\"deviceType\":\"ACS\",\"telecontrolID\":1,\"supportBeep\":false,\"localZoneNum\":0,\"alarmOutNum\":0,\"electroLockNum\":1,\"RS485Num\":1,\"manufacturer\":\"hikvision\",\"OEMCode\":1,\"marketType\":2}}"}]