[RELEASE] HubConnect - Share Devices across Multiple Hubs (even SmartThings!)

community_app

#852

I can't get custom drivers to work at all on Smartthings or Hubitat, I got the driver created but no devices are selectable.

Hubitat
It's not letting me select anything on another Hubitat hub either:

I even created a new virtual presence sensor on this example above but it's not showing any devices are selectable.

Smartthings:
I tried initially to add a few devices from Smartthings but those weren't showing at all so I tried just a Presence Sensor and can't get any devices to display at all regardless of what attribute I pick:

There should be 3 showing on this list above. Looking at it, it's not displaying the attribute correctly since it's showing in brackets instead of parentheses. It also looks like it's not formatting the bold correctly, it's showing the bold tag coding instead of actually making it bold.

See how it shows normally below:


#853

Did the upgrades, everything is good, humidity is shown using the omnipurpose driver now


#854

My server/coordinator hub has now locked up (red light) 3 times today. Never had that happen even once before going to 1.4.


#855

4 times now...

Looks like HSM events are what's doing it. I'll turn off sharing them and see what happens.

Per the logs below 6:29 (Eastern) is when it locked up.

dev:2632019-05-17 07:58:09.241 pm traceInitialize virtual Hub device...

dev:1332019-05-17 07:58:09.241 pm traceInitialize virtual Hub device...

app:502019-05-17 06:29:04.380 pm infoFiltering HSM state change event received from Office Hubitat. 2019-05-17 19:58:09.232 TRACE dev|326|SmartThings|Initialize virtual Hub device...

app:502019-05-17 06:29:04.342 pm debugReceived HSM event from server: disarm

app:502019-05-17 06:29:04.240 pm debugSending HSM state change event to Office Hubitat: disarm

app:502019-05-17 06:29:04.080 pm infoFiltering HSM state change event received from Office Hubitat.

app:502019-05-17 06:29:04.033 pm debugReceived HSM event from server: disarm


#856

Also of note... Now when I go into the client settings for the homebridge hub it always says new version detected and tells me to click done. I can't ever get past that.

ugh


#857

PM sent.


#858

@dan.t
i’m getting these errors with the hubconnect homebridge 2.0 update. Not sure why there would be a duplicate. I just updated and then went through and redid all my assignments.


#859

That is the HubConnect app and not the Homebridge plugin. The Homebridge plugin doesn’t log anything in Hubitat. Going to tag @csteele here


#860

Looking at that log output.. could it be that you deleted you HubConnect instance for homebridge once and are now trying to re-create it? You also need to delete the "HubConnect Remote Hub" device after you delete a server instance before you can re-create it.


#861

I don’t think so. I did just delete the homebridge device and recreated it by opening the app and hitting done. now I just get the following error

`[app:162](http://192.168.20.22/logs#app162)2019-05-18 17:22:44.561 [error](http://192.168.20.22/installedapp/configure/162)httpGet() request failed with error 408`

over and over again.


#862

You need to start/restart homebridge after the instance was created in HubConnect. Homebridge will tell HubConnect where it can be reached. Make sure that you have the correct key in you config.json


#863

Just so everyone else knows. It looks like setting up HSM send and receive for all of my hubs is what was causing my server hub to lockup. I turned off the sharing of HSM status and no lockups for 20+ hours.


#864

everything was working great until this most recent update. not sure what happened. i’m getting a lot of this in my homebridge logs:

