[RELEASE] Other Hub SmartThings Integration 2.0

@krlaframboise Sorry if this is an obvious question. It's been a while since I've had Other Hub installed because my "other hub" has been sold. Can I trigger a ST simulated contact sensor via Other Hub ? I'm hoping that I can so I can trigger TTS on Alexa via a ST simulated contact sensor, which apparently works.

I'm just wondering if this is worth pursuing, as I'm not able to enable the ST skill right now for some reason, so I can't test the idea myself.

1 Like

Is there a way of pushing Button events via other hub pusher?

I would love to keep all my devices on Hubitat and push the events to ST (Locally wound be even better).

I canโ€™t see any button category on the settings page.

Otherwise I love that this works..

Thanks

Tim

If you enable the real-time integration for contact sensors then when the contact open/close event is created in Hubitat the virtual device in ST will change within a couple of seconds.

1 Like

I don't believe this will be an easy feature to implement so for the time being you could create a virtual switch in Hubitat that gets turned on when the button is pushed and automatically resets back to off. You can use that switch in your ST automations instead of using button.

It's not the cleanest solution, but it should solve your problem.

1 Like

Thanks for the idea. I will give it a try.

Tim

Continuing conversation from:

Huh so both my Presence Sensor with switch and @cwwilson08 's Motion with switch are coming through the other end as switches. The Hubitat Virtual Motion Sensor comes through as a motion sensor.
Something in the code is identifying it as a switch and creating it as a switch in ST. I'll have to look at this all later. Maybe I can dig into the app, it's been a while :wink:

Tagging @ogiewon to continue the conversation here.

Maybe use the code on the st side and tie together with ifttt?

@SmartHomePrimer and I were actually discussing something similar earlier today. I believe he is using assistant relay to trigger the st side.

If the device has the switch capability it's going to be identified as a switch, but you can easily go into the IDE and change the Type to motion or presence...

2 Likes

I write this up when Iโ€™m able. Itโ€™s very fast and reliable with Google Assistant Relay.

I wasn't sure if that would break the functionality. Will try tonight.

As long as you change it to one of the other hub DTHs it should be fine.

It seems like the hub is required. It's all working now. I just have to set up some practical announcements.

Thanks for this!

2 Likes

So, I have a problem with the motion child device. I linked a motion sensor from HE over to ST and I can see it in the mobile app. And it updates when I get events from the sensor, although the color doesn't change and the event is not logged in Recently on the ST app, and I don't know why. But the device is also not available to select in my instance of WebCore that is connected to ST. This has REALLY screwed me because most of my devices are still on ST and I haven't started porting over all my webCore Pistons yet. Anyone have any idea why this device would not be selectable in WebCore? I copied the DTH's from Github for all the devices and it has definitely picked the Motion child DTH in ST.

Something similar happening to me for motion sensors. What type of contact device are you trying to use?

Do you have the real-time integration enabled for motion?

This might be completely unrelated, but the SmartThings Android app seems really sluggish tonight and I sometimes have to go back and forth between the things screen and the device a few times in order to see changes. That's happening with all my devices, not just the ones generated by Other Hub.

Open the device in the ST IDE, click motion in the attributes section and see if it's been creating motion events. If you don't see motion in the attribute list then that might be why Web CoRE can't see the device.

I do have realtime for motion enabled. In the ST IDE I see nothing at all for the device. Which is odd because the display of Active or Inactive changes but it doesn't seem like anything is being logged.
Where do I click on Motion? Under the device? I don't see that in Live Logging.

This is what is being logged under the device under "OtherHubData"

|Date|Name|Value|Units|
| --- | --- | --- | --- |
|2018-10-17 1:03 AM EDT -  *moments ago*|otherHubData|**{"id":"OH-Device2C3AE8429D45-motion1","displayName":"Bedroom Motion","activity":null,"attrs":{"motion":"inactive"},"caps":["Motion Sensor"]}**||
|2018-10-17 1:01 AM EDT -  *5 minutes ago*|otherHubData|**{"activity":"2018-10-17T05:01:14+0000","attrs":{"motion":"inactive"},"caps":["Motion Sensor"],"displayName":"Bedroom Motion","id":"OH-Device2C3AE8429D45-motion1"}**||
|2018-10-17 12:57 AM EDT -  *8 minutes ago*|otherHubData|**{"id":"OH-Device2C3AE8429D45-motion1","displayName":"Bedroom Motion","activity":null,"attrs":{"motion":"active"},"caps":["Motion Sensor"]}**||
|2018-10-17 12:57 AM EDT -  *9 minutes ago*|otherHubData|**{"activity":"2018-10-17T04:57:47+0000","attrs":{"motion":"active"},"caps":["Motion Sensor"],"displayName":"Bedroom Motion","id":"OH-Device2C3AE8429D45-motion1"}**||
|2018-10-17 12:57 AM EDT -  *9 minutes ago*|otherHubData|**{"id":"OH-Device2C3AE8429D45-motion1","displayName":"Bedroom Motion","activity":null,"attrs":{"motion":"inactive"},"caps":["Motion Sensor"]}**||
|2018-10-17 12:55 AM EDT -  *11 minutes ago*|otherHubData|**{"activity":"2018-10-17T04:55:31+0000","attrs":{"motion":"inactive"},"caps":["Motion Sensor"],"displayName":"Bedroom Motion","id":"OH-Device2C3AE8429D45-motion1"}**||
|2018-10-17 12:53 AM EDT -  *13 minutes ago*|otherHubData|**{"id":"OH-Device2C3AE8429D45-motion1","displayName":"Bedroom Motion","activity":null,"attrs":{"motion":"active"},"caps":["Motion Sensor"]}**||
|2018-10-17 12:52 AM EDT -  *14 minutes ago*|otherHubData|**{"activity":"2018-10-17T04:52:16+0000","attrs":{"motion":"active"},"caps":["Motion Sensor"],"displayName":"Bedroom Motion","id":"OH-Device2C3AE8429D45-motion1"}**||
|2018-10-17 12:42 AM EDT -  *24 minutes ago*|otherHubData|**{"id":"OH-Device2C3AE8429D45-motion1","displayName":"Bedroom Motion","activity":null,"attrs":{"motion":"inactive"},"caps":["Motion Sensor"]}**||
|2018-10-17 12:41 AM EDT -  *25 minutes ago*|otherHubData|**{"activity":"2018-10-17T04:41:17+0000","attrs":{"motion":"inactive"},"caps":["Motion Sensor"],"displayName":"Bedroom Motion","id":"OH-Device2C3AE8429D45-motion1"}**|

That sounds like the behavior of the "Other Hub Device" handler so are you sure you have the Type field set to "Other Hub Motion Sensor"?

For some reason it picked Other Hub Device instead of motion sensor.

If you change it to motion sensor and then trigger it in Hubitat it should work as expected. That also explains why Web CoRE couldn't see it.

1 Like

Yup...looks like it's working now. PHEW. Thank you! :+1:

1 Like