Help with a wake-up-color-ikea-lightbulb Script

Hey Guys, i need some help with a script of mine. Or rather some trouble shooting, maybe someone else can provide some input.

First here is my script in question:

script:
#####################################################################################
  'wakeup_sequence':
    alias: wakeup_sequence
    sequence:
    - data:
        message: Start Alarm Sequence! Current time is {{ states.sensor.time.state }} and the alarm is set to {{ states.sensor.alarm_1_time.state }} with an offset of {{ states.input_number.alarm_1_offset.state }} set to {{ states.sensor.alarm_1_time_minus_offset.state }} Alarm on Weekdays is({{ states.input_boolean.alarm_1_weekday.state }} ) and on Weekends is ({{ states.input_boolean.alarm_1_weekend.state }} ) delay timer is also properly configured to 00:{{ states.input_number.alarm_1_offset.state | int }}:00
      service: notify.zchat
    - data: {}
      service: script.wakeup_dim
    - delay: 00:00:05
    - data: {}
      service: script.wakeup_bright_step_one
    - delay: '00:{{ states.input_number.alarm_1_offset.state | int }}:10'
######################################################################################
  'wakeup_dim':
    alias: wakeup_dim
    sequence:
    - data:
        brightness_pct: '1'
        entity_id:
        - light.yeelight_rgb_34ce008d0d2f
        - light.bedroom_bulb_color
        rgb_color:
        - 255
        - 0
        - 0
        transition: '0'
      service: light.turn_on
############################################################
  'wakeup_bright_step_one':
    alias: wakeup_bright_step_one
    sequence:
    - data_template:
        entity_id:
        - light.yeelight_rgb_34ce008d0d2f
        - light.bedroom_bulb_color
        transition: '{{ ((states.input_number.alarm_1_offset.state | int )*60) | int }}' 
        brightness_pct: '100'
        rgb_color:
        - 255
        - 167
        - 90
        color_temp: '343'
      service: light.turn_on
    - data:
        message: Lights Up
      service: notify.zchat
############################################################

First some commentary, the part '{{ ((states.input_number.alarm_1_offset.state | int )*60) | int }}' set the transition to a number in minutes, typically 15 mins. The frist thing is a wireless bulb yeeligth the second is a IKEA tradfri colour bulb.

The problem I have is that the ikea bulb only transitions from the initial red (brightness 0) to about rgb(255,267,90) at brightness 40% or so and then just stalls, the yeebulb does it properly. The ikea bulb is connected via the ikea gateway.

Anything I could try here?

Hi,

My Ikea Lamp is the two color one. And my comands aren’t made by HA but by node red(With node red you can also get the brightness level and color that the lamp is in.).
Try to send only one comand at a time. One for color, then one for brightness. That was the problem that I had.
When you call the service you are sending the brightness and color entity’s in the data object. Try to send only one entity. What I do is send one comand to brightness then one to color, then again brightness…and so on!
Hope this help!

Yeah, Thanks for the hint! i will give it a try.