sonoff接入nr和homekit

[{"id":"bb72ea19.511fd8","type":"redmatic-homekit-switch","z":"c7347cb6.6f411","bridgeConfig":"249f6ae0.a94c46","name":"插座中枢测试","x":560,"y":240,"wires":[["17ee3dd.084d1c2"]]},{"id":"17ee3dd.084d1c2","type":"switch","z":"c7347cb6.6f411","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":730,"y":240,"wires":[["542d3cfc.88ecc4"],["9e97a248.1cd1e"]]},{"id":"93829b2f.da8558","type":"change","z":"c7347cb6.6f411","name":"开","rules":[{"t":"set","p":"payload","pt":"msg","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":370,"y":220,"wires":[["bb72ea19.511fd8"]]},{"id":"2e6804f1.883c0c","type":"change","z":"c7347cb6.6f411","name":"关","rules":[{"t":"set","p":"payload","pt":"msg","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":370,"y":280,"wires":[["bb72ea19.511fd8"]]},{"id":"8a93ad39.c780a","type":"switch","z":"c7347cb6.6f411","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"ON","vt":"str"},{"t":"eq","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":210,"y":240,"wires":[["93829b2f.da8558"],["2e6804f1.883c0c"]]},{"id":"c4a986e5.1c0788","type":"mqtt in","z":"c7347cb6.6f411","name":"设置mqtt信息","topic":"stat/sonoff_01/POWER","qos":"0","datatype":"auto","broker":"","x":100,"y":200,"wires":[["8a93ad39.c780a"]]},{"id":"b6b48a48.c66918","type":"mqtt out","z":"c7347cb6.6f411","name":"设置mqtt信息","topic":"cmnd/sonoff_01/POWER","qos":"0","retain":"false","broker":"","x":1040,"y":260,"wires":[]},{"id":"542d3cfc.88ecc4","type":"change","z":"c7347cb6.6f411","name":"开","rules":[{"t":"set","p":"payload","pt":"msg","to":"ON","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":870,"y":200,"wires":[["b6b48a48.c66918"]]},{"id":"9e97a248.1cd1e","type":"change","z":"c7347cb6.6f411","name":"关","rules":[{"t":"set","p":"payload","pt":"msg","to":"OFF","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":870,"y":300,"wires":[["b6b48a48.c66918"]]},{"id":"249f6ae0.a94c46","type":"redmatic-homekit-bridge","z":"","name":"插座","username":"36:22:3D:B7:4E:5A","pincode":"082-34-855","port":"57213"}]

还是麻烦萝卜大佬写的流,


目前能力有限,switch和change节点看不懂
Snipaste_2020-01-13_22-29-01
这里的这个桥可以编辑下端口和mac这样在homekit就是一个单独的桥,和其他的一样也可,就是公用的一个桥