homee-homekit-Garagentoremu-Fibaroswitch

In homee steuert ein normaler Switch mit potentialfreiem Relais den 24V Garagentormotor. Der Offen- bzw. Geschlossen-Zustand wird durch zwei Türsensoren registriert.

Mittels NodeRed emuliere ich aus dieser Konstellation ein Homekit-Gertät “Garagentor” mit all seinen Funktionalitäten einschließlich Siri-Support in CarPlay.

Danke an @stfnhmplr für die tatkräftige Unterstützung!

[{"id":"37d7e01.9eafaa","type":"homekit-service","z":"2cc975df.7f8f7a","accessory":"20d6507d.4fbbe","name":"Garagentor","serviceName":"GarageDoorOpener","x":550,"y":1200,"wires":[["f9142eed.b4eda"]]},{"id":"21d49ac7.3c2b06","type":"debug","z":"2cc975df.7f8f7a","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":1113,"y":1214,"wires":[]},{"id":"43f1f4fb.22c704","type":"http in","z":"2cc975df.7f8f7a","name":"","url":"/garage/zu","method":"get","upload":false,"swaggerDoc":"","x":101.5,"y":1182,"wires":[["7a91d666.aa0088","66b45a9a.348294"]]},{"id":"c52a004c.f32b28","type":"http in","z":"2cc975df.7f8f7a","name":"","url":"/garage/auf","method":"get","upload":false,"swaggerDoc":"","x":101.5,"y":1222,"wires":[["66133a4b.0d4794","66b45a9a.348294"]]},{"id":"66133a4b.0d4794","type":"trigger","z":"2cc975df.7f8f7a","op1":"{\"CurrentDoorState\": false}","op2":"{\"CurrentDoorState\": false}","op1type":"json","op2type":"json","duration":"250","extend":false,"units":"ms","reset":"","name":"","x":341.5,"y":1222,"wires":[["37d7e01.9eafaa"]]},{"id":"7a91d666.aa0088","type":"trigger","z":"2cc975df.7f8f7a","op1":"{\"CurrentDoorState\": true}","op2":"{\"CurrentDoorState\": true}","op1type":"json","op2type":"json","duration":"250","extend":false,"units":"ms","reset":"","bytopic":"all","name":"","x":341.5,"y":1182,"wires":[["37d7e01.9eafaa"]]},{"id":"66b45a9a.348294","type":"http response","z":"2cc975df.7f8f7a","name":"","statusCode":"200","headers":{},"x":321.5,"y":1262,"wires":[]},{"id":"7f8851dc.9601c8","type":"http request","z":"2cc975df.7f8f7a","name":"Garage auf","method":"GET","ret":"txt","url":"https://XXX.hom.ee/api/v2/webhook_trigger?webhooks_key=XXX&event=Torauf","tls":"","x":907,"y":1197,"wires":[["21d49ac7.3c2b06"]]},{"id":"6603d462.16d5f4","type":"http request","z":"2cc975df.7f8f7a","name":"Garage zu","method":"GET","ret":"txt","url":"https://XXX.hom.ee/api/v2/webhook_trigger?webhooks_key=XXX&event=Torzu","tls":"","x":907,"y":1240,"wires":[["21d49ac7.3c2b06"]]},{"id":"f9142eed.b4eda","type":"switch","z":"2cc975df.7f8f7a","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":745,"y":1199,"wires":[["7f8851dc.9601c8"],["6603d462.16d5f4"]]},{"id":"20d6507d.4fbbe","type":"homekit-accessory","z":"","accessoryName":"Garagentor","pinCode":"347-11-234","port":"","manufacturer":"Novoferm","model":"Default Model","serialNo":"Default Serial Number","accessoryType":"4"}]

Flow Info

Created 7 years ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • debug (x1)
  • http in (x2)
  • http request (x2)
  • http response (x1)
  • switch (x1)
  • trigger (x2)
Other

Tags

  • homee
  • homekit
  • Garagentor
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option