Smartthings Binding EOL?

Hello all,

Just a quick message to tell you that I have started to implement a new version of Smartthings binding.

This new binding would be fully cloud-based on the first version (no use of the hub, no Device Handler, no SmartApps).
I will see after the first version If I implement also hub-based version, but I’m not sure we really need it.

This is currently a Work In Progress, but I you want to have a first look, you can find it here:

What is working so far :slight_smile:

  • OAuth authentification to Smartthings site.
  • Basic Cloud bridge handler
  • Basic call to Smartthings API.
  • Very basic device discovery: so far only device name, and start to implement device type/capabilities.

What has to be done :

  • Add device state update from Smartthings Cloud API
  • Add device Update command from Openhab to support controlling the device.

Using the biding would need to register a dummy Smartapp using the smartthings CLI to setup the OAuth authentifications. I have not documented the process so far, will do it in the next few days. Basically, you will have to create the app, register the OAuth redirect URI, and take notes of the OAuth clientId and clientSecret that will need to feed the Openhab binding configurations.

Best regards,
Laurent.

3 Likes

Hello Laurent,

Are you still working on your new version of the Smartthings binding? I am sort of desperate to regain access to Smartthings from OH. I am not a professional computer scientist, just a very basic amateur. Thus, I am not sure I can really help you, but I would be glad to do so if I can.

Cheers,

Pierre

p.s. Bonjour du Québec!

Hello Pierre,

Yes still working on it.
But try to finish my previous addon before, the one for SiemensHvac.

The current state of Smarthings is still in progress. Last time I work on it 3 weeks ago, I was able to switch off/on light, dimer them, and things like that. This still need a lot of work to handle the full range of devices. I also still need to implements device state reading.

Just to let you know, will not be very usefull to you, but current source are publish on github : GitHub - lo92fr/openhab-addons at smartthingsNG

Laurent.

Thanks Laurent for your contribution. One suggestion, start a new thread to announce your work in progress binding. This is a year old thread and some folks don’t look at old threads. Great work!!! :+1:

Bonjour Laurent,

Merci de votre réponse!

Any progress on this lately? I have a whole kitchen full of smart Samsung-appliance I could help test with if that would be of any help.

Thanks for making an effort!

Hi all,
With the eye on getting solar panels installed I’m listing devices which we can automate.
I came across our washer, which has a smartthings logo on it so I’m anxious to get the binding working.

If needed I can lend my java coding hands :wink:

1 Like

Hello All,

For information, I’ve create a new issue : Smartthings Binding : adding support for new Smartthings API · Issue #17907 · openhab/openhab-addons · GitHub to follow the progress on fixing this.

The new binding is no pretty ready for beta testing.
There is still some things not working, but the basic new logic is there.
Details in the issue : https://github.com/openhab/openhab-addons/issues/17907#issuecomment-2543939684

If there is some people interested in testing the new version, they can take contact with me.
Please continue futher discussion on the new issue :slight_smile:

Laurent.

Hello @MrRusch,

please see my new post bellow.

Laurent.

@lo92fr
Awesome to see you’re making progress!
I’m happy to help test. Could you provide a build of the updated binding?

Yes, that would be helpful. tryed to build one from the git repo, but that one didn’t work, kind of arbitrary check-out.
Or you provide a label or hash you consider somewhat stable

Hello,

If your on the latest developement branch (5.0), you will generaly find the jar from the openhab artifactory.

Currently last build from today is there :
https://openhab.jfrog.io/ui/builds/PR-openHAB-Addons/25035/1735578613069/published/org.openhab.addons.bundles:org.openhab.binding.smartthings:5.0.0-SNAPSHOT

To find the last build, you can go to the pull request page :slight_smile: [smartthings] WIP Refactor binding to make use of new API by lo92fr · Pull Request #17855 · openhab/openhab-addons · GitHub

At the end, in the check section, you will find a line like this:
(openhab-bot · GitHub)
PR-openHAB-Addons — Build #25035 ended Details

Follow this links, then in next page, click on “Artifactory Build Info” in the left menu.

Then follow the link org.openhab.addons.bundles:org.openhab.binding.smartthings:5.0.0-SNAPSHOT in the module list.

In the next page, you should be able to download the addon.

If you need an older versions, let me know which one.
I will try to compile a jar for you.

Laurent.

1 Like

About checkout and compilation, you will have to checkout the branch from this uri GitHub - lo92fr/openhab-addons at smartthingsNG as the pull request is currently not merged into the openhab main repository !

Laurent.

1 Like

Hi Laurent,
I picked up a build from artifactory as pointed out by you above.
I get the bridge thing online and proceed as described until the browser popup to
SmartThings
appears. At that point I see only an animated dot circling around.
When entering the URL manually, I get only pahe not found HTTP ERROR 404.
Any ideas on that ?

br, Udo

Hi Udo,

I review my code, and see that I left some code specific to my own openhab instance, so it will not currently work in your case. Sorry for this.

I wil try to review it on the next days, and come back to you with a new version.

Laurent.

If you would compile a jar for latest stable 4.3.2 that would be great.