[SOLVED] Strange UNDEF "thing" in a simple Group item of Hue lamps

I´m not quite sure whats going on. Its not a warning, nor an error. But I still see this strange thing in the tail log where a Group item goes from a value to UNDEF, when used as a Group Dimmer, controled form a slider in BasicUI:
This is the fail log: Notice the GroupItemStateChangedEvent

2018-11-14 22:56:06.408 [ome.event.ItemCommandEvent] - Item 'HueStue' received command 61
2018-11-14 22:56:06.417 [ome.event.ItemCommandEvent] - Item 'Huebloom_HB' received command 61
2018-11-14 22:56:06.420 [ome.event.ItemCommandEvent] - Item 'Huebloom_HF' received command 61
2018-11-14 22:56:06.432 [ome.event.ItemCommandEvent] - Item 'Huebloom_VF' received command 61
2018-11-14 22:56:06.475 [ome.event.ItemCommandEvent] - Item 'Huependel_col' received command 61
2018-11-14 22:56:06.496 [GroupItemStateChangedEvent] - HueStue changed from 61 to UNDEF through Huebloom_HB
2018-11-14 22:56:06.500 [vent.ItemStateChangedEvent] - Huebloom_HB changed from 70,20,31 to 70,20,61
2018-11-14 22:56:06.511 [vent.ItemStateChangedEvent] - Huebloom_HF changed from 70,20,31 to 70,20,61
2018-11-14 22:56:06.514 [vent.ItemStateChangedEvent] - Huebloom_VF changed from 70,20,31 to 70,20,61
2018-11-14 22:56:06.521 [vent.ItemStateChangedEvent] - Huependel_col changed from 83,52,31 to 83,52,61

These are my items:
First three is HueBloom lamps. The fourth is a Hue color bulb.

Color 	Huebloom_HB		"Hue Bloom højre bag [%s]"		<colorpicker>		(HueStue, gHueStue)	{ channel="hue:0200:00178821639e:11:color" }
Color 	Huebloom_HF		"Hue Bloom højre front [%s]"	<colorpicker>		(HueStue, gHueStue)	{ channel="hue:0200:00178821639e:10:color" }
Color 	Huebloom_VF		"Hue Bloom venstre front [%s]"	<colorpicker>		(HueStue, gHueStue)	{ channel="hue:0200:00178821639e:7:color" }
Color 	Huependel_col	"Hue Pendel farver [%s]"		<colorpicker>		(HueStue, gHueStue)	{ channel="hue:0210:00178821639e:13:color" }

And this is my Groups:

Group:Dimmer 				HueStue 	"Hue i stuen Fælles Dimmer [%s]" 			<colorlight>
Group:Switch:OR(ON,OFF)		HgHueStue	"Hue i stuen Fælles tænd/sluk [%s]"			<switch>

Anyone got any idea why Group item HueStue goes from 61 to UNDEF ? It looks pretty strange to me (I´d set the slider to 61 in BasicUI). It happens every time I move the slider.

just an idea: shouldn’t this be: Group:Color ?

I think that it goes to UNDEF because the values of the Items with Color type are not just a simple number.
The moment that you send the command to go to 61, the state of each of the members change to 70,20,61 causing the group to go crazy (can’t store that in a Dimmer type)

You can use a Slider in your sitemap with this item

Just gave it a try… It gives the same “problem” with Group:Color

018-11-14 23:32:01.970 [ome.event.ItemCommandEvent] - Item 'HueStue' received command 38
2018-11-14 23:32:01.979 [ome.event.ItemCommandEvent] - Item 'Huebloom_HB' received command 38
2018-11-14 23:32:01.983 [ome.event.ItemCommandEvent] - Item 'Huebloom_HF' received command 38
2018-11-14 23:32:01.988 [ome.event.ItemCommandEvent] - Item 'Huebloom_VF' received command 38
2018-11-14 23:32:01.995 [ome.event.ItemCommandEvent] - Item 'Huependel_col' received command 38
2018-11-14 23:32:02.053 [GroupItemStateChangedEvent] - HueStue changed from 0,0,38 to UNDEF through Huebloom_HB
2018-11-14 23:32:02.070 [vent.ItemStateChangedEvent] - Huebloom_HB changed from 70,20,61 to 70,20,38
2018-11-14 23:32:02.073 [vent.ItemStateChangedEvent] - Huebloom_HF changed from 70,20,61 to 70,20,38
2018-11-14 23:32:02.076 [vent.ItemStateChangedEvent] - Huebloom_VF changed from 70,20,61 to 70,20,38
2018-11-14 23:32:02.083 [vent.ItemStateChangedEvent] - Huependel_col changed from 83,52,61 to 83,52,38

the state of the 4th item is different than the others

Since the default state aggregation function is EQUALITY, you need to have exactly the same values for the state for the Group to have a proper state value

In theory, if you change Huependel_col to 70,20,61 the Group will show 70,20,61 also

Source: https://www.openhab.org/docs/configuration/items.html#group-type-and-state

To elaborate on Dim’s answer:

It’s set up as a Dimmer type group, with Color type members.
That means you can send Dimmer type commands to the group, and they get passed on to the Color members.
When the Color members update themselves, that triggers a calculation of the Group state based on members state. But a Color state doesn’t “fit” into a Dimmer state, so the result is UNDEFined.

EDIT - redundant waffle, by the time I typed it Dim had expanded his answer :slight_smile:


Thats because it´s a Hue E27 Bulb, The first three are Hue Bloom lamps…

Hmm, So the Group should be defined with EQUALITY like this

that’s the default aggregation function (no need to specify it)

if you want to, you can of course:

Group:Color:EQUALITY 				HueStue 	"Hue i stuen Fælles Dimmer [%s]" 			<colorlight>

but… if you can’t have exactly the same Item state values for all members… guess what… UNDEF again :stuck_out_tongue:

I think I get it now.
The problem is actually because of the other values, not the last value (level/brigthness). And because of the fourth lamp (the Hue E27 Bulb) all four lamps will never be the same value… ie, 70,20,61 for the first three lamps and 83,52,61 for the Hue E27 Bulb. Is that correct?

You don’t HAVE to set a type for the Group at all. If the value of the Group of disparate Color Items is of no actual use … don’t calculate it.

It might be worth highlighting that how you choose to represent an Item or Group in the sitemap need not be related to the Item/Group actual type (or lack of).
A long winded way to say you can put a typeless Group in your sitemap as a Slider.



by the way: why is it impossible to have the Hue E27 Bulb set at 70,20,61 ?
(I don’t use Hue or RGB/HSV stuff so I really don’t know)

Ahh Ofocuse… Make sense…
I removed the type, and now the UNDEF is gone :slight_smile:

1 Like

Because it is not the same value for the same color and temperature (warmth) as the three Hue Bloom lamps, If I set the same scene for all four lamps, the values are different for the color E27bulbs.

The four lamps are place in our living room, one in each corner, the blooms are placed on small plate 25cm above the floor, pointing upwards into the corner. The E27 is hanging inside a glass/frosen ball.
They are all using the same scene setup in the Hue app.

If I set the E27 bulb to the same values, it will look alot different than the Bloome lamps.

1 Like

that sounds like a Hue “bug” to me :slight_smile:

Assuming that these 3 values are Hue, Saturation and Brightness (HSB), then the Color output should be the same across all 4 bulbs.

Anyway, just fyi (and if you could set the same value for all 4):
You could still use a Group and a Colorpicker in your sitemap.
Playing with the Colorpicker would send the same 3 HSB values to the Group members and update the Group state correctly accordingly.

I do have colorpicker, but I havn´t got to the group for that yet… still trying to figure it out :slight_smile:

You can have 1 Group (with or without type and function) and use the same Item (a Group is a “special” type of Item) in 2 places in your sitemap (as a Slider and as a Color picker). No need to create a second Group.

The Slider will only send the last part of the HSB (Brightness)
The Colorpicker will also be able to send the full HSB values

Ahh, ofcouse you mean using the same item for both Slider and Colorpicker in sitemap, like this:


Slider      item=HueStue
Colorpicker item=HueStue

Didn´t think of that.
I actually hardly ever use the colors. I have a few “standard” scenes, but mainly use a normal white/warm color, and then use dimming. Thats basicly it, even though I have had Philips Hue for several years now, (since the biginning) :slight_smile: