openHAB 4.0 Milestone discussion

You can install openJDK Java 17.
Either via openHABian-config tool or direct package installation.

sudo apt-get install openjdk-jre-17-headless

If I remember correct

Don‘t push this way. You won‘t get quicker answers if repeating your question within short time.
In the meantime you could have googled how to get Java 17 on your Pi…

If you have further questions on this one, please open a new topic as it is not Milestone related.

a) make sure to use the stable repo instead of testing. this would enable you to switch back to OH 3.4.2. In case the configuration files are already touched you may have a problem. Especially in case there is no backup.

or

b) Install Java17. Looks like Zulu 17 is not available via repo for armhf. I think it is possible to download it from Java 8, 11, 17, 21, 22 Download for Linux, Windows and macOS manually in a tar file and install it. I did not check.

Do I need to uninstall java 11 on my Raspbian system before installing java 17?

Not necessarily, you can switch different versions with „alternatives“

1 Like

I’m not an expert, but I wrote this up to document what I did to get Java17 running with Buster. I consider this a temporary solution. Might help someone, but no promises. I’m sure there are better ways to do this, but this worked for me. The zulu site I used is [here] (near the bottom). (Java Download | Java 7, Java 8, Java 11, Java 13, Java 15, Java 17, Java 19 - Linux, Windows & macOS).
Update Buster to Java17.pdf (482.7 KB)

3 Likes

Great work everyone!
I just upgraded to 4.0.0.M1 and everything seems to be working fine so far, but I get these errors related to the HarmonyHub/HomeConnect bindings at startup:

2023-03-11 14:01:10.417 [WARN ] [core.thing.internal.ThingManagerImpl] - Channel types or config descriptions for thing 'harmonyhub:device:LivingRoom:60292581' are missing in the respective registry for more than 120s. This should be fixed in the binding.
2023-03-11 14:01:10.418 [WARN ] [core.thing.internal.ThingManagerImpl] - Failed to normalize configuration for thing 'harmonyhub:device:LivingRoom:60292581': {thing/channel=Type description for {0} not found although we checked the presence before.}
2023-03-11 14:01:10.418 [WARN ] [core.thing.internal.ThingManagerImpl] - Channel types or config descriptions for thing 'harmonyhub:device:LivingRoom:60292583' are missing in the respective registry for more than 120s. This should be fixed in the binding.
2023-03-11 14:01:10.419 [WARN ] [core.thing.internal.ThingManagerImpl] - Failed to normalize configuration for thing 'harmonyhub:device:LivingRoom:60292583': {thing/channel=Type description for {0} not found although we checked the presence before.}
2023-03-11 14:01:10.419 [WARN ] [core.thing.internal.ThingManagerImpl] - Channel types or config descriptions for thing 'harmonyhub:device:LivingRoom:77733401' are missing in the respective registry for more than 120s. This should be fixed in the binding.
2023-03-11 14:01:10.419 [WARN ] [core.thing.internal.ThingManagerImpl] - Failed to normalize configuration for thing 'harmonyhub:device:LivingRoom:77733401': {thing/channel=Type description for {0} not found although we checked the presence before.}
2023-03-11 14:01:10.419 [WARN ] [core.thing.internal.ThingManagerImpl] - Channel types or config descriptions for thing 'harmonyhub:device:LivingRoom:76995753' are missing in the respective registry for more than 120s. This should be fixed in the binding.
2023-03-11 14:01:10.419 [WARN ] [core.thing.internal.ThingManagerImpl] - Failed to normalize configuration for thing 'harmonyhub:device:LivingRoom:76995753': {thing/channel=Type description for {0} not found although we checked the presence before.}
2023-03-11 14:01:10.419 [WARN ] [core.thing.internal.ThingManagerImpl] - Channel types or config descriptions for thing 'harmonyhub:device:LivingRoom:77785115' are missing in the respective registry for more than 120s. This should be fixed in the binding.
2023-03-11 14:01:10.420 [WARN ] [core.thing.internal.ThingManagerImpl] - Failed to normalize configuration for thing 'harmonyhub:device:LivingRoom:77785115': {thing/channel=Type description for {0} not found although we checked the presence before.}
2023-03-11 14:01:10.420 [WARN ] [core.thing.internal.ThingManagerImpl] - Channel types or config descriptions for thing 'homeconnect:dishwasher:202210be59:0e61f827a1' are missing in the respective registry for more than 120s. This should be fixed in the binding.
2023-03-11 14:01:10.420 [WARN ] [core.thing.internal.ThingManagerImpl] - Failed to normalize configuration for thing 'homeconnect:dishwasher:202210be59:0e61f827a1': {thing/channel=Type description for {0} not found although we checked the presence before.}
2023-03-11 14:01:10.435 [WARN ] [core.thing.internal.ThingManagerImpl] - Channel types or config descriptions for thing 'harmonyhub:device:LivingRoom:60946348' are missing in the respective registry for more than 120s. This should be fixed in the binding.
2023-03-11 14:01:10.436 [WARN ] [core.thing.internal.ThingManagerImpl] - Failed to normalize configuration for thing 'harmonyhub:device:LivingRoom:60946348': {thing/channel=Type description for {0} not found although we checked the presence before.}
2023-03-11 14:01:10.436 [WARN ] [core.thing.internal.ThingManagerImpl] - Channel types or config descriptions for thing 'harmonyhub:hub:LivingRoom' are missing in the respective registry for more than 120s. This should be fixed in the binding.
2023-03-11 14:01:10.437 [WARN ] [core.thing.internal.ThingManagerImpl] - Failed to normalize configuration for thing 'harmonyhub:hub:LivingRoom': {thing/channel=Type description for {0} not found although we checked the presence before.}

