Philips hue lightbulb set rgb_color

Hello,

I have a couple of Philips Hue lightbulbs (model: Philips 9290024896 control via MQTT | Zigbee2MQTT ) that I want to automate.
The lightbulb is integrated by using z2m (version 1.35.2 ) having as coordinator SONOFF Zigbee 3.0 USB Dongle Plus ZBDongle-P (version 20230507 - this is latest)

While writing the automation, something really strange happened, so I went to developer tools to isolate the problem.

Whenever I execute (developer tools → services)

service: light.turn_on
target:
  entity_id: light.1_drm_lightbulb
data:
  rgb_color: [255, 255, 255]

or

service: light.turn_on
target:
  entity_id: light.1_drm_lightbulb
data:
  rgb_color:
    - 255
    - 255
    - 255

and I check the attribute rgb_color for this entity I notice that the value is rgb_color: 255, 254, 254

If I set:

service: light.turn_on
target:
  entity_id: light.1_drm_lightbulb
data:
  rgb_color: [255, 254, 254]

the value is rgb_color: 255, 253, 253

If I set:

service: light.turn_on
target:
  entity_id: light.1_drm_lightbulb
data:
  rgb_color: [255, 250, 250]

the value is rgb_color: 255, 250, 249

I feel like I’m going crazy :slight_smile:

I’m missing something in my understanding?

I want to cycle through some predefined colors; this is what I want to achieve in the end. However, I cannot do this if I set a color and it doesn’t set what I say. Of course I could set what I want and after that verify to what is actually set, but this will create nightmares for me in the future when I will debug the code …