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

Doesn't alter the functionality of HubConnect's NodeJS Server. My interpretation of the Platform change was to deal with duplicates related to a 'missed' ZWave ACK. The platform also got improvements to the ACK response time, so it sounds 'belt and suspenders' a bit. :slight_smile:

HubConnect NodeJS Server will de-dup 'intentional' duplicates. (Those that the device sends out - just because.) But the larger effect is still the filtering of traffic to the specific Hub. Hub's A, B and C all send Events to Hub S. Hub S therefore sends Hub A's traffic to B & C who discard it. By inserting the NodeJS Server in the center, each Hub only sees traffic that it needs to action. It never has to de-dup and it never has to discard Events.

1 Like

Ah! Good to know! Thanks!

hi all
im trying to upgrade from 1.6 to 2.0 and when i paste the code for the ST app into IDE i get an error

groovy.lang.MissingMethodException: No signature of method: script_app_metadata_f52b4245_1d73_4218_84c9_0348c30c9969.metadata() is applicable for argument types: (script_app_metadata_f52b4245_1d73_4218_84c9_0348c30c9969$_run_closure1) values: [script_app_metadata_f52b4245_1d73_4218_84c9_0348c30c9969$_run_closure1@3cb58db1]<br/>Possible solutions: getMetadata(), getState(), setState(java.lang.Object), metaClass(groovy.lang.Closure) @line 28 (run)

Any ideas what I've done wrong?

EDIT: Ignore me I'm clearly not reading things correctly! ive pasted the driver not the app

1 Like

Does the new hub mesh feature now in 2.2.4 mean that hub connect is no longer needed? I haven't updated my hub yet and have been using hub connect with great success. But if they have built that into the firmware now that sounds like a good way to go.

New to Hubitat and it was recommended I install HubConnect to get a feel of the interface before transferring. I have a Hubitat and ST Hub. When I got here, I don't see remote client. Did I miss installing a remote client for ST in the directions?

Connecting a Hub:

  1. On the Master hub, go to the HubConnect Server for Hubitat app.
  2. Click Connect a Hub
  3. At the Main Menu, Click Connect to Client Hub
  4. Enter a Friendly Name for the hub.
  5. Enter the Private LAN IP Address of Client Hub of the remote Hub (even if the hub is not
    on the same LAN or in the same location)
  6. Choose the Type of Remote Hub:
  7. Hubitat (LAN) - Remote hub is on the same LAN and IP subnet as the Server

HubMesh is a lot more an upgrade to the old HubLink/Link2hub pair than HubConnect, in my opinion. It certainly won't help with those people using SmartThings. And, in a continuation of HubLink's pattern, there's zero user extensibility.

Thus I'd conclude that the audience for HubConnect has been narrowed, but not to zero. I am pretty sure HubMesh has removed any incentive to build a new SmartThings app. Hubitat will have to improve Send Hub Events to support the new SmartThings environment.

I saw that HubMesh got an upgrade to use tcp: "Hub Mesh: Added support added for TCP based connectivity (for mesh routers)." which I assume helps with Hubitat Hubs not on the same subnet. ++

If you need custom attributes, I think HubConnect's Custom Driver feature is the only option.

++ Apparently HubMesh is still restricted to the subnet. HubMesh in a router mesh

Yes. Two blocks of code need to be installed via the IDE... an App and a Driver, both specifically for ST. Then the key needs to be copied from the HubConnect instance to the Remote.

1 Like

That sound reasonable. I'm only using HubConnect to share sensors for basic automations between two hubitat hubs, so I might give HubMesh a try.

1 Like

Thanks I will go back and start over. I swear I read and re-read it to follow it to a T

Hub Mesh takes the entire device (both capability and custom commands and attributes, plus things that app-based approaches can't really do, like all device logging and a read-only view of all preferences) to the other hub, so it would handle custom devices OK, if that's what you mean. But certainly HubConnect would let you customize things a bit more--like if there are attributes (cough, cough, power metering devices) you don't care to sync. :smiley:

1 Like

it's at the bottom of page 4, step 10+...

Has V2 stopped pushing mode changes to ST?

If not then let me rephrase: What have I done wrong to stop HubConnect pushing mode changes to ST? :wink:
not a massive issue everything mode based is in Hubitat now just curious.

For each HubConnect Instance, there's an individual selection for sending mode to that Remote. For My ST instance I have:

Screen Shot 2020-11-26 at 12.15.27 PM

With nothing explicitly set on the ST side:

And that works for me:

app:8 2020-11-26 12:14:25.859 pm trace  Sending httpGet [/modes/set/Day]to SmartThings hub ...
app:8 2020-11-26 12:14:25.855 pm debug Sending mode change event to SmartThings: Day

Took forever to find where the Mode is displayed in the New App. :frowning:

So after previous oversite I started over. Deleted all apps and started from scratch. Now I don't see ability to add oauth. I must be losing my mind or something. I am sure I am doing something wrong. This is my first step. No remote Hubitats.

is that screen shot from your server hub? my ST one is different?

i just noticed my other hubitat hub is not synching either . there is no mode options at all on that one

I got past my issue. I have one final question. When configuring the app on the HT, it says click install button on remote hub. I am unsure where to place the Oauth key in ST hub.

oAuth and 'the Key" are independent.

oAuth gets set in the IDE, when you added the Remote Client code.

The key is added via the ST mobile App inside the Remote Client app when it's running.

Because I've already added the Key, that image shows "hidden" where the key got pasted.

I have ordered a second hub with the intent of using the second hub to install the telnet version of the Envisalink/Honeywell integration. This integration is super chatty so I am going to load it on the second hub and use HubConnect.

I also have 2 Smartthings presence sensors that are also very chatty. If I load these 2 sensors on the second hub and mirror them to my main hub will they end up being chatty on both hubs?

1 Like

Yes.

Assuming there's differences between reports. Do you mean this device: ??

Screen Shot 2020-11-29 at 10.55.19 AM

Because that device just sends a single 'check-in message" every few seconds.. I would not call that 'chatty.' However, you could use a virtual presence device as a 'filter' and just have a RM rule copy changes to the virtual presence and mirror just the virtual presence.

Yes, that is the device. In that case, I will just leave them on the main server hub. Thanks for the reply.