[5/18/2019, 6:01:28 PM] [Hubitat hhh:0.2.1] Configuration of cached accessories not done, wait for a bit... 97
[5/18/2019, 6:01:29 PM] [Hubitat hhh:0.2.1] Configuration of cached accessories not done, wait for a bit... 97
[5/18/2019, 6:01:30 PM] [Hubitat hhh:0.2.1] Configuration of cached accessories not done, wait for a bit... 97
[5/18/2019, 6:01:31 PM] [Hubitat hhh:0.2.1] Configuration of cached accessories not done, wait for a bit... 97
[5/18/2019, 6:01:32 PM] [Hubitat hhh:0.2.1] Configuration of cached accessories not done, wait for a bit... 97
[5/18/2019, 6:01:33 PM] [Hubitat hhh:0.2.1] Configuration of cached accessories not done, wait for a bit... 97
[5/18/2019, 6:01:34 PM] [Hubitat hhh:0.2.1] Configuration of cached accessories not done, wait for a bit... 97
[5/18/2019, 6:01:35 PM] [Hubitat hhh:0.2.1] Configuration of cached accessories not done, wait for a bit... 97
[5/18/2019, 6:01:36 PM] [Hubitat hhh:0.2.1] Configuration of cached accessories not done, wait for a bit... 97
[5/18/2019, 6:01:37 PM] [Hubitat hhh:0.2.1] Configuration of cached accessories not done, wait for a bit... 97
[5/18/2019, 6:01:38 PM] [Hubitat hhh:0.2.1] Configuration of cached accessories not done, wait for a bit... 97
[5/18/2019, 6:01:39 PM] [Hubitat hhh:0.2.1] Configuration of cached accessories not done, wait for a bit... 97
[5/18/2019, 6:01:40 PM] [Hubitat hhh:0.2.1] Configuration of cached accessories not done, wait for a bit... 97
[5/18/2019, 6:01:41 PM] [Hubitat hhh:0.2.1] Configuration of cached accessories not done, wait for a bit... 97
[5/18/2019, 6:01:42 PM] [Hubitat hhh:0.2.1] Configuration of cached accessories not done, wait for a bit... 97

#865

Can you get me all of the output from Homebridge when it starts up? This way I can tell more and see what is going on


#866

well.... i went nuclear. I disabled and created a new instance. I seem to have control over things. I don't know how quickly to expect new devices to show up in homekit, but I seem to have to still reboot homebridge to get things to come up. I did come across this error in the start up process:

[5/18/2019, 6:17:55 PM] Homebridge is running on port 51827.
[5/18/2019, 6:17:55 PM] [Hubitat hhh:0.2.1] latest version on npmjs is 0.2.1
[5/18/2019, 6:17:55 PM] [Hubitat hhh:0.2.1] your version of the plugin is up2date
[5/18/2019, 6:17:56 PM] [Hubitat hhh:0.2.1] Configuration of cached accessories not done, wait for a bit... 18                                                                  
[5/18/2019, 6:17:57 PM] [Hubitat hhh:0.2.1] Configuration of cached accessories not done, wait for a bit... 18                                                                  
[5/18/2019, 6:17:57 PM] [Hubitat hhh:0.2.1] { InternalError
    at /usr/local/lib/node_modules/homebridge-hubitat-hubconnect/index.js:168:49
    at process._tickCallback (internal/process/next_tick.js:68:7)
  errorCode: 0,
  name: 'InternalError',
  additionalArguments: [ '' ],
  message: '',
  lastHttpRequest:
   { hostname: '192.168.20.22',
     port: 80,
     path: '/apps/api/322/devices/get',
     method: 'GET',
     headers:
      { Authorization: 'Bearer ea42db3f-5e41-425d-98ce-b8f699f12104' } } }
[5/18/2019, 6:17:57 PM] [Hubitat hhh:0.2.1] Going to exit here to not destroy your room assignments.                                                                            
-U /homebridge -P /homebridge/node_modules -C
[5/18/2019, 6:18:00 PM] Loaded config.json with 0 accessories and 2 platforms.
[5/18/2019, 6:18:00 PM] ---

#867

After you recreated the HubConnect instance, did you copy the new server key to your config.json. It changes and I see in that log output that your request to HubConnect is failing


#868

Here is what I would do right now:

  1. Stop Homebridge
  2. Delete HubConnect server instance app
  3. Delete HubConnect Remote Hub Device
  4. Create new HubConnect server instance
  5. copy new server connection key and put it in you config.json
  6. Start Homebridge

That is a fully clean new start


#869

yes, i copied the new key to the config.json. I assume that would be required for things to work at all. after a restart the devices appear in my homekit app and I seem to be able to control them.


#870

That’s progress! Let me know if you have any more issues.


#871

I think things are working (other than putting 97 devices back in their rooms). but this error does pop up on hubitat with the logging turned on:

`[app:322](http://192.168.20.22/logs#app322)2019-05-18 21:29:37.175 [error](http://192.168.20.22/installedapp/configure/322)org.apache.http.conn.HttpHostConnectException: Connect to 0.0.0.0:20009 [/0.0.0.0] failed: Connection refused (Connection refused) on line 888 (updated)`

that error only pops up after I hit done on the app. everything seems to be working though.