Created
January 15, 2021 05:31
-
-
Save sameeraakbar/1809741882b8a42245dce2f03fae7efc to your computer and use it in GitHub Desktop.
Example Flow for Fibaro Integration to Siri
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "5cee10b1.d9d94", | |
"type": "homekit-service", | |
"z": "e1cb516d.95b3b", | |
"accessory": "5fef66f4.60fb78", | |
"name": "Porch Light", | |
"serviceName": "Lightbulb", | |
"x": 270, | |
"y": 140, | |
"wires": [ | |
[ | |
"249ca475.06809c" | |
] | |
] | |
}, | |
{ | |
"id": "30e0971c.5a2fe8", | |
"type": "homekit-service", | |
"z": "e1cb516d.95b3b", | |
"accessory": "10275977.f66807", | |
"name": "Color Light", | |
"serviceName": "Lightbulb", | |
"x": 280, | |
"y": 200, | |
"wires": [ | |
[ | |
"1776fa8.a590d06" | |
] | |
] | |
}, | |
{ | |
"id": "1ff60dc.e1a38f2", | |
"type": "homekit-service", | |
"z": "e1cb516d.95b3b", | |
"accessory": "faf5af85.0e0e", | |
"name": "Dimming Light", | |
"serviceName": "Lightbulb", | |
"x": 290, | |
"y": 260, | |
"wires": [ | |
[ | |
"af8f3804.3ca388" | |
] | |
] | |
}, | |
{ | |
"id": "fb680994.f465a8", | |
"type": "inject", | |
"z": "e1cb516d.95b3b", | |
"name": "", | |
"props": [ | |
{ | |
"p": "payload" | |
}, | |
{ | |
"p": "topic", | |
"vt": "str" | |
} | |
], | |
"repeat": "", | |
"crontab": "", | |
"once": true, | |
"onceDelay": "1", | |
"topic": "", | |
"payload": "{\"Brightness\":80, \"Hue\":223, \"Saturation\":50}", | |
"payloadType": "json", | |
"x": 70, | |
"y": 180, | |
"wires": [ | |
[ | |
"30e0971c.5a2fe8" | |
] | |
] | |
}, | |
{ | |
"id": "e5e12c3f.068ed", | |
"type": "inject", | |
"z": "e1cb516d.95b3b", | |
"name": "", | |
"props": [ | |
{ | |
"p": "payload" | |
}, | |
{ | |
"p": "topic", | |
"vt": "str" | |
} | |
], | |
"repeat": "", | |
"crontab": "", | |
"once": true, | |
"onceDelay": "1", | |
"topic": "", | |
"payload": "{\"Brightness\":80}", | |
"payloadType": "json", | |
"x": 110, | |
"y": 260, | |
"wires": [ | |
[ | |
"1ff60dc.e1a38f2" | |
] | |
] | |
}, | |
{ | |
"id": "249ca475.06809c", | |
"type": "json", | |
"z": "e1cb516d.95b3b", | |
"name": "", | |
"property": "payload", | |
"action": "", | |
"pretty": false, | |
"x": 460, | |
"y": 140, | |
"wires": [ | |
[ | |
"988f592.e0b1da8" | |
] | |
] | |
}, | |
{ | |
"id": "988f592.e0b1da8", | |
"type": "switch", | |
"z": "e1cb516d.95b3b", | |
"name": "", | |
"property": "payload", | |
"propertyType": "msg", | |
"rules": [ | |
{ | |
"t": "eq", | |
"v": "{\"On\":true}", | |
"vt": "str" | |
}, | |
{ | |
"t": "eq", | |
"v": "{\"On\":false}", | |
"vt": "str" | |
} | |
], | |
"checkall": "true", | |
"repair": false, | |
"outputs": 2, | |
"x": 600, | |
"y": 140, | |
"wires": [ | |
[ | |
"9542d171.17e96" | |
], | |
[ | |
"47e653b7.108bcc" | |
] | |
] | |
}, | |
{ | |
"id": "9542d171.17e96", | |
"type": "http request", | |
"z": "e1cb516d.95b3b", | |
"name": "", | |
"method": "GET", | |
"ret": "txt", | |
"paytoqs": "ignore", | |
"url": "http://admin:[email protected]/api/callAction/?deviceID=4033&name=turnOn", | |
"tls": "", | |
"persist": false, | |
"proxy": "", | |
"authType": "", | |
"x": 780, | |
"y": 100, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "47e653b7.108bcc", | |
"type": "http request", | |
"z": "e1cb516d.95b3b", | |
"name": "", | |
"method": "GET", | |
"ret": "txt", | |
"paytoqs": "ignore", | |
"url": "http://admin:[email protected]/api/callAction/?deviceID=4033&name=turnOff", | |
"tls": "", | |
"persist": false, | |
"proxy": "", | |
"authType": "", | |
"x": 790, | |
"y": 160, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "1776fa8.a590d06", | |
"type": "homekit-rgb", | |
"z": "e1cb516d.95b3b", | |
"name": "", | |
"x": 500, | |
"y": 200, | |
"wires": [ | |
[ | |
"af0e19d3.8efef8" | |
] | |
] | |
}, | |
{ | |
"id": "af0e19d3.8efef8", | |
"type": "http request", | |
"z": "e1cb516d.95b3b", | |
"name": "", | |
"method": "GET", | |
"ret": "txt", | |
"paytoqs": "ignore", | |
"url": "http://admin:[email protected]/api/callAction/?deviceID=4042&name=setColor&arg1={{payload.0}}&arg2={{payload.1}}&arg3={{payload.2}}&arg4=0", | |
"tls": "", | |
"persist": false, | |
"proxy": "", | |
"authType": "", | |
"x": 670, | |
"y": 260, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "af8f3804.3ca388", | |
"type": "json", | |
"z": "e1cb516d.95b3b", | |
"name": "", | |
"property": "payload", | |
"action": "", | |
"pretty": false, | |
"x": 470, | |
"y": 300, | |
"wires": [ | |
[ | |
"dc5077b9.c65b88" | |
] | |
] | |
}, | |
{ | |
"id": "dc5077b9.c65b88", | |
"type": "switch", | |
"z": "e1cb516d.95b3b", | |
"name": "", | |
"property": "payload", | |
"propertyType": "msg", | |
"rules": [ | |
{ | |
"t": "eq", | |
"v": "{\"On\":true}", | |
"vt": "str" | |
}, | |
{ | |
"t": "cont", | |
"v": "Brightness", | |
"vt": "str" | |
}, | |
{ | |
"t": "eq", | |
"v": "{\"On\":false}", | |
"vt": "str" | |
} | |
], | |
"checkall": "true", | |
"repair": false, | |
"outputs": 3, | |
"x": 610, | |
"y": 320, | |
"wires": [ | |
[ | |
"d4112f4f.c8a12" | |
], | |
[ | |
"3bc63310.00532c" | |
], | |
[ | |
"68494ec0.a7daf" | |
] | |
] | |
}, | |
{ | |
"id": "d4112f4f.c8a12", | |
"type": "http request", | |
"z": "e1cb516d.95b3b", | |
"name": "", | |
"method": "GET", | |
"ret": "txt", | |
"paytoqs": "ignore", | |
"url": "http://admin:[email protected]/api/callAction/?deviceID=4051&name=turnOn", | |
"tls": "", | |
"persist": false, | |
"proxy": "", | |
"authType": "", | |
"x": 890, | |
"y": 280, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "68494ec0.a7daf", | |
"type": "http request", | |
"z": "e1cb516d.95b3b", | |
"name": "", | |
"method": "GET", | |
"ret": "txt", | |
"paytoqs": "ignore", | |
"url": "http://admin:[email protected]/api/callAction/?deviceID=4051&name=turnOff", | |
"tls": "", | |
"persist": false, | |
"proxy": "", | |
"authType": "", | |
"x": 810, | |
"y": 380, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "3bc63310.00532c", | |
"type": "function", | |
"z": "e1cb516d.95b3b", | |
"name": "", | |
"func": "var m = JSON.parse(msg.payload);\nmsg.payload = m.Brightness;\nreturn msg;", | |
"outputs": 1, | |
"noerr": 0, | |
"initialize": "", | |
"finalize": "", | |
"x": 810, | |
"y": 340, | |
"wires": [ | |
[ | |
"e42d8d6f.61854" | |
] | |
] | |
}, | |
{ | |
"id": "e42d8d6f.61854", | |
"type": "http request", | |
"z": "e1cb516d.95b3b", | |
"name": "", | |
"method": "GET", | |
"ret": "txt", | |
"paytoqs": "ignore", | |
"url": "http://admin:[email protected]/api/callAction/?deviceID=4051&name=setValue&arg1={{payload}}", | |
"tls": "", | |
"persist": false, | |
"proxy": "", | |
"authType": "", | |
"x": 970, | |
"y": 340, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "5fef66f4.60fb78", | |
"type": "homekit-accessory", | |
"accessoryName": "Porch Light", | |
"pinCode": "111-11-120", | |
"port": "", | |
"manufacturer": "Fibaro", | |
"model": "Double Switch", | |
"serialNo": "987654", | |
"accessoryType": "5" | |
}, | |
{ | |
"id": "10275977.f66807", | |
"type": "homekit-accessory", | |
"accessoryName": "Color Light", | |
"pinCode": "111-11-121", | |
"port": "", | |
"manufacturer": "Default Manufacturer", | |
"model": "Default Model", | |
"serialNo": "Default Serial Number", | |
"accessoryType": "5" | |
}, | |
{ | |
"id": "faf5af85.0e0e", | |
"type": "homekit-accessory", | |
"accessoryName": "Dimming Light", | |
"pinCode": "111-11-122", | |
"port": "", | |
"manufacturer": "Default Manufacturer", | |
"model": "Default Model", | |
"serialNo": "Default Serial Number", | |
"accessoryType": "5" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment