Need some help linking Smartthings to Openhab. I have truly followed the entire set of requirements. Loading the files & configurations into Openhab, linking the Samsung Smartthings Connect Classic with the correct device handlers, etc.
The Connect App correctly sees all my Smartthings & I can control them for there. Openhab has the binding show as connected under bindings under Configuration. All the possible choices of product type show. I have 2 Smartthings I am initially trying to connect - the Motion Detector & the Water Leak Sensor. I have marked them in the Connect app & in the Smartthings links.
On my BasicUI interface, I have configured the things, items, bridge, and channels using the configuration files. The item shows in my choices - it does not have any value for movement for motion detector. The motion sensor shows under Control but does not show any value. I could really use some help. I am thinking the binding & the items are not linking correctly.
Hi Seth
It has been a super long time since I used Bobâs smartthings binding but I do remember when you get the two talking to each other, you see the smartthings responses in the OpenHAB log. I think in the smartthings IDE where you created the device handler there is also a log where you can see to messages being sent
Also try another channel on the same device like the tempurature channel
I will look at the OpenHAB & smartthings app logs. I believe the IDE smartthings log is in the Smartthings app. I have not looked there.
You are right - I will also try another channel for temperature. It concerns me that the Motion Sensor does not show anything in the Control option in PaperUI. Appreciate your help. Thanks.
I did see outgoing actions to Openhab from Smartthings connect. At first, I saw error messages in the log in openhab from Smartthings. Unfortunately they have stopped. I am hoping I do not have to reinstall everything. I will keep trying. Any suggestions would be helpful.
Seth
sorry did not see your reply sooner. It sounds like you had it working a little bit. That was how it was for me but I was a total 100% noobie at OpenHAB at the time. If Iâm remembering correctly, the app in smartthings just send normal http requests to OpenHAB. In the OpenHAB log, you could see the error message telling you what was not working correctly and causing the problem. I think in my case, because I did not know how it worked, I had something miss configured or not configured. I could see the http request getting denied in the log
Try going back and looking at the log back when it was trying to work. You may spy your issue. If not or log is gone, try going in the smartthings app and stop and restart the device handler and watch the logs on both in real time
copied from instructions:
In the Preferences section enter the following:
ip: (This is the IP address of your OpenHAB server)
mac: (This is the same as the Device Network ID but with : between segments
port: 8080 (This is the port of the OpenHAB application on your server)
Save the preferences
oh now I think I remember my main snafu
if you follow the above link in Bobâs post (here for installation instructions) there is a link to the smartthings installation part which links to this page https://github.com/BobRak/OpenHAB-Smartthings/blob/master/org.openhab.binding.smartthings/SmartthingsInstallation.md
after reading that I had been unable to get the current smartthings app to work as described in the instructions. instead I noted the bottom of the above linked page had a note about using the âclassicâ smartthings app Once I found this classic (older) app on the playstore and downloaded and installed, it worked as in the instructions. It was then I saw the errors start to pop up as described previously. I fixed the problem in the config and joy
joy was not long lived. All my smartthings devices died pretty quickly but by then I was hooked
Thank you. I will continue to work this problem from both sides. I will update this thread this weekend. I really would like to get this popular set of products, Smartthings to work. Thank you. Seth
I followed these same instructions and it was clear on how to configure the Smartthings side., but I am lost on what to do from the openhab side. From what I got. there shoud be a binding like this.
" The bridge requires the IP address and port used to connect the OpenHAB server to the Smarrthings Hub.
You are almost there then Yusef
You I donât think need to manually create a Bridge, I think it does it all in Paper User Interface. Follow these instruction to create the Bridge thing then run discovery and it should find your devices
Start the PaperUI
Click on Configuration > Things
Click on ADD THINGS and select the Smartthings Binding.
On the displayed screen select the Smartthings Hub.
In the Configurations Parameters section enter the IP of Smartthings hub and enter the port number, which is probably 39500. Click on the check mark
Click on Inbox
At the bottom of the screen click on SEARCH FOR THINGS
Select Smartthings Binding
You should now see the Smartthings Things in the Inbox
find the ip address of the smart things hub in the app or on your router. Your router is going to need to be configured with a ip reservation for the smart things hub so it always has the same ip
I must be missing something because the smartthings binding isnât there. I have a smartmeter binding and bindings for samsung tv. Is there a way to add a binding?
I didnât see anything about this file in the directions. I assume I install java, run the .jar file and restart Openhab2, and the binding should be there. Thanks for all your help. I tried Openhab years ago and thought it was to complicated. Since then I have been using Home Assistant for about the past 4 years. I recently started using Node Red for my automation and saw that I could use Node Red with Openhab also so I thought why not run them both since I have some extra Raspberry P3Bs laying around. I have everything working in Openhab except Smartthings, Tasmota. Thanks again for all your help. Once I get this done I will tackle Tasmota next.
Still no luck. I put the file in the addons directory and restarted. No luck. I tried to run the .jar but got an error. Do you know of any clear instructions somewhere?
openjdk version â10â 2018-03-20
OpenJDK Runtime Environment Zulu10.1+11 (build 10+46)
OpenJDK 64-Bit Server VM Zulu10.1+11 (build 10+46, mixed mode)
root@Office:/var/lib/openhab2/tmp/mvn/org/openhab/addons#
root@Office:/var/lib/openhab2/tmp/mvn/org/openhab/addons# java -jar org.openhab.binding.smartthings-2.5.0-SNAPSHOT.jar
no main manifest attribute, in org.openhab.binding.smartthings-2.5.0-SNAPSHOT.jar
Java is a requirement of OpenHAB. Once java is installed, you really donât need to worry about it.
Once you place the .jar file in your addons directory, you donât have to try to ârunâ the file. OpenHAB will see the the file in the addons directory and should make its functionality available in OpenHAB.
With all that said, I seem to remember having to get something working in the smartthings app before it would show up in OpenHAB. But⊠It was a long time ago
What worked for me is in one of those posts above
Due to an issue i have been having with google assistant lying to me, i decided to work around the issue and just get a SmartThings hub to handle the Google assistant interface, and use this binding to allow OpenHab to control other automation.
I seem to have gotten things up and running, more or less, i was able to find all the things connected to the ST hub, and i can control them from OpenHab.
what i canât do though is receive status updates from the ST hub. Looking into the logs i see the following after first changing the state once via openhab and three times via SThub .
2019-11-05 00:17:34.345 [INFO ] [hings.internal.SmartthingsHttpClient] - Sent message â{âcapabilityKeyâ: âswitchâ, âdeviceDisplayNameâ: âLiving Room Ceiling Lightsâ, âcapabilityAttributeâ: âswitchâ, âvalueâ: âoffâ}â with path â/updateâ to the Smartthings hub, recieved HTTP status 202
2019-11-05 00:17:35.997 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartthingsThingHandler of thing smartthings:switch:Home:LivingRoomCeilingLights tried updating channel switch although the handler was already disposed.
2019-11-05 00:18:40.737 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartthingsThingHandler of thing smartthings:switch:Home:LivingRoomCeilingLights tried updating channel switch although the handler was already disposed.
2019-11-05 00:31:00.947 [WARN ] [.core.thing.binding.BaseThingHandler] - Handler SmartthingsThingHandler of thing smartthings:switch:Home:LivingRoomCeilingLights tried updating channel switch although the handler was already disposed.
Can anyone help me understand what is happening here, or what i can do to fix it?
Iâm seeing the same thing - and itâs weird because it seems to be a race condition for me. Some times the items link up between SmartThings and OpenHAB, other times they donât.
Hi, @Yusef_Davis
somehow I run into the same problem.
Copied the jar-file into the addon directory and do not see the Binding in PaperUI as described in the guide.
have you had luck with solving the issue in the meantime?
And in relation to Grandmaster.sevenâs Question: Iâve that HUB (V3,EU), too