I have already deleted/added all related things, but the error remains.

I think this might be a pending fix for that:

2 Likes

I would love to test but not having inline JS is a show stopper for me. Will this be included in time for M2 ?

I made it now more comprehensive. I hope this makes it much clearer. It is already merged and soon be online for everyone:

Btw, this also applies to all JS Scripting Rules that have the MIME-Type application/javascript from openHAB3 (see the release notes)

1 Like

There’s already a PR for supporting it. It doesn’t look like a lot of code :slight_smile: but I don’t know how well it works because it is still “Draft”:

It’s a draft because it is not tested at all. I’ll check if it works today. The bigger issue of course is that there is no profile for that.

This is a warning that the binding developer needs to do something. It’s currently not affecting functionality (besides a delay of 120s before the thing comes up on initial startup). There are also other bindings affected.

The PR @laursen linked is the core part to make it easier to fix in the bindings.

2 Likes

Nothing has changed with Jython. It should work. But I don’t think anyone running the snapshots are using Jython so if something’s wrong please let us know.

I’ve installed M1 to start testing but SmartHome/J HTTP Binding seems to not be available. I use it instead of the HTTP Binding due to some issues I had in the past. Will it be available ? Or shall I use the HTTP Binding instead ?

You can try using https://download.smarthomej.org/addons-snapshot.json. But there is ongoing work to merge the “duplicate” bindings. This is already done for snmp, tr064, influxdb, onewire and dmx. PR already exist for mail and knx (thanks @holgerf).

2 Likes

Thanks! As soon as I find some time I will test the OH4 Milestone and report any issues.

Migration away from Jython is probably a project for a very long and very cold winter :wink:

Just upgraded from 3.4.2 → 4M1 with docker and everything went very smoothly with the exception of one significant issue of my own making (resolvable, just tedious) and one side-loaded binding which is not ready for the upgraded java.

1 Like

I suggest adding a check for the deb installation that runs java to verify if it’s java 17 and if not refuses installation (and accepts some env variable to disable this check, and prints out details on how to disable it in case someone is sure java 17 is already used). Considering that apparently upgrades are happening without people being aware that might be the safest way of reaching most users.

2 Likes

openHAB 3 prints a warning on install when Java >11 is not found. I’ve created openhab-linuxpkg/#217 to change this to 17.