Group (AVG) shows “- K” instead of value (ColorTemperature group)

Hi everyone,

I’m running into an issue with a Sitemap slider that is bound to a Number:Temperature Group using the AVG aggregation.

Instead of showing the expected value, the slider always displays:

- K

even though the individual items receive valid values.


:pushpin: Items

Single device item (MQTT / Zigbee):

Number:Temperature ColorTemperature_GF_Livingroom_ExtendedLight1
  (Group_GF_Livingroom_CeilingLampBulbOne,
   Group_GF_Livingroom_ColorTemperatureLight,
   Group_GF_Livingroom_CeilingLampColorTemp,
   Group_House_PersistedEverySixHour,
   Group_House_PersistedEveryDay)
{
  channel="mqtt:topic:zigbee:numberBulbA6EB59ColorTemperature",
  stateDescription=" [ pattern="%.0f %unit%", min=2000, max=6536]",
  unit="K"
}

Group definition:

Group:Number:Temperature:AVG Group_GF_Livingroom_CeilingLampColorTemp
  (Group_GF_Livingroom_Light) ["Control","ColorTemperature"]

:pushpin: Sitemap

Slider item=Group_GF_Livingroom_CeilingLampColorTemp
  label="Color temperature [%0.f K]"
  minValue=2000
  maxValue=6536
  step=100

:red_exclamation_mark: Problem

The slider always shows:

- K

instead of the expected averaged color temperature of the group.


:thinking: Expected behavior

I would expect that:

  • The AVG group calculates the average of all member values
  • The Sitemap slider displays that value
  • The unit (K) is properly resolved

:magnifying_glass_tilted_left: Question

Is this expected behavior for Group:Number:Temperature:AVG when used directly in a Sitemap slider?

Or is there a known limitation where:

  • AVG groups do not work correctly with Sitemap sliders
  • or stateDescription / unit handling is not properly resolved for group states

:light_bulb: Additional info

  • Individual items receive correct values via MQTT/Zigbee
  • Items are of type Number:Temperature
  • The issue only occurs when using the group in a Slider widget

:folded_hands: Thanks in advance

You told it to.

That [%0.f K] in the label means display the state with no decimal places with unit K.

So that’s why it’s showing up with unit K.

You’ve not given the Group a unit so by default it should use the system default wich will either be °C or °F.

I believe if any member of the Group is not a Number:Temperature or if any member of the Group doesn’t have a state (i.e. the state is NULL or UNDEF), the average will be NULL or UNDEF for the state of the Group.

What is the state of the Group? What are the the states of all of the members of the Group?

Thanks

Sorry my fault I made a stupid spelling mistake