Closed jjam8644 closed 4 years ago
Sorry I don't have any idea why this is happening. I have not seen this myself and haven't had other people report similar issues. I'm surprised at the timeout. ST doesn't work like a normal http server. A normal http server receives a request, processes it and then sends a response with an http 200 code. ST immediately responds with an HTTP 202. Then when it is done it sends a message back to OpenHAB as separate message. Therefore the hub always responds quickly even if it takes a while to process.
Are you using a ST v3 hub? I have a V2 hub.
Right now I don't have a working development environment. OpenHAB is reworking the build process and development tools and I am not currently able to build and therefore have no ability to test. Once I can put together a working development environment I can do some testing on my end.
My production environment which is RPi 3 is on openhab 2.4. I'm not seeing any timeout's there.
I'm not optimistic it would make a difference but is it possible for you to try openhab 2.4. You say you are on a testing version. If it is reasonably easy to change versions that might be worth a try.
Bob
Thanks for the reply. I have the ST v2 hub as well. I went to the OH v2.5 test as some of my motion sensors were not being recognized in 2.4. I am still in pre-installation testing until I can get this stabilized, so I will try going back to v2.4 and trying it with just the one Binding & just one Thing.
FWIW, used both a Pi 3B and then moved to a 3B+ to see that would help with the timeout issue.
I understand your point about the ST hub's unique response methodology, but when the timeouts occur, nothing at all appears to happen on the ST hub or is even recorded on the ST log. I think the failure is somewhere in the ST Binding-Jetty process within the OH environment.
I'll keep you updated on what I find.
OK, clean install of Openhabian 2.4 Stable on Pi 3B+. Installed just the Smartthings binding with one switch (1 thing/1 item). I am still getting the same intermittent result with Jetty timeout exception as noted in my first post.
@jjam8644
Sorry I have no idea why this is happening. The reference to Jetty in the timeout exception does make me think it is related to network IO. But the timeout is java.util.concurrent.TimeoutException
opposed to a SocketTimeout. Maybe this is how Jetty works.
I'm not seeing any similar timeouts in my production environment which is on openHAB 2.4.0-1.
Any chance you are having network issues between openHAB and your hub? Have you rebooted your hub? On you RPi are you using the wired or wireless network? Are you sure the mac address in your config on the RPi is correct. I suspect you have tried these things but I don't have any better ideas.
After revising the OH server didn't work, I I decided to do the same to the ST hub. I deleted all my ST Smart Apps And Device Handlers, rebooted my ST Hub and reloaded the Smart Apps and Device Handlers.
Everything is now working! Thanks for the help.
Thanks for letting me know. Sooner or later I plan to write an FAQ and will definitely include your experience.
Hi James,
Are you getting the same problem again? I have this problem. The communication works most of the time but it stops very randomly.
Clement
No issues since I reset the ST Hub to the factory defaults and reloaded everything.
On Tue, Jul 16, 2019 at 11:42 PM pocupine notifications@github.com wrote:
Hi James,
Are you getting the same problem again? I have this problem. The communication works most of the time but it stops very randomly.
Clement
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BobRak/OpenHAB-Smartthings/issues/78?email_source=notifications&email_token=ADRNCZAQDABZW4TF6USLOIDP725PFA5CNFSM4HWHUT6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2DGSWA#issuecomment-512125272, or mute the thread https://github.com/notifications/unsubscribe-auth/ADRNCZHOXBMJ65W2KKPJRQ3P725PFANCNFSM4HWHUT6A .
I'm having a timeout issue as well
[iscovery.SmartthingsDiscoveryService] - Attempt to send command to the Smartthings hub failed with: Total timeout 3000 ms elapsed
I double checked the installation instructions. Any resolution in the works?
OpenHAB 2.5.5 release build Smartthings Binding: 2.5.5.202006040007 New Install using Openhabian on Raspi 4 with 4gb RAM
This is a local issue to your installation.
I am working through the comments from the openhab maintainers and expect to be at that for a while. When I'm done with I will put a new release in the github
Yes to all questions.
Get Outlook for Android
On Sun, Jun 21, 2020 at 1:27 PM -0400, "Bob Raker" notifications@github.com wrote:
Reopened #78.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
I don't know what to suggest. I'll have a new build in a week or so.
Thank you for your Smartthings binding I have installed it on an OpenHABian (v2.5 testing) device.(Raspberry Pi B). The issue is the commands sent to my ST Hub work intermittently. her is an example where the switch turned off, then on, but failed to turn back off again. These failures are happening even on the first attempt on a quite device. The ST hub responds to the successful events, but logs nothing for the timeout failures.
Any advice would be appreciated. Here are my OH and ST logs: OH:
ST: