Yes a few week ago I updated from OH3 to OH4. Sadly something went wrong and OH didn’t start any more. I think it was because of JDK17. After upgrade still v11 was installed. I couldn’t manage it to install v17 manually on the Raspi (seems to be rocket science). I then decided to start with a fresh new openhabian image for my Raspi. As I always configured everything through config files and I had a backup of those, I could quickly recover everything apart from the bell. So yes, I am on JDK v17 and bullseye.
I can confirm that I can not select this binding in the “choose binding” dialog (was it available in OH3?).
I am not sure how to check in karaf. I tried the bundle:list command and could find this:
I also tried enabling inkompatible add-ons and the fix permissions option…without success.
Is it possible to define the log level of this binding somewhere?
Anyway, I have get rid of all boilerplate and remove all repository in which resides all official bindings and leave only the webhook binding itself. Previously the repository was kind of directed towards pull to official bindings, not the third party makertplace. However pulling to official brings much more effort and it is beyond my spare time.
Hi
Are there updated snippet (I’m using OH4) that works to trigger String value using a query string param ?
Does POST Form request (“Content-Type: application/x-www-form-urlencoded”) works ?
Thanks.
I am preparing to release a binding to the marketplace. However I lack of spare time to test the release against OH 4.x (I had to increase work hours due to low on family budget )
Error message while loading. I probably need to install a dependency package jexl3:
2023-12-16 19:01:24.575 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab/addons/org.openhab.binding.webhook-0.1.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.webhook [243]
Unresolved requirement: Import-Package: org.apache.commons.jexl3; version="[3.2.0,4.0.0)"
at org.eclipse.osgi.container.Module.start(Module.java:463) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:445) ~[org.eclipse.osgi-3.18.0.jar:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) ~[?:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) ~[?:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:520) ~[?:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) ~[?:?]
at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) ~[?:?]
Binding not visible in MainUI (neither in settings nor when adding a thing)
For this reason adding a thing needs to be done through rest-API (took some time to realize that the ID of your binding changed from httplistener to webhook)
After adding a channel, the channel type (switch, number, string) is not visible and editable anymore in channel config menu
Most importantly: I have no idea what I need to enter into Response expression. In the old version I needed to provide a JSON expression which does not work anymore
I’ve change the config to split one json like config to apache jexl epxressions per thing (to describe the http response) and per channels (to describe mapping from request to channel value).