Comments (13)
The first error message "Could not start Smartthings servlet service" means that a binding has already claimed the url {host:port}/smartthings/... I claim that alias for the smartthings binding to communicate with the hub on. Do you think one of your other bindings could also claim the same name? Another possibility is that you have two smartthings binding loaded. I suggest that you look at this openHAB document. You will see an example command "bundle:list | grep openHAB". Try this command "bundle:list | grep -i smartthings" if you see more than one line of output it is likely the binding is loaded twice. Is it possible that you have one in the addons folder. It would also be worth flushing the openHAB cache. Here are instructions.
I'm not sure what would cause the second error: "argument type mismatch" but hopefully that will get resolved when the first one is resolved.
If you want to have 2 servers both connect to the same hub you will have to create multiple Devices: Instructions here. Each will have to have the correct IP and mac for that server. That should work for you with no problem. I have multiple devices defined for my test and prod RPi servers.
One bridge means you can only have one openHAB server connect to a single hub.
from openhab-smartthings.
from openhab-smartthings.
Update: looking at the openhab log I was surprised to find that the system appeared to be playing with my "org.openhab.binding.smartthings-3.1.0-SNAPSHOT.jar.tmp" file. So just removd it completely from the addons folder. After restatrting the system I found that the console command "bundle:list | grep -i smartthings" was still producing a line about the smartthings buiding. So, I remain puzzled.
from openhab-smartthings.
Update: I used bundle:unintall to remove the extra package the console was showing.
Then I reinstalled the smartthings binding through the OH UI. Now the consoile is only showing one line for "bundle:list | grep -i smartthings":
266 │ Active │ 80 │ 3.1.0.202103250339 │ openHAB Add-ons :: Bundles :: Samsung Smartthings Binding
from openhab-smartthings.
The smartthings binding is currently shown as installed, the Smartthings devices I described in the my "smartthing.things" file are shown as "online", but thus far it seems I am receiving no data from the hub: all the values are shown as "null". The openhab log no longer reports anything about smartthings, except for the fact that my "smartthings.things" file was succesfully loaded.
I will investigate this a bit fut-rther later tonight or tomorrow morning.
from openhab-smartthings.
The Addons folder is for binding that you download from someplace and want openHAB to use. There are also the bindings installed through the admin web page (or paperUI). Those are separate and I'm not sure where they get placed on disk. But there must be a way to uninstall them using the admin page. Unfortunately I no longer have an openHAB installed so I can't easily help. Maybe uninstall through the admin, flush caches and check the console. Hopefully no smartthings will be there. Then install the one you want to use.
Did the "argument type mismatch" error disappear?
BTW - searched for your post on the community site and didn't find it. Could you send me a link to it? I just want to see what the comments are.
from openhab-smartthings.
My post to the OH community is at the end of the following page:
https://community.openhab.org/t/oh3-and-smartthings/113438
Anyway, as mentioned in one of my recent posts for you, I believe I have now managed to uninstall the zombie binding using the bundel:uninstall command. Thereafter, the argument mismatch stuff has disappeared in the log. Thus, it now seem I only have the correct binding left in my current version. As I mentioned in my previous post, the sole mention of "smartthings" in my openhab log is the confirmation that my "smartthings.things" file was successfully read. The smartthings devices listed in that file are shown as online things, but no update appears to be received from the hub. Should I let go of the things file and try automatic discovery of my devices?
from openhab-smartthings.
Do you now have 2 devices, one for each machine? And is each configured with the appropriate IP and mac? Here is an image from ST config:
And, here is a picture of one of the device configurations. The IP and mac has to point back to each openhab server and since there are two servers the device config for each will be different.
And, on your smartphone you will have to configure OpenHabAppV2 for each device. If you don't do this step the hub will not report status back to openHAB. This is probably why you are not seeing any updates.
Before you let go of the config files you should be able to get the updates working.
from openhab-smartthings.
from openhab-smartthings.
This is just my opinion. The OH maintainers might have a different opinion. I think one has to decide on discovery or files. If you choose files then just ignore the inbox. If you choose discovery then accept the things you want and I don't think they will keep coming back.
I choose files. For one I really like that I can easily backup and restore. And, when I started with OH my first binding was the cm11a which is a controller for X-10 and it can't do discovery. So I was forced to do files.
This applies to OH2. I'm not that familiar with OH3. Maybe files and discovery work better together there.
I'm going to close this issue. You can reopen if you want and you can add to it even if it is closed.
Bob
from openhab-smartthings.
from openhab-smartthings.
Hi Bob,
I am sorry to reopen this issue, but I just realized that there is still at least one glitch. Basically, the binding appears to be working on my two machines (OH2 and OH3), but on the OH3 machine, I am still getting the same error message as before in the log: "Could not start Smartthings servlet service: alias: '/smartthings' is already in use in this or another context". I don't know if I will find any unwanted consequences of that warning.
I believe I did as you recommended, in that each machine is now associated with a different smarthings device.
On my phone app, I accidentally created a second OpenHabAppV2 app, but since I disabled one of them, I don't suppose that this is the cause of my problem.
from openhab-smartthings.
Update, I just realized that at this time, I have 2 copies of the binding running simultaneously on my OH3 machine. Not sure how this happened because I don't have any jar file in my addons folder. After I stopped that bundle and restarted the system, the error message disappeared. So I guess everythung is now OK. Thanks again.
from openhab-smartthings.
Related Issues (20)
- ST Multisensor not displaying values HOT 3
- ADT Smartthings hub not detected HOT 14
- Color Channel support for On / Off HOT 5
- Errors, child devices and capabilities HOT 2
- Error when attempting to install 3.2.0 on OH3 HOT 2
- Communication with TP-Link Kasa switch works only one-way HOT 1
- java.io.EOFException HOT 5
- Cannot find all things and error adding item HOT 9
- Samsung Washer+Dryer HOT 9
- At startup SmartthingsDiscoveryService.setThingHandlerFactory throws an exception HOT 4
- Adding gasMeter to OpenHAB binding HOT 14
- Unable to locate handler for display name HOT 9
- although the handler was already disposed. HOT 2
- KeenHome smart vent HOT 11
- Can't discover anything HOT 21
- Warning appeared after enabling new voice assistants integration HOT 5
- Understanding the mechanism HOT 4
- What is your recomendation on how to handle this HOT 42
- Communication issue betwen OH and Smartthings hub HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openhab-smartthings.