[Endpoint SmartApp] HubiThings Replica

Announcing a solution to allow real-time bi-direction updates between Hubitat and SmartThings devices, modes, scenes and push notifications utilizing the SmartThings OAuth Cloud API. Includes the ability to have multiple ST locations with multiple ST hubs replicated to a single Hubitat hub. It is not a requirement to have a ST hub to operate mirror functions to cloud native ST devices.

This solution requires a reasonable degree of understanding of both Hubitat and SmartThings. The original design was to mirror the few devices I have remaining in SmartThings to Hubitat in a real time fashion, but grew into a full project thanks to @Alwas, @bthrock, @hendrec, @swade, and @hendo25.

One primary use is to allow ST webCoRE users to continue enjoying that application operating on Hubitat. Please note, this is NOT a replacement for HubConnect and doesn’t operate the same. Obvious shout out to both incredible products.

The HubiThings Replica application collects the capabilities of the ST device and stores the information in the HE device data section. Then using ‘rules’ to define commands and attributes from both the ST device and HE device establishes mirror functions. The HubiThings OAuth application drives real-time communication between ST and HE and issues those events to Replica. There are native Replica devices handlers and they auto-configure ‘rules’ for you - suggest you use them.

We now have native HE<->ST mirroring support for the following devices with more coming every day!

SmartThings Devices

  • Alarms
  • Arlo Cameras
  • Buttons
  • Dimmers
  • EnvisaLink
  • Garage Doors
  • Locks
  • Motion Sensors
  • Multipurpose Sensors (Contact Closures)
  • Presence Sensors
  • SmartThings Hubs
  • Switches
  • Water Sensors
  • Window Shades
  • Motion Sensing Doorbells
  • Temperature and Humidity Sensors
  • Thermostats
  • Color Temperature Bulbs
  • Samsung TVs
  • Samsung Soundbars
  • Samsung Air Conditioners
  • Samsung Ovens
  • Samsung Dishwashers
  • Samsung Refrigerators
  • Samsung Washer
  • Samsung Dryer

SmartThings Cloud Virtual Devices

  • Virtual Switch
  • Virtual Dimmer Switch
  • Virtual Button
  • Virtual Contact Sensor
  • Virtual Garage Door Opener
  • Virtual Motion Sensor
  • Virtual Multipurpose Sensor
  • Virtual Presence Sensor
  • Virtual Siren

If interested, please join us here!

10 Likes

Reserved for future use.

VERY nice!

As an Alpha Tester, it was a privilege to go on this journey with you. This is truly well done, a professional effort at every level, and I’m excited to see it shared with the community at large at last in BETA form.

With HubiThings Replica and a Hubitat Hub, webCoRE is back for SmartThings users!

As @Bloodtick_Jones notes, the primary post is here

4 Likes

Very nice!

Out of curiosity, with the new Hubitat/HomeKit integration, does this work as a substitute for Homebridge for the device classes that Hubitat exposes to HomeKit? Or is that a bridge too far? :thinking:

1 Like

I have soooooo much work to do. :weary:

4 Likes

I have tagged this with “edge_services” even though it’s using the REST API because I think that’s where most people will see it on the quick browse lists when they are looking for third-party integrations, including hubitat. :sunglasses:

1 Like

Updates to Beta HubiThings Replica 1.2.05 posted.

3 Likes

It should be possible with a combination of Virtual devices and some state mirroring. The question is can HubiThings Replica use a built in Virtual Device. If not you would need to further replicate the state from the Hubireplica device to an official virtual device.

1 Like

Updates to Beta HubiThings Replica 1.2.09 posted.

  • Supports multiple component ID devices such as Buttons.
  • Bug fixes and powerful jQuery DataTables sort and search functions
  • Coming soon, ST Scene replication and ST Virtual Cloud Device creation and lifecycle support.
4 Likes

Updates to Beta HubiThings Replica 1.2.10 posted .

  • Update to object ST API command to support color bulbs. Thanks to @djgutheinz for the patch!

@djgutheinz has Replica Device Handlers for color bulbs here.

1 Like

REPLICA 1.3.00 RELEASE

Release Code 1.3.00 posted.

  • Update to Replica to support @djgutheinz super awesome drivers for Samsung TVs, and Samung Soundbars
  • Update to Replica to support refresh() API to SmartThings
  • Replica allows duplicate attributes from ST devices for rules configuration
  • OAuth uses modals for authorization with single click installation
  • Additional commentary to aid new users
  • Replica DH support for disabling of info logging

This is consider a formal release and we are now actively moving to support HPM installs going forward.

Supports:

  • Arlo Cameras
  • Buttons
  • Dimmers
  • EnvisaLink
  • Garage Doors
  • Locks
  • Motion Sensors
  • Multipurpose Sensors (Contact Closures)
  • Presense Sensors
  • SmartThings Hubs
  • Switches
  • Water Sensors
  • Window Shades
  • Motion Sensing Doorbells
  • Temperature and Humidty Sensors
  • Thermostats
  • Color Bulbs
  • Samsung TVs
  • Samsung Soundbars
  • Samsung Air Conditioners
3 Likes

Any idea why it finds only some devices, when they are of the same type?

Can you expand your question? Is this in the authorization section (OAuth)? or main configuration section (Replica)? How many devices are you attempting to replicate?

The app does not (or should not) have logic that would limit by type. OAuth is location dependent so you need to make an OAuth per location if you have devices set that way.

REPLICA 1.3.02 RELEASE

New release Replica 1.3.02 today to support ST event data:[:] and unit:“” arguments.

Replica Lock 1.3.2 updated to support:

  • capability “TamperAlert”
  • capability “ContactSensor”
  • Hubitat Lock Code Manager (LCM) application

LCM support has proven difficult with the differences between ST & HE lockCode capability. ST does not expose ‘codes’ so if they are set local or within ST app, HE will not know the new code and update to ‘local’ status. Also, very little documentation (none) on how LCM actually works with data:[:] structure, so YMMV on how well it works for you.

If you use webCoRE, you can see the data:[:] value as shown below (ST lock must support):

image

2 Likes

REPLICA 1.3.03 RELEASE

New release Replica 1.3.03 supporting native ST Virtual Devices. Install instructions here with HPM updated to match.

Replica 1.3.03:

  • Support for ST Virtual Device creation. Intial devices are Dimmer and Switch.
  • Support for ST device ‘swap’ replacement to allow user to redefine the ST<->HE configuration.
  • New UI create/delete/modify scheme for device automations.

Replica Location Knob DH 1.3.0:

  • Useful for ST locations that do not have Hubs. This allows you to set & get mode and other status information. Can be used in place of the Replica SmartThings Hub DH.
  • Includes attributes: mode, latitude, longitude, oauthStatus, switch

Replica Alarm DH 1.3.0 [optional]:

  • Stand alone Alarm configuration.
  • Includes attributes: Alarm, Battery, ContactSensor

Replica Lock DH 1.3.3 updated to support [optional]:

  • Hubitat Lock Code Manager (LCM) application

Example ST Virtual Device creation:


Allows for automatic build of the HE device type and handles the subscription for events as one creation.

SAMSUNG DRIVERS+ BY DAVE

Please see here for new @djgutheinz device handlers and information.

4 Likes

REPLICA 1.3.05 RELEASE

New release Replica 1.3.05 supporting ST Scene mirroring, 200+ ST devices. Install instructions here with HPM updated to match.

Replica 1.3.05:

  • Support for ST Scene replication.
  • Support for 200+ ST devices.
  • Increased OAuth device subscription from 20 to 30.

Replica Scene Knob DH 1.3.0:

  • Used for ST<->HE Scene mirroring.
  • NOTE: A SmartThings virtual switch will be created, and it must be added to the SmartThings Scene ‘actions’ in the mobile ST app and set to update the switch to ‘Turn on’ when the scene is triggered as shown:

image

SAMSUNG DRIVERS+ BY DAVE

Please see here for new @djgutheinz device handlers and information.

2 Likes

REPLICA 1.3.06 RELEASE

New release Replica 1.3.06 supporting ST Natural order sorting for device input dropdown selectors and large device lists greater than 25 items. Install instructions here with HPM updated to match.

Replica 1.3.06:

  • Natural Order on device input dropdown selectors.
  • Natural Order with device lists greater than 25 items using the jQuery DataTables widget.
  • Replica UI device list warning for HubiThings defined in HE but missing ST device (Not Authorized).

Possible HubiThings Device List errors:

image

Offline: SmartThings device has been declared offline by ST. This is also available as an event attribute in each Replica Device Handler.
Solution: Check ST UI to determine device status for resolution.

Not Authorized: ST device assigned to the HE device is no longer available.
Solution: Select new ST device for subscription in OAuth application and then return to ‘Configure HubiThings Devices’ and use the ‘Replace’ function to update the HE device [if required].

No Rules: The HubiThings device is missing ‘rules’ to describe mirroring between ST<->HE. This is required when not using Replica Device Handlers as child devices.
Solution: Use ‘Configure HubiThings Rules’ to match ST attributes/commands to HE attributes/commands as required.

SAMSUNG DRIVERS+ BY DAVE

New Samsung Refrigerator Driver

Please see here for new @djgutheinz device handlers and information.

1 Like

REPLICA 1.3.07 RELEASE

New release Replica 1.3.07 supporting ST Natural order sorting [patch], bug fixes for Replica UI, and OAuth warnings for hub migrations. Install instructions here with HPM updated to match.

Replica 1.3.07:

  • Natural Order on device input dropdown selectors patch.
  • Replica UI bug fix for null devices.

OAuth 1.3.07:

  • OAuth warnings for hub migrations to C-8 etc.

REPLICA DRIVER BY BOB

Please see here for new @bthrock Sonos Replica device handler and information.

SAMSUNG DRIVERS+ BY DAVE

Please see here for new @djgutheinz device handlers and information.

1 Like

REPLICA 1.3.08 RELEASE

New release Replica 1.3.08 supporting more native Virtual SmartThings device solutions and Push Notifications. Now includes Virtual ST support for:

  • Virtual Switch
  • Virtual Dimmer Switch
  • Virtual Button
  • Virtual Contact Sensor
  • Virtual Garage Door Opener
  • Virtual Motion Sensor
  • Virtual Multipurpose Sensor
  • Virtual Presence Sensor
  • Virtual Siren

Includes the ‘rules’ to allow for easier one click mirror function of physical HE devices back to ST.

Install instructions here with HPM updated to match.

Replica 1.3.08:

  • Support for more SmartThings Virtual Devices.
  • Refactor of deviceTriggerHandlerPrivate() to support.

OAuth 1.3.08:

  • Support for more SmartThings Virtual Devices.

Replica Location Knob 1.3.1:

  • Updated to support SmartThings push notifications. Please see here.

SAMSUNG DRIVERS+ BY DAVE

Please see here for new @djgutheinz device handlers and information. *Now available in HPM for installation and updates.

3 Likes