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

community_app

#466

I see what it is, in my case, apparently it's a contact sensor I shared from server to ST, when the battery report came in.

Now from the live logs below, above is from past logs

By the way, @chuck.schwer or @mike.maxwell , why this difference in the logs? in the live logs it says trace but if you go to past logs it changes trace for debug. thanks.


#467

Yep, it works fine when controlled from the HubConnect device on the server hub (either the device page or dashboard).


#468

Its a bug, thanks for the report.


#469

At least that narrows it down. I’ll have a look into it. Thanks!


#470

I am trying to install this on my HE hub and ST hub. Your instructions say to install the "HubConnect Server Instance for Smartthings" on the SmartThings Remote Hub but this file doesn't exist. I am guessing that you mean to install the "HubConnect Remote Client" under the Smartthings directory? So that is what I did and I setup the connection on the HE hub but when I open the HubConnect app in ST and to to setup the Connect to Server Hub nothing happens when I press on this option. Well I get the little spinner like it will go to the selection but nothing happens. So I can't fill in my info from the HubConnect Server.


#471

Yes

Did you oauth the app?


#472

I did oauth the app in HE. I didn't see it in ST.


#473

yes, !!! It does !!!

But it does point to the correct code. HubConnect-Remote-Client.groovy" from the SmartThings folder. :slight_smile:

Steve is going to have to find a new reviewer.. his current one SUCKS.

oh.. wait, I reviewed that twice.. and missed it.. please don't ask Steve to replace his reviewer :frowning:


#474

It's in App Settings.. then scroll to the bottom.

57%20PM


#475

Yeah that worked!:stuck_out_tongue:. Should have realized that. Thanks!


#476

Nah. You’ve been a big help and are a great support agent!! Just for everything you’ve done I’m going to double your salary!


#477

0x2?


#478

A bargain at double the price!


#479

It also says it for the Hubitat remote installation.:stuck_out_tongue_winking_eye:


#480

Will the Mode changes work both ways. HE to ST and ST to HE?


#481

I think I have an issue here.

I'm using webCoRE on my Master hub, and when I use any device which resides on both hubs, I'm seeing double executions.

app:55172019-04-04 03:39:54.759 pm infoReceived event from Hub_1/Office Lights: [switch, off , isStateChange: true]
app:55172019-04-04 03:39:54.750 pm infoReceived event from Hub_1/Office Lights: [switch, off , isStateChange: true]
app:55172019-04-04 03:39:54.653 pm infoReceived event from Hub_1/Office Lights: [switch, off null]
app:55172019-04-04 03:39:54.565 pm infoReceived event from Hub_1/Office Lights: [switch, off null]

Maybe this wouldn't normally cause any issues, but I'm using webCoRE and its executing Pistons connected to said devices twice too. This is causing quite an overhead in processing and creating a huge queue on actions.

Is this by design, or is it an actual issue?
webCoRE is running on my Master hub, so not the Hub with the physical devices.

Another example of a button push which toggles a lamp.
You can see the push twice, and the lamp turns on twice.

app:55172019-04-04 03:51:54.059 pm infoReceived event from Hub_1/Roys Bedside Dimmer: [switch, on null]
app:55172019-04-04 03:51:53.858 pm infoReceived event from Hub_1/Roys Bedside Dimmer: [switch, on null]
app:55172019-04-04 03:51:53.680 pm infoReceived event from Hub_1/Remotec ZRC-90: [battery, 92 %]
app:55172019-04-04 03:51:53.647 pm infoReceived event from Hub_1/Roys Bedside Dimmer: [switch, on , isStateChange: true]
app:55172019-04-04 03:51:53.589 pm infoReceived event from Hub_1/Roys Bedside Dimmer: [switch, on null]
app:55172019-04-04 03:51:53.151 pm infoReceived event from Hub_1/Roys Bedside Lamp: [switch, on , isStateChange: true]
app:55172019-04-04 03:51:53.119 pm infoReceived event from Hub_1/Roys Bedside Lamp: [switch, on null]
app:55172019-04-04 03:51:53.025 pm infoReceived event from Hub_1/Roys Bedside Lamp: [switch, on null]
app:55172019-04-04 03:51:52.158 pm infoReceived event from Hub_1/Remotec ZRC-90: [pushed, 1 , isStateChange: true]
app:55172019-04-04 03:51:52.109 pm infoReceived event from Hub_1/Remotec ZRC-90: [pushed, 1 null]

