[{"id":"190cf91c.3d8a07","type":"homekit-service","z":"a05ccff1.9cd228","accessory":"8ac5cffa.a32a5","name":"Garagentor","serviceName":"GarageDoorOpener","x":533.5,"y":167,"wires":[["4b158a26.58c4ec"]]},{"id":"6680e786.11de3","type":"debug","z":"a05ccff1.9cd228","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":1096.5,"y":181,"wires":[]},{"id":"56407e59.8e74","type":"http in","z":"a05ccff1.9cd228","name":"","url":"/garage/zu","method":"get","upload":false,"swaggerDoc":"","x":85,"y":149,"wires":[["ee8db2d.134375","6dd29802.2f333"]]},{"id":"3b3f8be.b3f8c74","type":"http in","z":"a05ccff1.9cd228","name":"","url":"/garage/auf","method":"get","upload":false,"swaggerDoc":"","x":85,"y":189,"wires":[["7054afa2.bbc888","6dd29802.2f333"]]},{"id":"7054afa2.bbc888","type":"trigger","z":"a05ccff1.9cd228","op1":"{\"CurrentDoorState\": false}","op2":"{\"CurrentDoorState\": false}","op1type":"json","op2type":"json","duration":"250","extend":false,"units":"ms","reset":"","name":"","x":325,"y":189,"wires":[["190cf91c.3d8a07"]]},{"id":"ee8db2d.134375","type":"trigger","z":"a05ccff1.9cd228","op1":"{\"CurrentDoorState\": true}","op2":"{\"CurrentDoorState\": true}","op1type":"json","op2type":"json","duration":"250","extend":false,"units":"ms","reset":"","bytopic":"all","name":"","x":325,"y":149,"wires":[["190cf91c.3d8a07"]]},{"id":"6dd29802.2f333","type":"http response","z":"a05ccff1.9cd228","name":"","statusCode":"200","headers":{},"x":305,"y":229,"wires":[]},{"id":"b6131fbe.3705c8","type":"http request","z":"a05ccff1.9cd228","name":"Garage auf","method":"GET","ret":"txt","url":"https://xxxxx.hom.ee/api/v2/webhook_trigger?webhooks_key=xxxxxxxx&event=garage_auf","tls":"","x":890.5,"y":164,"wires":[["6680e786.11de3"]]},{"id":"d4344ad9.71ec78","type":"http request","z":"a05ccff1.9cd228","name":"Garage zu","method":"GET","ret":"txt","url":"https://xxxxxxxxxx.hom.ee/api/v2/webhook_trigger?webhooks_key=xxxxxxxxxxx&event=garage_zu","tls":"","x":890.5,"y":207,"wires":[["6680e786.11de3"]]},{"id":"4b158a26.58c4ec","type":"switch","z":"a05ccff1.9cd228","name":"","property":"payload.TargetDoorState","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"},{"t":"eq","v":"1","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":728.5,"y":166,"wires":[["b6131fbe.3705c8"],["d4344ad9.71ec78"]]},{"id":"8ac5cffa.a32a5","type":"homekit-accessory","z":"","accessoryName":"Garagentor","pinCode":"347-11-234","port":"","manufacturer":"Novoferm","model":"Default Model","serialNo":"Default Serial Number","accessoryType":"4"}]
Sieht ein bisschen anders aus, funktioniert aber Dazu werden vier Homeegramme benötigt:
-
Garage öffnen - öffnet die Garage und wird durch einen Webhook von Node-RED ausgelöst
-
Garage schließen - schließt die Garage und wird durch einen Webhook von Node-RED ausgelöst
-
Garage öffnet - Reagiert auf Türsensor öffnet und löst in Node-RED den Webhook aus
-
Garage schließt - Reagiert auf Türsensor schließt und löst in Node-RED den Webhook aus
Theoretisch könnte man die Webhooks noch durch mein Node-RED Plugin für homee ersetzen.