openHAB 3.1 Release discussion

I’m having problems with the Verisure binding in 3.1.0. Not 100% sure if it’s due to 3.1.0 or something else, because I broke my SD card and started from scratch again. But for sure it’s not working. See my post below. Verisure binding stopped working

I’ve upgraded my docker container from 3.1.0.M5 to 3.1.0 went smoothly except for the Homematic Binding. Some of my Homematic things are shown as Config:Error, mostly Homematic IP devices. The error says that device-id “xyz” is not found on gateway-id “abc”. Reverting back to 3.1.0.M5 solves the issue and everything works as expected. (Also the 3.1.0.RC1 had the same issue)
I’m using Raspberrymatic for the Homematic CCU in Version 3.57.5.20210525. Docker is running on Ubuntu 20.04 with the latest updates.
I’ve no idea what went wrong or where I can look for a more detailed error log.
Also trying the 3.2.0-snapshot version didn’t helped.

Can someone lead my into the right direction or give me some tipps on what I can do?

Thanks.

I created an own topic for this specific issue: Update to Openhab 3.1.0 breaks Homematic Binding

1 Like

Same here…
…and I have a problem with some “NON”-IP-Sensors, they appear as online, but do not send any data.

3.1.0.M5 is working fine.

Err, well. There have been threads on each and every milestone, including code freeze announcement IIRC, plus as a long term user you should be aware of the release cycle and that it’s missing the projected date by a day or two at most - shouldn’t you ?
Sorry but to upgrade right around this date is just very bad timing of yours and that’s even more true for ad hoc action.
Sure it’s always nicer to get yet another announcement beforehand, on the other hand side how long do you expect devs to wait so everyone has “enough” time to prepare ? Not everybody is a daily forum user. No that wouldn’t work.
Plus you must not disappoint those eager to get hold of the final code asap.

Dear community members,

please only post to this thread if you believe your post is specific to the 3.1 release and of general interest to 3.1 users (or wannabes).
Any specific sort of problem of yours or issues that have been there in recent milestones already, please open your own thread. Remember just because an issue is new to you it’s not necessarily new to others.

If you don’t, this thread will quickly become overloaded and useless to all of us. Thank you.

PS: and mind the general posting guideline. Remember to provide at least a comprehensive description and code or logs that show the problem.
How to ask a good question / Help Us Help You - Tutorials & Examples - openHAB Community

First: I know it’s mostly a spare time thing here and I’m grateful for each and everyone contributing their time and effort here.
With that out of the way: I beg to differ here! I did my openHABian “upgrade system” exactly 23minutes after Kai updated the sources. As you pointed out, users of openHABian should use the built in upgrade and not only “apt-get update && apt-get upgrade” - and I wanted to update the pi firmware, which fixed some security issues. If I did it in the shell, I certainly would have noticed that openHAB is about to upgrade also…
So, a short: “hello everyone, I’m about to update tonight!” in the usual announcement post is sufficient in my eyes. Kai posted the announcement after updating the sources, what’s different, if he could just posted the announcement a few hours beforehand to just achieve awareness, that something is about to happen. As with every announcement, all users should get an email from the board, so they’re informed.

but perhaps it could also be turned around to a feature in openHABian: as Rich pointed out openHABian could “lock” to a specific version or could inform the user beforehand, that not only the “normal” apt-get upgrade is going on, but a major/minor release is about to happen?

No, pinning definitely is something you can do manually in specific situations if you know what you’re doing, but we cannot generalize and automate that. That would lead to a huge bunch of new problems, definitely way worse than having a user or two stumble over their own unfortunate timing.

2 Likes

If it is exactly the same problem as described here Update to Openhab 3.1.0 breaks Homematic Binding post the exact messages from openhab.log.

If it is different please open a new topic or issue. If you don’t receive data from sensors please check the callback address in the bridge configuration,

MySQL JDBC Persistence no longer writting to the database after upgrade from 3.02 to 3.1. I made a separate post on that, which includes also the error details → Community Post with full Error Logs

→ Problem fixed - Reason was that OH3.1 persistence service doesn’t tolerate errors in item types (ON/OFF item was changed to String). This was tolerated/ignored by the OH3.02 persistence service.

Upgrade was successful without issues.
Actually I was able to remove the manually added bindings
http (pre-emptive basic authentication)
icloud (FIX: response invalid: null)

Thanks to all of you for your great work! :smiley:

I also got this same issue when I upgraded today. Everything else went smoothly and it even gave me an excuse to cleanup the jsondb files :grinning:

My work around on the UniFi binding was to enable the UnifiOS setting - save - wait for it to fail (I’m not running that OS) - then disable the OS switch again and resave = ONLINE = :star_struck:

Thanks for the hint @DOliana :+1:

1 Like

Did the 3.1 upgrade through openhabian, reboot but facing problem that openhab is no longer working. no log generated (also empty IP:9001), no access to IP:8080. Grafana (IP:3000) can be opened (framework is loading) but no data from influxDB. Via console openhabian can be opened. …not sure where it got stopped during boot sequence…

Any idea how to recover?

I have started a post with this issue, I don’t find any information about it, and I don’t know if someone has this problem.

Updgrading from OH 3.0.2 to OH 3.1.0 break Xiaomi Mi Smart Home Binding, and reports a error in Kraft Console (this is under Windows 10).

Xiaomi Mi Home Gateway Binding not working on OpenHAB 3.1.0 - Add-ons / Bindings - openHAB Community

Any information would be apreciated, as all Xiaomi devices are currently not accesible.

Ruben

Has anyone had any issues with ZigBee binding after the update? I’m on x86 openHABian upgraded from 3.0.1. The ‘Upgrade System’ option didn’t update so needed to do a apt-get update && apt-get upgrade.

Once update was complete my Zigbee items show as online but don’t respond. I then removed one device and re-paired and shows as an Unrecognised device with no channels and offline. Zigbee has always been really flakey for me with devices going offline, maybe it’s time to give mqtt2zigbee a go :thinking:

Not really openhab, but my default html nginx page was reset to the default one so had to recreate it.

Other than that my 20+ things/bindings all online and working great. Thank you for all your good work!!! Love openHab, just wish I could crack reliable Zigbee devices!

It seems that the DenonMarantz binding changed.
Sending commands seem to work:
general#power --> OFF

The other way around (update from Denon) does not update the channel.

I need to investigate this further, but the same applies to

mainZone#volume
mainZone#input

3.0.2 did not have these issues.
Anyone else with this issue?

I just upgraded from 3.0.2 using the AUR package on Arch Linux ARM (Raspberry Pi 4B), and OH doesn’t start since. Running /usr/share/openhab3/karaf_wrapper.sh server manually only produces one probably unrelated line:

org.ops4j.pax.url.wrap [org.ops4j.pax.url.commons.handler.HandlerActivator] DEBUG : Handler for protocols [wrap] started

and the log files in /var/log/openhab3/ stay completely empty. The Karaf console starts fine and is accessible over SSH, but there’s no trace of OpenHAB itself.

I downgraded back to 3.0.2 for the time being and everything’s working fine again. Does anyone have any ideas?

EDIT: Alright, after deleting /var/lib/openhab3/tmp/ and /var/lib/openhab3/cache/ everything works fine.

@Kai it seems the automation bundle links in the github release notes are broken.

Thanks for the hint! I’ve fixed them now!

1 Like

Hello,

since openHAB 3.1 the new JavaScript Scripting automation add-on is available for using ECMA - 262 Edition 9.
With the new add-on installed, I have problems with importing openHAB host classes for actions like executeCommandLine. In openHAB 3.0, I was able to load the openHAB classes with:

// import Exec class
var Exec = Java.type('org.openhab.core.model.script.actions.Exec')
// import NotificationAction class
var NotificationAction = Java.type('org.openhab.io.openhabcloud.NotificationAction')
// execute a command line
Exec.executeCommandLine('echo hello')

It always worked well, but now I am observing these errors:

org.graalvm.polyglot.PolyglotException: TypeError: Access to host class org.openhab.core.model.script.actions.Exec is not allowed or does not exist.
org.graalvm.polyglot.PolyglotException: TypeError: Access to host class org.openhab.io.openhabcloud.NotificationAction is not allowed or does not exist.

How can I access these classes now?
As I need these Java classes, I am still using the old script enging based on ECMA - 262 Edition 5.1, but I would like to use ECMA - 262 Edition 9 for the new ECMA features.

Thanks in advance.

EDIT 1
The problem is not with my configuration as I was observing the problem above on a fresh openHAB install witth nealy no configuration. My problem is that I am not even able to import any openHAB Java class by Java.type('classname').
Importing a normal Java class like let BigDecimal = Java.type('java.math.BigDecimal') works.

openHAB classes only work with aliased names:

// import itemRegistry with the classname from the openHAB javadoc
let itemRegistry = Java.type('org.openhab.core.items.ItemRegistry') // throws an error as above
// import itemRegistry with an alias (I have this solution from the openHAB community)
let itemRegistry = require('@runtime').itemRegistry // does work

This returns:

itemRegistry: org.openhab.core.internal.items.ItemRegistryImpl@7dbb7e8e

My problem is now, that I do not know how to import the other openHAB classes as I do not know how they are aliased.
So how can I found out which aliases to use for what class?

I have the same problem.