# NR with multiple homebridge instances error

**URL:** <https://discourse.nodered.org/t/nr-with-multiple-homebridge-instances-error/58002>\
**Category:** General\
**Created:** [8 February 2022 18:34 UTC](https://discourse.nodered.org/t/nr-with-multiple-homebridge-instances-error/58002 "2022-02-08T18:34:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![luedi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/luedi/32/55977_2.png) [@luedi](https://discourse.nodered.org/u/luedi)\
**Post date:** [8 February 2022 18:34 UTC](https://discourse.nodered.org/t/nr-with-multiple-homebridge-instances-error/58002/1 "2022-02-08T18:34:54Z")

</div>

Hi people,  
I am using homebridge (multiple instances) with NR on the same Raspberry Pi 4 but run into errors.

 ![Screenshot 2022-02-09 at 13.08.51](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/5/d5e13a71114434b0c21c3635aecb3244b84ef4c9.png)  
 ![Screenshot 2022-02-09 at 13.09.13](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/c/8c32aa75dfb6d7fa55b33c3d768b6685cf3bf63d.png)

The Window contacts are attached through a zigbee bridge and the Open Window switch is attached through another DECT bridge. Because of the number of devices they need to be served by two separate homebridge instances (on the same raspberry pi with node-red, apple 150 devices limit per bridge)

I am also sure that the function and payload syntax is correct, as when I change it the payload is rejected.

The two instances are configured in NR with their individual PINs but communication doesn't seem to work, when they are both configured with the same MAC. I did not find a way to specify a port.  
Any advice?

`"0*: **:** : **:** :C8 -> Error: Homebridge auth failed, invalid PIN 7 **-** -**8 -> undefined"`

`"0*: **:** : **:** :C8 -> Error: ERROR: HB Instance not found -> undefined"`

UPDATE: fixed the screenshots,

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [8 February 2022 19:12 UTC](https://discourse.nodered.org/t/nr-with-multiple-homebridge-instances-error/58002/2 "2022-02-08T19:12:26Z")

</div>

I think you are showing an old screenshot (using `on` instead of `On`)

---

<div class="post-metadata">

**Author:** ![luedi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/luedi/32/55977_2.png) [@luedi](https://discourse.nodered.org/u/luedi)\
**Post date:** [9 February 2022 12:20 UTC](https://discourse.nodered.org/t/nr-with-multiple-homebridge-instances-error/58002/3 "2022-02-09T12:20:01Z")

</div>

I have been trying to find a solution on the homebridge extension for NR GitHub page.  
There seem to be issues with multiple instances as well.  
[https://github.com/NorthernMan54/node-red-contrib-homebridge-automation/issues/36](https://github.com/NorthernMan54/node-red-contrib-homebridge-automation/issues/36)

---

<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:** [10 April 2022 12:20 UTC](https://discourse.nodered.org/t/nr-with-multiple-homebridge-instances-error/58002/4 "2022-04-10T12:20:15Z")

</div>

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