Hue Colour Bulb Change in Behaviour

Recently some of my Hue bulbs seem to have changed their behaviour. I have a bunch of lights that are controlled by rules based on time of day, ambient light level, motion etc. Some of the bulbs are the white ambience type and some are full colour.

A few days ago the colour ones just stopped working, while the white ones continued to function perfectly. The logs indicated that commands were being sent as normal, so I tried a bunch of things such as updating OH to the latest stable version with all packages updated, restarted the Hue Bridge, and removed the Bulb Things and re added them. Nothing worked.

To eliminate the complexities of the rules I set up a test switch on site map and wrote a simple rule that just turned on one of the lamps when the switch changed to on. It didn’t work. The command that I’ve been using successfully to turn on the lamps is"

HueBedroomReadingLamp_Color.sendCommand("250,200,85")

After much playing around I discovered the only way I can turn on the bulb is to use:

HueBedroomReadingLamp_Color.sendCommand(ON)

The white ambience bulbs will still turn on quite happily by sending them a brightness value that is greater than 0.

Can anyone please explain why this behaviour has changed as I’m concerned that if I don’t fully understand what’s happening that my current workaround may also fail at some point.

Cheers,
Pete.

  • Platform information: Raspberry Pi
    • Hardware: CPUArchitecture/RAM/storage
    • OS: _Openhabian 4.2.0

Did you try sendCommand(new HSBType(“250,200,85”)) ?

I have the same problem. Already ask in german board, but no success: Hue Lampen schalten nicht mehr ein :-/ - openhabforum.de

The problem is, that the bulb is not enabled anymore. If the light is already on, all cooler command will work and the color is changed. But if the light is off, a „x,x,x“ color command will not enable the light anymore.

In the German thread, also a downgrade was checked. And also older releases have the same problem. So I think it is a problem of the laste Hue-Bridge-Software releases.

Regards,
Tim

For this purpose please look at the (advanced) channel On/Off Only.

Hey @AndrewFG There is no „on/off“ channel. Just color, color_temperature, color_temprature_abs, alert & effect.
Regards,
Tim

In Main UI Channels tab, press the “Advanced” checkbox.

Hi Andrew,

I’ve been away for the weekend, but will try your suggestion tonight - thanks very much for responding. It’s odd that what was working fine has suddenly stopped, but perhaps Tim’s suspicion that the Hue Bridge software has changed is correct.
Cheers,
Pete.

I am on vacation right now, so I cannot check. But I have two hypotheses…

  1. OH core rules processor no longer can parse a comma delimited triplet string (like “10,20,30”) automatically as an HsbType command, or…
  2. As you suggest, that something changed in the July Hue firmware update.

Apropos 2. above: the Hue bridge itself processes colorXY, brightness, and on/off states as three different orthogonal state vectors (i.e. it can change a color (say) independent of changing the on/off or brightness states), whereas the OH system requires the three state vectors to be non orthogonally coupled (i.e. you can send an on/off or dimming command to the color channel, etc.). And this means that the OH binding has some “logic” to “re-orthogonalize” the three state vectors. I was never comfortable with that messy requirement, so we also implemented the advanced “on/off only” and “dimming only” chanels, that allow you to send send orthogonal commands directly, and bypass the the “re-orthogonalization” of OH.

1 Like

@AndrewFG yes. There is no channel. Perhaps I have to recreate the item. I will check this later…

You are using API v2 right?

No. The v1 bridge.

Do you mean the v1 bridge hardware? Which only supports API v1. Or the v2 bridge hardware? Which supports both API v1 and v2.

If it is really the v1 bridge hardware, then neither the firmware nor the binding have changed, so if you nevertheless notice a change in behaviour then the only thing that would have changed is the OH core itself.

Hi,

After reading post #3 I tried adding a command sending a dimmer percentage prior to send a HSB value.

Item

Color Toilettes_C "Toilettes" (gToilettesEtage, gLCouleur) {channel="hue:0210:00XXX:bulb7:color", expire="2m,command=0"}

Rule

…
var HSBType light = new HSBType(Pr_Dimmer_Light.state.toString)
Toilettes_C.sendCommand(1)
Toilettes_C.sendCommand(light.toString)
…

This workaround seems to work, although it is not that elegant.
It also works using a Dimmer type Item:

Items

Color Toilettes_C "Toilettes" (gToilettesEtage, gLCouleur) {channel="hue:0210:00XXX:bulb7:color", expire="2m,command=0"}
Dimmer Toilettes_D "Toilettes - Dimmer" (gToilettesEtage, gLCouleur, gLDimmer) {channel="hue:0210:00XXX:bulb7:color"/}

Rule

…
var HSBType light = new HSBType(Pr_Dimmer_Light.state.toString)
Toilettes_D.sendCommand(1)
Toilettes_C.sendCommand(light.toString)
…

Cheers,
Ludovic

Hey @AndrewFG

sorry for the missing information. The hardware is the v2 bridge and I use the openHAB v1 API binding. I think it is not part of the core… the guy in the german openHab forum try a downgrade and it is still the same issue. Furthermore I think the lights works a few days with my current openHAB version :slight_smile:

The workaround from @lolu word als in my Blocky case. I send a “ON” in front of the HSB value.

Regards,
Tim

Hi Andrew,
I tried adding the line you suggested but I think there’s some kind of syntax error that I’m not spotting. My rule looks like this:

rule "Test_Rule_On"
when
Item Rule_Trigger changed to ON

then
AmazonEchoStudio_Speak.sendCommand('Routine triggered')
HueBedroomReadingLamp_Color.sendCommand(new HSBType("250,200,85"))
	
end

But in the Problems section of the editor I get this:

Ambiguous feature call.
The extension methods
sendCommand(Item, Number) in BusEvent and
sendCommand(Item, Command) in BusEvent
both match.

I’m probably making a noobie mistake somewhere, but I’m not sure what.

Hope you’re vacation is going well.
Pete.

Ok. Please try the suggested solution of @lolu …

I am glad you found a solution. It looks like the Hue bridge behaviour did indeed change (at least for users still using API v1). It is not that anything was “broken” in the OH binding by that change; but rather that the behaviour is now simply different than it was before. Therefore I am not planning to make any specific “fix” in the binding (for API v1), and will simply guide other users to use the same workaround as you did here.

Apropos users on API v2, I think that whatever change that Philips / Signify made in v1 will not have been replicated in v2. (Since v2 was always doing it the same way as v1 now does). And therefore I am also not planning to make any changes in the OH binding v2 functionality.