markus7017
(Markus Michels)
February 24, 2023, 7:04pm
1
I did a fresh install of the 4.0 environment (2022-03 Java 17), when trying to resolve the dependencies I get the following error:
any idea? I already tried to delete .m2 und .p2 folders and reinstall with same problem.
mvn clean install completes with no errors
markus7017
(Markus Michels)
February 24, 2023, 9:56pm
3
ok, after applying the changes from the PR manually resoling the dependencies works
However, the binding starts and auto-discovers things, but when I click + in the Things section it says āNo Bindingsā
glhopital
(Gaƫl L'hopital)
February 24, 2023, 10:53pm
4
This exists since OH4 beginning - I suppose due to migration from bindings to addons
wborn
(Wouter Born)
February 25, 2023, 9:07am
6
I also noticed the bindings donāt show when adding things in the UI when debugging in Eclipse. To workaround it I checked what URL is used in my production instance when adding things of a particular binding and used that. That works but itās not very convenient.
markus7017
(Markus Michels)
February 25, 2023, 1:15pm
7
ok. http://127.0.0.1:8080/settings/things/add/shelly/ brings up the page
I tried the 4.0 standard install, which works as execpected.
This is a pias for developers and should be fixed. Is that a core or an UI problem?
However, in this case the gear wheel icon behind the binding name so binding config is not reachable
http://192.168.6.150:8080/settings/addons/shelly/config doesnāt work
any idea how to bring up the config page?
wborn
(Wouter Born)
February 26, 2023, 9:24am
8
The issue is that the KarafAddonService
which normally provides the info is unavailable when debugging in Eclipse.
Iām working on a few PRs for providing this info based on the installed bundles when debugging Eclipse:
It already works pretty well.
2 Likes
Hi @markus7017
maybe this is a solution for you?
Hi,
i have a simple embarrassing question about developing binding.
I installed eclipse for debugging a binding (https://next.openhab.org/docs/developer/#develop-a-new-binding )
Now iām editing pom.xml in org.openhab.demo.app and add my binding and resolve in app.bndrun.
Now iām able to start openhab with āDebug OSGiā. I set some breakpoint in āsupportsThingTypeā in my thing handlers.
Eclipse now stops at this breakpoint.
To this point all is fine.
Now, if i start the browser my binding isā¦
markus7017
(Markus Michels)
February 26, 2023, 1:14pm
10
ok, seems solution is on the way. It works using the work around loading the /things/add/xxx URL directly in the browser, but how to overcome the missing binding config. E.g. I use it for default password, which is really useful when having 50+ devices.
wborn
(Wouter Born)
February 26, 2023, 1:29pm
11
That will also work again with those PRs. Maybe you can use the file based config in services.cfg as workaround if there is no way to edit it using the UI in Eclipse.
markus7017
(Markus Michels)
March 2, 2023, 8:28pm
12
both PRs are merged, so when I do a fresh install I should get them baked into, correct?
wborn
(Wouter Born)
March 2, 2023, 8:49pm
13
If you update to the latest git revision it should already be functional.
When these UI tweaks are merged it will become even nicer and very similar to actual OH builds:
openhab:main
ā wborn:eclipse-addons
opened 07:11PM - 27 Feb 23 UTC
This improves the UI when working with add-ons that are provisioned using Eclipsā¦ e.
* Show these add-ons in the "openHAB Distribution" section
* Show in the add-on details when add-ons are provisioned with Eclipse
* Show the add-on documentation and issue links when add-ons are provisioned with Eclipse
* Hide Install/Uninstall buttons when add-ons are provisioned with Eclipse
Related to openhab/openhab-core#3406
1 Like
markus7017
(Markus Michels)
March 4, 2023, 3:41pm
14
ok, with the merged PRs I see the binding and cloud start a scan, perfect
Whatās still missing is the settings cogwheel, are you workin on this too?
wborn
(Wouter Born)
March 4, 2023, 4:20pm
15
It should be there, but it moved from the right to the left because the uninstall button no longer shows.
wborn
(Wouter Born)
March 4, 2023, 7:40pm
16
If you mean the settings cogwheel in the binding list of the Inbox:
You can also get to it via Settings
ā Bindings
ā Your Binding
ā cog wheel button
That seems to have been removed in the choose-binding.vue
changes of openhab-webui#1468 . I donāt know if that was intentional @J-N-K ?
J-N-K
(Jan N. Klug)
March 4, 2023, 7:49pm
17
Yes, since all add-ons can now be configured in the add-on page (that was not the case before, e.g. add-ons from addons-folder, marketplace, JSON could not be configured because the add-on info (binding info) was used for that.
markus7017
(Markus Michels)
March 5, 2023, 3:32pm
19
hmm, today the man clean install runs into the following after a fresh install:
[ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.3.7:verify (karaf-feature-verification) on project org.openhab.binding.shelly: Feature resolution failed for [openhab-binding-shelly/4.0.0.SNAPSHOT]
[ERROR] Message: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-binding-shelly; type=karaf.feature; version=4.0.0.SNAPSHOT; filter:="(&(osgi.identity=openhab-binding-shelly)(type=karaf.feature)(version>=4.0.0.SNAPSHOT))" [caused by: Unable to resolve openhab-binding-shelly/4.0.0.SNAPSHOT: missing requirement [openhab-binding-shelly/4.0.0.SNAPSHOT] osgi.identity; osgi.identity=openhab-runtime-base; type=karaf.feature [caused by: Unable to resolve openhab-runtime-base/4.0.0.SNAPSHOT: missing requirement [openhab-runtime-base/4.0.0.SNAPSHOT] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/4.0.0.SNAPSHOT: missing requirement [openhab-core-base/4.0.0.SNAPSHOT] osgi.identity; osgi.identity=org.openhab.core; type=osgi.bundle; version="[4.0.0.202303030301,4.0.0.202303030301]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core/4.0.0.202303030301: missing requirement [org.openhab.core/4.0.0.202303030301] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.framework)(version>=1.10.0)(!(version>=2.0.0)))"]]]]
[ERROR] Repositories: {
[ERROR] file:/Users/markus/Dev/openhab-4/git/openhab-addons/bundles/org.openhab.binding.shelly/target/feature/feature.xml
[ERROR] mvn:org.apache.karaf.features/framework/4.3.7/xml/features
[ERROR] mvn:org.apache.karaf.features/standard/4.3.7/xml/features
[ERROR] mvn:org.openhab.core.features.karaf/org.openhab.core.features.karaf.openhab-core/4.0.0-SNAPSHOT/xml/features
[ERROR] mvn:org.openhab.core.features.karaf/org.openhab.core.features.karaf.openhab-tp/4.0.0-SNAPSHOT/xml/features
[ERROR] mvn:org.ops4j.pax.web/pax-web-features/7.3.25/xml/features
[ERROR] }
J-N-K
(Jan N. Klug)
March 5, 2023, 4:05pm
20
Rebase to latest main, we switched to Karaf 4.4.3 two days ago.
1 Like