[OH 2.4.0 M7] Testing Results

Tags: #<Tag:0x00007fc8f3c63270> #<Tag:0x00007fc8f3c631a8> #<Tag:0x00007fc8f3c630e0>

I agree :slight_smile:

check this out: https://github.com/openhab/openhab-distro/issues/587#issuecomment-350581593

I’m on a rpi3 and everything is working except for about half of my hue bulbs. they are the extended colour bulbs and im getting the following in the logs

2018-12-02 12:55:37.862 [WARN ] [rthome.model.script.actions.BusEvent] - Cannot convert '360,99,100' to a command type which item 'Kitchen_PendantLightRight' accepts: [HSBType, PercentType, OnOffType, IncreaseDecreaseType, RefreshType].
2018-12-02 12:55:38.180 [WARN ] [rthome.model.script.actions.BusEvent] - Cannot convert '360,99,100' to a command type which item 'Dining_LampRight_bottom' accepts: [HSBType, PercentType, OnOffType, IncreaseDecreaseType, RefreshType].
2018-12-02 12:55:38.498 [WARN ] [rthome.model.script.actions.BusEvent] - Cannot convert '360,99,100' to a command type which item 'Dining_LampLeft_bottom' accepts: [HSBType, PercentType, OnOffType, IncreaseDecreaseType, RefreshType].
2018-12-02 12:55:38.517 [WARN ] [rthome.model.script.actions.BusEvent] - Cannot convert '360,99,100' to a command type which item 'TV_Light_Right' accepts: [HSBType, PercentType, OnOffType, IncreaseDecreaseType, RefreshType].

the lights either to to a dull green or turn white and do not change to red.
below is an example of a rule that was working in oh 2.3

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

what ive tried is removing the hue binding and deleting all of the hue bulbs from paper ui and then installing the hue binding again and adding all the bulbs with no luck so far.

edit added relevant items

Color    Kitchen_PendantLightLeft     "Pendant Light Left"     <dimmer>         (Kitchen, Lights, LightsKitchen, HueLightsEntertainment, MainLightsEntertainment,  MainLightsKitchen, LightsLoungeKitchenDining)      	{channel="hue:0210:00178829a0c5:27:color"}

Color    Kitchen_PendantLightRight    "Pendant Light Right"    <dimmer>         (Kitchen, Lights, LightsKitchen, HueLightsEntertainment, MainLightsEntertainment,  MainLightsKitchen, LightsLoungeKitchenDining)       	{channel="hue:0210:00178829a0c5:29:color"}

Color    Kitchen_PendantLightCenter   "Pendant Light Center"   <dimmer>         (Kitchen, Lights, LightsKitchen, HueLightsEntertainment, MainLightsEntertainment,  MainLightsKitchen, LightsLoungeKitchenDining)       	{channel="hue:0210:00178829a0c5:28:color"}

Color    Kitchen_Bench_Light   	      "Under Bench Light"      <dimmer>         (Kitchen, Lights, LightsKitchen, HueLightsEntertainment,  MainLightsKitchen, LightsLoungeKitchenDining)            {channel="hue:0210:00178829a0c5:35:color"}

Dimmer   Kitchen_Light                "Kitchen Light"          <dimmer>         (Kitchen, Lights, LightsKitchen, MainLightsEntertainment, LightsLoungeKitchenDining)                {channel="zwave:device:512:node6:switch_dimmer1"}




Dimmer   Dining_Lights                "Dining Light"           <dimmer>         (Dining, Lights, LightsDining, MainLightsEntertainment, LightsLoungeKitchenDining)                  					{channel="zwave:device:512:node33:switch_dimmer1"}

Color    Dining_LampLeft_bottom       "Lamp Left Bottom"       <dimmer>         (Dining, Lights, LightsDining, HueLightsDining, HueLightsEntertainment, LightsLoungeKitchenDining)                 {channel="hue:0210:00178829a0c5:3:color"} 
Color    Dining_LampLeft_middle       "Lamp Left Middle"       <dimmer>         (Dining, Lights, LightsDining, HueLightsDining, HueLightsEntertainment, LightsLoungeKitchenDining)                 {channel="hue:0210:00178829a0c5:24:color"} 
Color    Dining_LampLeft_top          "Lamp Left Top"          <dimmer>         (Dining, Lights, LightsDining, HueLightsDining, HueLightsEntertainment, LightsLoungeKitchenDining)                 {channel="hue:0210:00178829a0c5:1:color"} 
Color    Dining_LampRight_bottom      "Lamp Right Bottom"      <dimmer>         (Dining, Lights, LightsDining, HueLightsDining, HueLightsEntertainment, LightsLoungeKitchenDining)                 {channel="hue:0210:00178829a0c5:6:color"} 
Color    Dining_LampRight_middle      "Lamp Right Middle"      <dimmer>         (Dining, Lights, LightsDining, HueLightsDining, HueLightsEntertainment, LightsLoungeKitchenDining)                 {channel="hue:0210:00178829a0c5:5:color"} 
Color    Dining_LampRight_top         "Lamp Right Top"         <dimmer>         (Dining, Lights, LightsDining, HueLightsDining, HueLightsEntertainment, LightsLoungeKitchenDining)                 {channel="hue:0210:00178829a0c5:4:color"}




Dimmer   Lounge_BackLights            "Lounge Lights Back"     <dimmer>         (Lounge, Lights, LightsLounge, MainLightsLounge, MainLightsEntertainment, LightsLoungeKitchenDining)      				{channel="zwave:device:512:node5:switch_dimmer1"}
Dimmer   Lounge_Front_Lights          "Lounge Lights Front"    <dimmer>         (Lounge, Lights, LightsLounge, MainLightsLounge, MainLightsEntertainment, LightsLoungeKitchenDining)      				{channel="zwave:device:512:node32:switch_dimmer1"}
Dimmer   Lounge_Middle_Lights         "Lounge Lights Middle"   <dimmer>         (Lounge, Lights, LightsLounge, MainLightsLounge, MainLightsEntertainment, LightsLoungeKitchenDining)      				{channel="zwave:device:512:node34:switch_dimmer1"}
Color    TV_Light_Left                "TV Left"                <dimmer>         (Lounge, Lights, LightsLounge, HueLightsEntertainment, HueLightsLounge, LightsLoungeKitchenDining)              {channel="hue:0210:00178829a0c5:22:color"}
Color    TV_Light_Right               "TV Right"               <dimmer>         (Lounge, Lights, LightsLounge, HueLightsEntertainment, HueLightsLounge, LightsLoungeKitchenDining)              {channel="hue:0210:00178829a0c5:21:color"}


add your item definitions also plz (you edit your post above)
edit: is 360 a valid value? I don’t use Color items but it seems to me that this is too high. edit: it’s ok… .it’s the max for HSB.
also: try to use the method instead of the action:

TV_Light_Right.sendCommand(360,99,100)

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: