# Node Red - OpenHAB - Homekit - Very Beginner Questions for Homekit to OH item flow

**URL:** https://discourse.nodered.org/t/node-red-openhab-homekit-very-beginner-questions-for-homekit-to-oh-item-flow/30149
**Category:** General
**Created:** [15 July 2020 20:32 UTC](https://discourse.nodered.org/t/node-red-openhab-homekit-very-beginner-questions-for-homekit-to-oh-item-flow/30149 "2020-07-15T20:32:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ckishappy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ckishappy/32/25685_2.png) [@ckishappy](https://discourse.nodered.org/u/ckishappy)
#### Post date: [15 July 2020 20:32 UTC](https://discourse.nodered.org/t/node-red-openhab-homekit-very-beginner-questions-for-homekit-to-oh-item-flow/30149/1 "2020-07-15T20:32:19Z")

</div>

Hi, I started to use node-red for the further HomeKit integration and I like it based on what I have seen. I used the node red and HomeKit and the openhab tutorials. This one was also posted on the OH forum but didn't get a response. Pls advise...

I started well to display if the switch is on or off in HomeKit. First half of the journey mastered!

Overall flow:

 ![Bildschirmfoto 2020-07-15 um 00.04.54](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/f/6fcfb732c1b51cd29f45e6ee6a709129c377c895.png)

The second part of the journey from Homekit to OH (starting from when the VPN button in HomeKit is turned off or on) I didn’t get right yet: **The question is how do I create the flow from the VPN HomeKit node back to update the openhab item called ivpn?**

Basically the HomeKit ivpn switch (in the middle of the workflow) sends true on port 1, and false on port 2 (picture 2) based on the template defined.

The questions: **How do I send the value (the value/command is enablev for On/true, the value disablev is for Off) from Homekit to the ivpn openhab node (picture 3 / 4)?** **And which openhab2 node (picture 5) for the item ivpn on the right hand-side do I need to take i.e. openhab2 get or openhab2 out? With which settings?**

Pls advise

Picture 2:

 ![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/9/09c7ca9fef993b133e8b97bf1384f189b4aaa9ed.png)

Picture 3/4:

 ![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/b/1bcef7bf0993289f97c1611e48e792d84653c4f4.png)

Picture 5:

 ![Bildschirmfoto 2020-07-15 um 22.21.46](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/9/c9a20008e9bd275686790f0397bd681f38ae3027.png)

---

<div class="post-metadata">

### Author: ![ckishappy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ckishappy/32/25685_2.png) [@ckishappy](https://discourse.nodered.org/u/ckishappy)
#### Post date: [14 August 2020 22:08 UTC](https://discourse.nodered.org/t/node-red-openhab-homekit-very-beginner-questions-for-homekit-to-oh-item-flow/30149/2 "2020-08-14T22:08:25Z")

</div>

Resolved it by sending it two openhab2 out nodes on the right-hand side, using the item command topic with the two concrete payloads ("enablev" and "disablev" in my case). I am sure I could do this in a more elegant way with custom functions but will work on this later. I moved all the 30 HomeKit items to node-red as the stability / speed and integration is great. I did uninstall therefore the HomeKit binding in OH2.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [28 August 2020 22:08 UTC](https://discourse.nodered.org/t/node-red-openhab-homekit-very-beginner-questions-for-homekit-to-oh-item-flow/30149/3 "2020-08-28T22:08:34Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
