question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Homebridge not showing up in Home app

See original GitHub issue

I have homebridge running on a Raspberry Pi 2

$ node -v
v4.5.0
$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.9/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Raspbian 4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.9 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libitm --disable-libquadmath --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-armhf --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-armhf --with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.9.2 (Raspbian 4.9.2-10) 
$ DEBUG=* /opt/nodejs/bin/homebridge 
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
[9/22/2016, 5:24:59 PM] Loaded plugin: homebridge-http
[9/22/2016, 5:24:59 PM] Registering accessory 'homebridge-http.Http'
[9/22/2016, 5:24:59 PM] ---
[9/22/2016, 5:24:59 PM] Loaded config.json with 1 accessories and 0 platforms.
[9/22/2016, 5:24:59 PM] ---
[9/22/2016, 5:24:59 PM] Loading 1 accessories...
[9/22/2016, 5:24:59 PM] [Optoma Projector] Initializing Http accessory...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │ 031-45-155 │     
    └────────────┘     

  Accessory [Homebridge] Creating new AccessoryInfo for our HAP server +0ms
  Accessory [Homebridge] Creating new IdentifierCache +62ms
[9/22/2016, 5:25:00 PM] Homebridge is running on port 51826.
  EventedHTTPServer Server listening on port 51826 +275ms
  polling-to-event Emitting 'poll'. +0ms
  polling-to-event Comparing last polled parameters +18ms
  polling-to-event Last polled data and previous poll data are not equal. +10ms
  polling-to-event Emitting 'statuspoll'. +2ms
[9/22/2016, 5:25:01 PM] [Optoma Projector] Switch received power http://localhost/device/projector/status state is currently 0
[9/22/2016, 5:25:01 PM] [Optoma Projector] Setting power state to off
  polling-to-event Emitting 'poll'. +348ms
  polling-to-event Comparing last polled parameters +3ms
  polling-to-event Last polled data and previous poll data are equal. +7ms
....

I have the HTTP plugin installed and an accessories configured. Based on the above output it looks good

config.json

$ cat ~/.homebridge/config.json
{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "031-45-155"
    },

    "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",

    "accessories": [
        {
                "accessory": "Http",
                "name": "Optoma Projector",
                "switchHandling": "realtime",
                "http_method": "GET",
                "on_url":      "http://localhost/device/projector/ON",
                "off_url":     "http://localhost/device/projector/OFF",
                "status_url":  "http://localhost/device/projector/status"
      } 
    ]

}

Webserver is running:

$ curl http://localhost/device/projector/status
0

Firewall is completely open:

$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination 

I have delete the ~/.homebridge/persist directory and restarted homebridge

When I go to the Home app on my iPhone and click Add Accessory nothing shows up.

I don’t know what I am missing?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
jamiemcconnellcommented, Aug 9, 2017

I found that if I changed the username and restarted home bridge it showed right up.

1reaction
jamestenglishcommented, Sep 23, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

New Homebridge setup - accessories not showing in Home app
After you add a new device to a paired Homebridge you need to restart HB and then on your iOS device add a...
Read more >
Homebridge not showing up in Home app · Issue #790 - GitHub
I resolved this by uninstalling home bridge and reinstalling. When there are plugins ie cameras which dont show up in homekit try uninstall ......
Read more >
Device missing from Homekit - 🛎️ Get Help - Hubitat
Stop Homebridge; Delete all the files in your homebridge/persist and homebridge/accessories directories. Restart HomeBridge. 1 Like.
Read more >
Items not appearing in Homebridge - Konnected Help & Support
Stop Homebridge. Remove the cachedAccessories file per the troubleshooting section on the GitHub repo page. Start Homebridge back up. Let me know if...
Read more >
My 'Home' App on iOS can't find Homebridge
Hi, newbie here. I've setup Home Assistant on a Raspberry Pi using Hassbian. Really at the very beginning of my journey into home...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found