This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Color temperature attribute is zero.

Hello,

I slightly modified examples\multiprotocol\experimental\ble_zigbee_dynamic_color_light_bulb_thingy so that it can receive changes in the color temperature attribute.

switch (attr_id)
{
  ...
  case ZB_ZCL_ATTR_COLOR_CONTROL_COLOR_TEMPERATURE_ID:
     color_control_set_color_temperature(value);
     break;
  ...
}

In Zigbee packet sniffer I see that command "Move  to Color Temperature" is sent

But I receive zero in 

p_device_cb_param->cb_param.set_attr_value_param.values.data16

Although p_device_cb_param->cb_param.set_attr_value_param.values.data32 contains some value but it's not what I would expect at all.

There is nothing is the payload which might remotely resemble the color temperature I sent - 288 Mired or 0x0120.

I would very much appreciate it if you can point to any mistake.

Best regards,

Sergey

Parents Reply
  • Hi,

    Sorry for the late reply and any inconvenience this may have cause. If I understand your problem correctly, you also got value zero from the endpoint handler when parsing the Color Temperature Mireds attribute? Can I ask what values did you set ColorTempPhysicalMaxMired and ColorTempPhysicalMinMireds attribute?

    If ColorTempPhysicalMaxMireds is set to zero it is possible that no matter what value was set in command, if it's greater than zero, data16 it is set to zero.

    Looking at data32 here is not of much help, because the last 2 bytes can be random values if not set by the program.

    Best regards,

    Marjeris

Children
No Data
Related