Advertisement
Guest User

Untitled

a guest
Jan 30th, 2021
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.27 KB | None | 0 0
  1. [{"id":"35059283.c9d7ee","type":"tab","label":"Пылесос","disabled":false,"info":""},{"id":"103916c1.7499f9","type":"homekit-service","z":"35059283.c9d7ee","isParent":true,"bridge":"99b8068c.509ad8","parentService":"","name":"Коридор","serviceName":"Switch","topic":"","filter":false,"manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","firmwareRev":"","hardwareRev":"","softwareRev":"","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":420,"y":120,"wires":[["56015a2b.369014"],[]]},{"id":"2fc9747c.3d9fbc","type":"homekit-service","z":"35059283.c9d7ee","isParent":false,"bridge":"","parentService":"103916c1.7499f9","name":"Спальня","serviceName":"Switch","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":"{}","outputs":2,"x":420,"y":160,"wires":[["56015a2b.369014"],[]]},{"id":"516b5cdd.e4d7c4","type":"homekit-service","z":"35059283.c9d7ee","isParent":false,"bridge":"","parentService":"103916c1.7499f9","name":"Зал","serviceName":"Switch","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":"{}","outputs":2,"x":410,"y":200,"wires":[["56015a2b.369014"],[]]},{"id":"a6a251b0.59ea5","type":"homekit-service","z":"35059283.c9d7ee","isParent":false,"bridge":"","parentService":"103916c1.7499f9","name":"Детская","serviceName":"Switch","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":"{}","outputs":2,"x":420,"y":240,"wires":[["56015a2b.369014"],[]]},{"id":"5b76735a.22957c","type":"homekit-service","z":"35059283.c9d7ee","isParent":false,"bridge":"","parentService":"103916c1.7499f9","name":"Ванная","serviceName":"Switch","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":"{}","outputs":2,"x":420,"y":320,"wires":[["56015a2b.369014"],[]]},{"id":"a60fd4b8.110168","type":"homekit-service","z":"35059283.c9d7ee","isParent":false,"bridge":"","parentService":"103916c1.7499f9","name":"Прихожка","serviceName":"Switch","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":"{}","outputs":2,"x":430,"y":360,"wires":[["56015a2b.369014"],[]]},{"id":"d2ab705f.d2a6d","type":"homekit-service","z":"35059283.c9d7ee","isParent":false,"bridge":"","parentService":"103916c1.7499f9","name":"Кухня","serviceName":"Switch","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":"{}","outputs":2,"x":410,"y":400,"wires":[["56015a2b.369014"],[]]},{"id":"2bc2b2bf.a095ae","type":"homekit-service","z":"35059283.c9d7ee","isParent":false,"bridge":"","parentService":"103916c1.7499f9","name":"Домой","serviceName":"Switch","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":"{}","outputs":2,"x":410,"y":440,"wires":[["56015a2b.369014"],[]]},{"id":"9feb7acd.659da8","type":"homekit-service","z":"35059283.c9d7ee","isParent":false,"bridge":"","parentService":"103916c1.7499f9","name":"Столовая","serviceName":"Switch","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":"{}","outputs":2,"x":420,"y":280,"wires":[["56015a2b.369014"],[]]},{"id":"76fd4586.32b23c","type":"homekit-service","z":"35059283.c9d7ee","isParent":false,"bridge":"","parentService":"103916c1.7499f9","name":"Старт","serviceName":"Switch","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":"{}","outputs":2,"x":410,"y":480,"wires":[["56015a2b.369014"],[]]},{"id":"330cc7b5.020c08","type":"homekit-service","z":"35059283.c9d7ee","isParent":false,"bridge":"","parentService":"103916c1.7499f9","name":"Отмена","serviceName":"Switch","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":"{}","outputs":2,"x":420,"y":520,"wires":[["56015a2b.369014"],[]]},{"id":"5d5a1bee.5f9164","type":"link out","z":"35059283.c9d7ee","name":"off_out","links":["39efb7ea.e6d6f8"],"x":855,"y":340,"wires":[]},{"id":"39efb7ea.e6d6f8","type":"link in","z":"35059283.c9d7ee","name":"off_in","links":["5d5a1bee.5f9164"],"x":255,"y":340,"wires":[["103916c1.7499f9","2fc9747c.3d9fbc","516b5cdd.e4d7c4","a6a251b0.59ea5","9feb7acd.659da8","5b76735a.22957c","a60fd4b8.110168","d2ab705f.d2a6d","2bc2b2bf.a095ae","76fd4586.32b23c","330cc7b5.020c08"]]},{"id":"33de81cc.ad56ce","type":"miio-roborock-command","z":"35059283.c9d7ee","name":"Убока комнат","server":"35058b5f.7d93b4","command_name":"► Старт уборку комнаты","command":"app_segment_clean","commandType":"vacuum_cmd","payload":"payload","payloadType":"msg","coordinates":"","fan_speed":100,"voice_pack":null,"homekit_stop_to_dock":false,"x":820,"y":300,"wires":[[]]},{"id":"ce4ada1.0254128","type":"miio-roborock-command","z":"35059283.c9d7ee","name":"","server":"35058b5f.7d93b4","command_name":"◼ Стоп & Док","command":"app_stop_dock","commandType":"vacuum_cmd","payload":"payload","payloadType":"msg","coordinates":"","fan_speed":100,"voice_pack":null,"homekit_stop_to_dock":false,"x":820,"y":380,"wires":[[]]},{"id":"56015a2b.369014","type":"function","z":"35059283.c9d7ee","name":"To robot","func":"let roomSet = {\"Коридор\":21, \"Спальня\":22, \"Зал\":19, \n \"Детская\":24, \"Столовая\":20, \"Ванная\":16, \n \"Прихожка\":23,\"Кухня\":17};\n\nswitch(msg.name) {\n case 'Старт':\n startClean();\n flow.set (\"rooms\", []);\n return [null,{\"payload\":{\"On\":false}},null];\n case 'Домой':\n flow.set (\"rooms\", []);\n return [null,{\"payload\":{\"On\":false}},{\"payload\":true}];\n case 'Отмена':\n flow.set (\"rooms\", []);\n return [null,{\"payload\":{\"On\":false}},null];\n default:\n if (msg.payload.On) {\n addRoom(roomSet[msg.name]);\n } else {\n removeRoom(roomSet[msg.name]) ;\n }\n return;\n}\n\nfunction addRoom (roomId) {\n let rooms = flow.get(\"rooms\");\n if (!rooms) {\n flow.set(\"rooms\", [roomId]);\n } else {\n rooms.push(roomId); \n }\n} \n\nfunction removeRoom (roomId) {\n let rooms = flow.get(\"rooms\");\n if (rooms) {\n rooms.splice(rooms.indexOf(roomId),1);\n }\n}\n\nfunction startClean() {\n let rooms = flow.get(\"rooms\");\n node.send([{\"payload\":rooms},null,null]);\n}\n","outputs":3,"noerr":0,"initialize":"","finalize":"","x":640,"y":340,"wires":[["33de81cc.ad56ce"],["dbc34c22.1fd0f"],["ce4ada1.0254128"]]},{"id":"dbc34c22.1fd0f","type":"delay","z":"35059283.c9d7ee","name":"delay","pauseType":"delay","timeout":"100","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":770,"y":340,"wires":[["5d5a1bee.5f9164"]]},{"id":"99b8068c.509ad8","type":"homekit-bridge","z":"","bridgeName":"Home","pinCode":"111-11-111","port":"","allowInsecureRequest":false,"manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","customMdnsConfig":false,"mdnsMulticast":true,"mdnsInterface":"","mdnsPort":"","mdnsIp":"","mdnsTtl":"","mdnsLoopback":true,"mdnsReuseAddr":true,"allowMessagePassthrough":false},{"id":"35058b5f.7d93b4","type":"miio-roborock-server","z":"","name":"test","ip":"192.168.1.6","token":"75525666477457757a646b4a45747175 ","polling":"10"}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement