Registrieren Sie sich jetzt!
[{"id":"aca4b72a.6097f8","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"c55455be.2116b8","type":"mqtt in","z":"aca4b72a.6097f8","name":"Out light0.state","topic":"light0.state","qos":"2","datatype":"auto","broker":"19b1cf3c.cca461","x":160,"y":260,"wires":[["59bb5972.65de68"]]},{"id":"8a61a674.1639a8","type":"mqtt in","z":"aca4b72a.6097f8","name":"Out light1.state","topic":"light1.state","qos":"2","datatype":"auto","broker":"19b1cf3c.cca461","x":160,"y":300,"wires":[["a6779057.41c76"]]},{"id":"a6779057.41c76","type":"function","z":"aca4b72a.6097f8","name":"Change Var","func":"if (msg.payload === \"false\")\n{\n msg.payload = {\"On\" : false}\n return msg;\n}\n\nif (msg.payload === \"true\")\n{\n msg.payload = {\"On\" : true}\n return msg;\n}","outputs":1,"noerr":0,"x":350,"y":300,"wires":[["65fff662.3705c8"]]},{"id":"59bb5972.65de68","type":"function","z":"aca4b72a.6097f8","name":"Change Var","func":"if (msg.payload === \"false\")\n{\n msg.payload = {\"On\" : false}\n return msg;\n}\n\nif (msg.payload === \"true\")\n{\n msg.payload = {\"On\" : true}\n return msg;\n}","outputs":1,"noerr":0,"x":350,"y":260,"wires":[["adb4e242.254cf"]]},{"id":"bb818b47.70e7b8","type":"homekit-service","z":"aca4b72a.6097f8","isParent":true,"bridge":"efa185ba.788f18","accessoryCategory":"OTHER","parentService":"","name":"Wohnzimmer Licht","serviceName":"Lightbulb","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","characteristicProperties":"{\"On\":true}","x":650,"y":260,"wires":[["79d86c57.814364"],[]]},{"id":"1ab26309.eb668d","type":"function","z":"aca4b72a.6097f8","name":"Homekit2MQTT","func":"return {payload :msg.payload.On};","outputs":1,"noerr":0,"x":1060,"y":300,"wires":[["368e57.dcd0e1aa"]]},{"id":"368e57.dcd0e1aa","type":"mygekko_light","z":"aca4b72a.6097f8","name":"Esszimmer Licht","itemid":"item1","server":"48574e42.32ce6","alexa_home_input":false,"x":1240,"y":300,"wires":[[]]},{"id":"65fff662.3705c8","type":"rbe","z":"aca4b72a.6097f8","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":490,"y":300,"wires":[["2d2f2e40.820e62"]]},{"id":"adb4e242.254cf","type":"rbe","z":"aca4b72a.6097f8","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":490,"y":260,"wires":[["bb818b47.70e7b8"]]},{"id":"f6ede498.f68518","type":"mygekko_light","z":"aca4b72a.6097f8","name":"Wohnzimmer Licht","itemid":"item0","server":"48574e42.32ce6","alexa_home_input":false,"x":1250,"y":260,"wires":[[]]},{"id":"2d2f2e40.820e62","type":"homekit-service","z":"aca4b72a.6097f8","isParent":true,"bridge":"efa185ba.788f18","accessoryCategory":"OTHER","parentService":"","name":"Esszimmer Licht","serviceName":"Lightbulb","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","characteristicProperties":"{\"On\":true}","x":640,"y":300,"wires":[["ef06fb7c.aaab98"],[]]},{"id":"79d86c57.814364","type":"switch","z":"aca4b72a.6097f8","name":"HomeKit Triggered?","property":"hap.context","propertyType":"msg","rules":[{"t":"nnull"}],"checkall":"true","repair":false,"outputs":1,"x":860,"y":260,"wires":[["31dda996.595e66"]]},{"id":"31dda996.595e66","type":"function","z":"aca4b72a.6097f8","name":"Homekit2MQTT","func":"return {payload :msg.payload.On};","outputs":1,"noerr":0,"x":1060,"y":260,"wires":[["f6ede498.f68518"]]},{"id":"ef06fb7c.aaab98","type":"switch","z":"aca4b72a.6097f8","name":"HomeKit Triggered?","property":"hap.context","propertyType":"msg","rules":[{"t":"nnull"}],"checkall":"true","repair":false,"outputs":1,"x":860,"y":300,"wires":[["1ab26309.eb668d"]]},{"id":"a281b552.c4e478","type":"function","z":"aca4b72a.6097f8","name":"Light 0","func":"if (msg.payload.queryapi.lights.item0.sumstate.value.split(\";\")[0] === \"1\")\n{\n msg.payload = true; \n return msg;\n}\nelse if (msg.payload.queryapi.lights.item0.sumstate.value.split(\";\")[0] === \"0\")\n{\n msg.payload = false; \n return msg;\n}\n\n\n","outputs":1,"noerr":0,"x":350,"y":100,"wires":[["de6a68ec.9c9e98"]]},{"id":"7e6ed0d6.05933","type":"function","z":"aca4b72a.6097f8","name":"Light 1","func":"if (msg.payload.queryapi.lights.item1.sumstate.value.split(\";\")[0] === \"1\")\n{\n msg.payload = true; \n return msg;\n}\nelse if (msg.payload.queryapi.lights.item1.sumstate.value.split(\";\")[0] === \"0\")\n{\n msg.payload = false; \n return msg;\n}\n\n\n","outputs":1,"noerr":0,"x":350,"y":140,"wires":[["34fc65c8.718b2a"]]},{"id":"34fc65c8.718b2a","type":"rbe","z":"aca4b72a.6097f8","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":470,"y":140,"wires":[["9dbb8c01.55fcb"]]},{"id":"de6a68ec.9c9e98","type":"rbe","z":"aca4b72a.6097f8","name":"","func":"rbe","gap":"","start":"","inout":"out","property":"payload","x":470,"y":100,"wires":[["71fc360.4cf7dcc"]]},{"id":"71fc360.4cf7dcc","type":"mqtt out","z":"aca4b72a.6097f8","name":"light0.state","topic":"light0.state","qos":"0","retain":"false","broker":"19b1cf3c.cca461","x":610,"y":100,"wires":[]},{"id":"9dbb8c01.55fcb","type":"mqtt out","z":"aca4b72a.6097f8","name":"light1.state","topic":"light1.state","qos":"0","retain":"false","broker":"19b1cf3c.cca461","x":610,"y":140,"wires":[]},{"id":"e438fcd0.296d9","type":"mygekko_universal","z":"aca4b72a.6097f8","name":"myGekkoMsg","server":"5146f002.c863a","x":150,"y":180,"wires":[["a281b552.c4e478","7e6ed0d6.05933"]]},{"id":"19b1cf3c.cca461","type":"mqtt-broker","z":"","name":"MQTT Broker","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"efa185ba.788f18","type":"homekit-bridge","z":"","bridgeName":"NodeRed Bridge","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":true},{"id":"48574e42.32ce6","type":"mygekko_server","z":"","active":true,"api":"local","host":"192.168.2.11","interval":"100"},{"id":"5146f002.c863a","type":"mygekko_server","z":"","active":true,"api":"local","host":"192.168.2.11","interval":"1"}]