homee-homekit-Garagentoremu-Fibaroswitch-V2

Mit dem verbesserten Flow kann auch der Status "öffnen" und "schließen" sauber von homee an HomeKit übergeben werden.

Nötige Hardware:

  • Figaro Switch FGS-222 (alternativ Qubino oder Enocean Nodon) an Garagentormotor
  • Zwei Tür-/Fenstersensoren an Torschluss und Toröffnung
[{"id":"12586948.4e7abf","type":"homekit-service","z":"2cc975df.7f8f7a","accessory":"20d6507d.4fbbe","name":"Garagentor","serviceName":"GarageDoorOpener","x":610,"y":2700,"wires":[["5c23a9f2.374ce"]]},{"id":"294b3546.0cccba","type":"debug","z":"2cc975df.7f8f7a","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":1150,"y":2700,"wires":[]},{"id":"7992eacc.2c60fc","type":"http in","z":"2cc975df.7f8f7a","name":"Garage schließt","url":"/garage/zu","method":"get","upload":false,"swaggerDoc":"","x":141.5,"y":2682,"wires":[["9fe44b1d.506698","6d362559.c4c9e4"]]},{"id":"b32a61a1.16a0b","type":"http in","z":"2cc975df.7f8f7a","name":"Garage öffnet","url":"/garage/auf","method":"get","upload":false,"swaggerDoc":"","x":131.5,"y":2722,"wires":[["9fe44b1d.506698","8afeba4c.d159b"]]},{"id":"9fe44b1d.506698","type":"http response","z":"2cc975df.7f8f7a","name":"","statusCode":"200","headers":{},"x":360,"y":2800,"wires":[]},{"id":"3d974f2f.e36008","type":"http request","z":"2cc975df.7f8f7a","name":"Garage öffnen","method":"GET","ret":"txt","paytoqs":false,"url":"https://DEINEHOMEEID.hom.ee/api/v2/webhook_trigger?webhooks_key=DEINWEBHOOKKEY&event=Torauf","tls":"","proxy":"","authType":"basic","x":940,"y":2660,"wires":[["294b3546.0cccba"]]},{"id":"42c31900.cac9b8","type":"http request","z":"2cc975df.7f8f7a","name":"Garage schließen","method":"GET","ret":"txt","paytoqs":false,"url":"https://DEINEHOMEEID.hom.ee/api/v2/webhook_trigger?webhooks_key=DEINWEBHOOKKEY&event=Torzu","tls":"","proxy":"","authType":"basic","x":950,"y":2740,"wires":[["294b3546.0cccba"]]},{"id":"5c23a9f2.374ce","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":770,"y":2700,"wires":[["3d974f2f.e36008"],["42c31900.cac9b8"]]},{"id":"99daac66.52896","type":"http in","z":"2cc975df.7f8f7a","name":"Garage geschlossen","url":"/garage/geschlossen","method":"get","upload":false,"swaggerDoc":"","x":150,"y":2640,"wires":[["9fe44b1d.506698","f137abf1.7b8a28"]]},{"id":"16fcf1f9.c04d06","type":"http in","z":"2cc975df.7f8f7a","name":"Garage offen","url":"/garage/offen","method":"get","upload":false,"swaggerDoc":"","x":130,"y":2760,"wires":[["9fe44b1d.506698","6cc37505.e77934"]]},{"id":"f137abf1.7b8a28","type":"change","z":"2cc975df.7f8f7a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"CurrentDoorState\":\"1\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":2640,"wires":[["12586948.4e7abf"]]},{"id":"6d362559.c4c9e4","type":"change","z":"2cc975df.7f8f7a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"TargetDoorState\":\"1\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":2680,"wires":[["12586948.4e7abf"]]},{"id":"8afeba4c.d159b","type":"change","z":"2cc975df.7f8f7a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"TargetDoorState\":\"0\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":2720,"wires":[["12586948.4e7abf"]]},{"id":"6cc37505.e77934","type":"change","z":"2cc975df.7f8f7a","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"CurrentDoorState\":\"0\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":2760,"wires":[["12586948.4e7abf"]]},{"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 5 years, 3 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

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

Tags

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