update
Its not only webCoRE its doing this with. The below is from Button Controllers app, when I use my Philips dimmer. I just turned the light on and off once.

dev:12622019-04-04 03:57:27.529 pm infoGroup Master Bedroom was turned off
dev:12622019-04-04 03:57:27.490 pm infoGroup Master Bedroom was turned off
dev:12622019-04-04 03:57:24.964 pm infoGroup Master Bedroom was turned on
dev:12622019-04-04 03:57:24.841 pm infoGroup Master Bedroom was turned on

Further update
I changed "Local connect type:" back to Hubitat oAuth (http) and the double executions have now stopped.


#482

Nice find, I did not test websocket vs oauth yet.


#483

I don't think I understand that statement.

My 'coordinator' logs show one entry per...

app:41 2019-04-04 09:24:12.859 am info Received event from ZeeRadioUpper/Office WallSwitch: [switch, off null]
app:41 2019-04-04 09:24:07.039 am info Received event from ZeeRadioUpper/Office WallSwitch: [switch, on null]

On the other hand, my MultiSensors do.. but only on SOME attributes:

app:41 2019-04-04 09:25:08.191 am info Received event from ZeeRadioUpper/MultiSensor6D (study): [ultravioletIndex, 0 null]
app:41 2019-04-04 09:25:08.071 am info Received event from ZeeRadioUpper/MultiSensor6D (study): [illuminance, 3 lux]
app:41 2019-04-04 09:25:04.193 am info Received event from ZeeRadioUpper/MultiSensor6D (study): [battery, 100 %]
app:41 2019-04-04 09:25:04.135 am info Received event from ZeeRadioUpper/MultiSensor6D (study): [battery, 100 %]
app:41 2019-04-04 09:25:02.297 am info Received event from ZeeRadioUpper/MultiSensor6D (study): [humidity, 36 %]
app:41 2019-04-04 09:25:01.929 am info Received event from ZeeRadioUpper/MultiSensor6D (study): [lastUpdate, 04-Apr-2019 9:25 AM null]

Only Battery doubled.

However, the next update, didn't.. same device.

app:41 2019-04-04 09:30:08.061 am info Received event from ZeeRadioUpper/MultiSensor6D (study): [ultravioletIndex, 0 null]
app:41 2019-04-04 09:30:07.988 am info Received event from ZeeRadioUpper/MultiSensor6D (study): [illuminance, 2 lux]
app:41 2019-04-04 09:30:04.129 am info Received event from ZeeRadioUpper/MultiSensor6D (study): [battery, 100 %]
app:41 2019-04-04 09:30:02.280 am info Received event from ZeeRadioUpper/MultiSensor6D (study): [humidity, 36 %]
app:41 2019-04-04 09:30:01.879 am info Received event from ZeeRadioUpper/MultiSensor6D (study): [lastUpdate, 04-Apr-2019 9:30 AM null]

#484

Sorry I wasn't clear enough.
I meant, all physical devices reside on my slave, and they are replicated on the master, as expected. But on the master I also have Virtual devices. If I use one of those virtual devices, I only see one execution, not two.


#485

My testing shows it's device specific and seems to be up to the device (same device, does and then does not duplicate.)

I'm not arguing, just trying to gleen clues from what's being seen. For me, some devices do duplicate, some don't. Those that do, sometimes don't.

I hate 'sometimes' :smiley: