[RELEASE] HubiThings Replica

Getting an error on clicking Replace:

What is your ST device selected above? That swaps out the current ST device with the selected ST device.

I may have misinterpretted the point of this. I wasn't sure if I had to inform the Replica app that the device type was changing and this offered a method to update an existing replica device to a new type (installed the color temp to try and control some hue strips, instead of off/on).

Now I get no errors, but the device type is not updated. Is it supported to simply change the device in the device settings to replica color temp light?

PS.... Little nuisance, not complaining just providing feedback, but I use a DNS entry for my Hubitat and it appears some links are hardcoded to IP address (Device List links).

As always, Thank you for this work

The “replace” is not to change type but to change the actual ST device itself. For example if you get a new phone and want to change the current phone automation on HE to the new one. Basically it just keeps the HE device as-is.

1 Like

Not sure what you are seeing - but there are no IP addresses used.

The SmartThings cloud API is DNS controlled and within Replica the devices are tracked via deviceIds (ST) and networkDeviceIds (HE) which again are not IP related.

Okay, that makes sense, but is still 'no'. What is going on there is the Device List is HTML dynamic using the address that Hubitat knows and then a very specific path to the UI object.

So if you change your Hub address (which really isn't a suggested practice) that path would change to follow. It really doesn't do anything then route you similar.

Here is the code that forms that HTML URL:

 "http://${location.hub.getDataValue("localIP")}/device/edit/${replicaDevice.getId()}"
  "http://${location.hub.getDataValue("localIP")}/installedapp/configure/${smartDevice?.appId}"

Good question. :slight_smile:

2 Likes

Hi,

I have ZWave locks and gararage door opener in SmartThings but some how not listed in the list for me to select to replicate to HE with this.

What am I missing.

Please help me!

Thanks!

Locks & Garage Doors are hit or miss in functionality, but you should be able to see them regardless.

Please confirm you are authorizing them first in the OAuth Child application from the configuration section:

image

And each OAuth is location dependent. Confirm your location is correct.

Do you see any devices in the OAuth and just locks and the doors are missing?

1 Like

I only have 1 main location where all of my devices are in in ST. I see a lot of my devices in the list but not all of them specially lock and garage door opener

Please send private DM with a screenshot of the OAuth list.

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.

Update 2023/02/26: Release 1.3.06. Change log here.

2 Likes

I just found this thread and will be working on getting this working on my HE.

I had a ST a few years back, but removed it once I got all my devices switched.
I recently bought an Induction cooktop and an air fryer range.

Would love to be able to tell if the light or oven has been on for more than x minutes.

My wife sometimes forgets to turn them off.

1 Like

Samsung Refrigerator Driver

  • Requires Replica_Samsung_Refrigerator driver plus two children: Replica_Samsung_Refrigerator_cavity, and Replica_Samsung_Refrigerator_icemaker.
  • Added installation steps: None
  • Design Notes:
    • If a child does not install, attempt the Configure Command on the parent device.
    • Not all commands are available on all of the large number of years/models of Samsung Refrigerators.
    • Design does not support scales nor patries.

Github Location: HubitatActive/HubiThingsReplica Drivers at master · DaveGut/HubitatActive · GitHub

Readme: HubitatActive/README.md at master · DaveGut/HubitatActive · GitHub

3 Likes

Just want to say this is awesome, blown away by the UI of the app. Right down to the little details with icons it is all awesome and flows perfectly. Did not even really need the instructions it was so intuitive.

I saw a lot of talk about this but never realized what it was. I only have a lonely Fridge and Oven on the ST Cloud and was using the drivers that had to be polled. Now I can get real time updates on the door sensors and temps. I am not even sure what I am going to do with it yet!

Nice work @Bloodtick_Jones and all who helped. Thanks @djgutheinz for the Fridge and Oven drivers. :clap: :clap: :clap:

I did notice one thing if it hangs anyone else up. When you are adding a device if you go to change the name of it before creating, you have to click off the entry box and let the page update itself before you click the Create button. I think this is just the way Hubitat is with apps. The first time I clicked the button right away and it I thought it was doing something but then it didn't create the device. Next time around I figured out my mistake.

EDIT: So when company is over people always somehow manage to turn the stove top on with fat bellies. I have the stove with the front knobs. I don't know how they manage to press and turn the knob without knowing it... But anyway... might put an indicator light on top of the cabinet or do an announce with Echo Speaks when the stove is turned on.

6 Likes

First, thank you for the kind words. It has been fun working with Dave and others on this project. :slight_smile:

...and to your statement on name fields, yes - you need to click out of the text field before the application will accept the change. I have not found a way to avoid this, but open to suggestions if someone does!

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.

Update 2023/03/14: Release 1.3.07. Change log here.

3 Likes

So i migrated to the C8. Replica migrated mostly but im.not getting device updates in Hubitat from ST. Device control is working fine and if I manually refresh a device it syncs its status.

Tried reauth and removeling readding devices.

Any thoughts?

The update events all come from the OAuth app. It should look like this if authorized correctly:

image

I don't have 'my' C-8 yet, but there isn't anything special that would prevent from working to my knowledge.

If OAuth looks funky, just hit the 'Delete API' and redo the authorization. It will remember all your devices so you will not loose anything after the new authorization completes.

3 Likes

Thanks for the quick response and that looks to have fixed it.

1 Like