[OBSOLETE] Hello, Home HomeKit (and Siri!) control via homebridge

I’m so close! I keep taking all these baby steps. That worked, I already tried that prior to that last post, I’m wondering if it was that I enabled OAUTH in the api page this time. It worked, and generated this: ( I did the xxxxx with this post)

{
“description”: “JSON API”,
“platforms”: [
{
“platform”: “SmartThings”,
“name”: “SmartThings”,
“app_id”: “xxxxx”,
“access_token”: “xxxxx”
}
]
}

Is the next step that I should be able to see the ST lights (the ones I checked in the JSONAPI smartapp) in the EVE app, and then they will work? Still can’t get Siri to find anything.

I had to do the following at this point:

  1. Unpair Homebridge on Eve and if needed in IOS settings
  2. Stop the App on the Raspberry PI
  3. Put down the new JSON file
  4. Restart the App on the PI
  5. Re-pair Homebridge

I was thinking the same but with the Qnap NAS. I could not find any answers…I would love to run this on a NAS.

I did the above, but still don’t see anything in EVE or Insteon other than the accessory called “Homebridge”. Should I see the indivual lights within EVE? The homebridge terminal session on ubuntu looks normail with Requests, responses, keepalives, etc…

I’ve got to be one small step away from this working… Thanks so much for the help.

I don’t need to paste the output of the debug to config.json, do I?

Homebridge contains all the switches you added in the SmartApp. Once Homebridge is added you’ll be able to rearrange things from within Eve

Hi, I am a smart things UK user and i am trying to set up homebridge. When I add the smart app and then I go into the Config section, instead of seeing the config, it shows me: HTTP Status 500 - Cannot get property “authentication” on null object. Could you please help me.

Do I also need to add the DEBUG json code? The code above from #61 does not name the switches and the debug is very large and lists them all.

I had the same, for me it was either Power cycling the phone, or enabling OAuth in the smartapp via the api smartthings page. I can’t remember which. I think it was the power cycling the phone that did it.

Thanks very much Rick for your reply but unfortunately i am not an expert so could you please explain how to do this. (Power cycling the phone)

hi i have just realised what to do so i rebooted the phone and the problem still occurs

Looks like you need to enable OAuth in the SmartApp options (on graph.api…)

Agreed; the code from #61 does not name all the switches you chose. But trust me, it works. Do not add DEBUG

Edit the smartapp, click the “App Settings” button, then click OAUTH, and config it.

Thank you for your suggestion. But i have already tried this and it didn’t work. Is there anything else that i could try? Thanks again

I also had to delete the Homekit settings on the iphone, and delete the keys-chain and re-add.

Man, I can’t believe I can’t get this to work. I’ve reversed the order of the config.json, in case that mattered. With each tweak, I am restarting the server, and deleting/re-adding the accessory in the EVE app. No matter what I do, none of my switches will show up. This is soooo frustrating.

What I mean by this - I now remember - logout and login to iCloud on the phone under settings. I also re-did the keychain, it might be default turned off when you logout/login to iCloud.

Do other’s startup look like this?

rick@ubuntu:~/homebridge$ sudo npm run start

homebridge@0.1.1 start /home/rick/homebridge
DEBUG=* node app.js || true

*** WARNING *** The program ‘nodejs’ 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=nodejs
*** WARNING *** The program ‘nodejs’ 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=nodejs&f=DNSServiceRegister
Starting HomeBridge server…


IMPORTANT: Homebridge is in the middle of some big changes.
Read more about it here:
Home · homebridge/homebridge Wiki · GitHub


Scan this code with your HomeKit App on your iOS device:

┌────────────┐     
│ undefined  │     
└────────────┘

What does the JSON generation debug look like? Maybe post that? The Warnings are EXACTLY like the output I see. I doubt it is the switch brand, but what are you adding in the SmartApp? I have 1 Linear Switch (which I hate), 1 Leviton dimmer, 2 Leviton switches, 2 GE dimmers, 18 GE switches, 2 Dragon Tech switches, 1 Dry Contact Switch, 2 Wink bulbs. No issues.

Unfortunately, I am not an expert; I just got it to work.

My son, who worked on this with me suggested as a “last ditch effort” to:

  1. Unpair the Eve app
  2. Do a fresh compile/install on your PI
    (We did that a couple of times)

To give you some comfort, my output looks just like that and it works. However after a day it stops working, I’m trying to debug that issue now.