[OH 2.4.0 M7] Testing Results

so ive made a little progress. changing 360 to 0 which is effectively the same value (Red) now has the bulbs change too red that weren’t before but ive still got the issue of Kitchen_PendantLightLeft changing to the correct colour (yellow) but the Dining_LampRight_top and Dining_LampLeft_top are still Turing a lime green and not yellow that they were before.

rule "Sunset On"
when 
	Item SunSet received command ON
then
	Kitchen_PendantLightLeft.sendCommand("74,99,100")
	Kitchen_PendantLightCenter.sendCommand("27,99,100")
	Kitchen_PendantLightRight.sendCommand("0,99,100")
	Kitchen_Bench_Light.sendCommand("27,99,100")
	Thread::sleep(300)
	Dining_LampRight_bottom.sendCommand("0,99,100")
	Dining_LampRight_middle.sendCommand("27,99,100")
	Dining_LampRight_top.sendCommand("74,99,100")
	Thread::sleep(300)
	Dining_LampLeft_bottom.sendCommand("0,99,100")
	Dining_LampLeft_middle.sendCommand("27,99,100")
	Dining_LampLeft_top.sendCommand("74,99,100")
	TV_Light_Left.sendCommand("27,99,100")
	TV_Light_Right.sendCommand("0,99,100")
end

Ok after some more playing around if you change the temperature of the lights it fixes the issue and the rules now work as they did in 2.3 until openHAB is restarted and the lights go back to being green.

Anyone else seeing this error in the latest M7 release?

[ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-misc-myopenhab': Error restarting bundles:

Exception in org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start() of bundle org.eclipse.smarthome.io.rest.sse.

Encounters every minute in the log.
My openhab cloud connection is working though, as google assistant is still able to communicate with OH2.

You should delete the content of cache&tmp directory and restart the service, should be gone then… i had the same at the upgrade from m5 to m6!

See the instructions from @rlkoshak: Clear the Cache

Thanks Stefan, but I’ve already done that though :confused:

yeah, that’s what i experience myself after upgrading to m7… Sorry, last time that solved the problem… i’m looking into it!

Edit: I can confirm having the following error messages every minute and can’t get rid of them so far (i set org.eclipse.jetty to ERROR so i don’t deal with these messages at the moment, but there are some more):

2018-12-02 11:56:00.708 [ERROR] [e.internal.WriterInterceptorExecutor] - MessageBodyWriter not found for media type=text/event-stream, type=class org.glassfish.jersey.media.sse.OutboundEvent, genericType=class org.glassfish.jersey.media.sse.OutboundEvent.
2018-12-02 11:56:37.250 [ERROR] [core.karaf.internal.FeatureInstaller] - Failed installing 'openhab-binding-weather, openhab-binding-http': Error restarting bundles:
        Exception in org.eclipse.smarthome.io.rest.sse.internal.SseActivator.start() of bundle org.eclipse.smarthome.io.rest.sse.

Edit2:
The first idea was the correct one, i tried cleaning the cache again, this time using the openhab-cli clean-cache method and this time that worked out and both of the entries are gone!

@sjef86: You should try that as well (if you installed openhab via apt or yum), but i can’t tell you what the difference to removing the content of tmp/cache is.

Anyone having troubles accessing the REST API through a web browser with the M7 build? I just get the following message:

fetching resource list: http://xx.xxx.xxx.xxx:8081/rest/swagger.json; Please wait.

but nothing happens.

I just did a clean install of the M7 build, same effect.

Regards,
Matt

Yeah, I can reproduce this one also in both M7 & S1447. It works fine on M6.

URL: http://OH2_IP:8080/doc/index.html
(don’t worry about the URL in the image below, I have changed my default 8080 to 8081)

Chrome dev tools show:

swagger-ui.min.js:3 Uncaught TypeError: Cannot read property '$ref' of undefined
    at t.exports.a.resolveTo (swagger-ui.min.js:3)
    at t.exports.a.resolveTo (swagger-ui.min.js:3)
    at t.exports.a.resolve (swagger-ui.min.js:2)
    at response (swagger-ui.min.js:2)
    at i (swagger-ui.min.js:2)
    at e.on.response (swagger-ui.min.js:2)
    at swagger-ui.min.js:2
    at f.callback (swagger-ui.min.js:13)
    at f.<anonymous> (swagger-ui.min.js:13)
    at f.r.emit (swagger-ui.min.js:13)

This one definetly deserves a github issue @ https://github.com/openhab/openhab2-addons/issues (I think! that it belongs there :stuck_out_tongue:)

Can you open it up @mstehle ?

Thank you @Dim.

I have created a github issue and included your info from the chrome dev tools as well: https://github.com/openhab/openhab2-addons/issues/4302

1 Like

Same on S1445.

Also, M7 users that use the Hue Emulation binding will likely have some trouble. Here is a discussion post and an issue. Short version… groups can no longer be used, and people have reported issues discovering Items tagged Switchable.

1 Like

I cant even update to M7…
However I updated using openhabian-config and I now have the build #1447. But thats not the M7, right?

When I try to use apt-get in terminal, I get this error:

[20:34:07] openhabian@openHABianPi:~$ apt-get update && sudo apt-get install openhab2=2.4.0~M7-1
Reading package lists... Done
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
[20:34:14] openhabian@openHABianPi:~$

Seems like there is a problem with the Debian repo. openhab2-addons is still at M6 in https://dl.bintray.com/openhab/apt-repo2/dists/testing/main/binary-arm64/:Packages and actually I noticed right now that I’m running openhab2-addons M5 but openhab2 M6!!?? Seems like openhab2-addons is off by one in the repo metadata.

All the M7 packages are available though: https://dl.bintray.com/openhab/apt-repo2/pool/main/2.4.0~M7/

You need to run apt-get update as root also:

$ sudo apt-get update

I did… Doesn´t make any differences.

[20:52:51] openhabian@openHABianPi:~$ sudo apt-get update
Ign:1 http://repos.azulsystems.com/debian stable InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:3 http://archive.raspberrypi.org/debian stretch InRelease
Hit:4 http://repos.azulsystems.com/debian stable Release
Hit:5 https://deb.nodesource.com/node_8.x stretch InRelease
Ign:6 https://dl.bintray.com/openhab/apt-repo2 testing InRelease
Hit:7 https://dl.bintray.com/openhab/apt-repo2 testing Release
Reading package lists... Done
[20:53:09] openhabian@openHABianPi:~$ apt-get update && sudo apt-get install openhab2=2.4.0~M7-1
Reading package lists... Done
W: chmod 0700 of directory /var/lib/apt/lists/partial failed - SetupAPTPartialDirectory (1: Operation not permitted)
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
[20:53:24] openhabian@openHABianPi:~$

forgot the first sudo

either 2 separate commands

sudo apt-get update
sudo apt-get install openhab2=2.4.0~M7-1

or all in 1 line (&& is for lazy people like me :slight_smile: )

sudo apt-get update && sudo apt-get install openhab2=2.4.0~M7-1

or even for more lazy:

sudo su

switch perma to root… be careful… with great power comes great responsibility :stuck_out_tongue:

Ok, let me try again. Just type this now:

$ sudo apt-get update && sudo apt-get install openhab2=2.4.0~M7-1

or just remove the apt-get update since you did it already:

$ sudo apt-get install openhab2=2.4.0~M7-1

correct
somehow the “normal” addons package was not build against M7
The legacy is there though :slight_smile:

Ahh ofcouse… Forgot sudo…
Seems like it´s doing somehting now :slight_smile:

by the way: if you were already at M6 (and using the testing repo), you could also use: sudo apt-get update && sudo apt-get upgrade (does the same thing)

Okay nice to know… I´m on my testing Rpi… My main Rpi is still on 2.3 stable… I´m thinking of trying M7 on it, but I still have a few doubts…

1 Like

It rather seems that the metadata are not updated correctly. Now I’m just getting the update to M6 for openhab2-addons and realizes that I have openhab2-addons M5 installed. However, if I look at PaperUI it shows me that I’m using M6 for all my bindings!!?? I guess this is because openHAB2 can download bindings automatically from the web. So my question is: do I need to install the openhab2-addons package at all???