Lights showing wrong color in dashboard tile

I have a script with a sequence that makes lamps chase through colors. At the end the lamps go back to warm white. In the dashboard the lamps are regularly updating their color state visually while the script is running, but at the end the dashboard tiles won’t show the warm white anymore. Which is confusing ofc.

It doesn’t matter if the sequence is running 1 time or 10 times in the script, the lamps are updating in the dashboard the whole time right until they go to warm white.

How can I get it to update to the warm white color in the dashboard?

This screenshot is taken minutes after the script was completed, so they were outputting warm white:

Script:
sequence:
  - repeat:
      count: 3
      sequence:
        - sequence:
            - alias: Rood
              action: light.turn_on
              metadata: {}
              data:
                rgb_color:
                  - 255
                  - 0
                  - 0
                transition: 3
              target:
                entity_id:
                  - light.papasan
                  - light.salontafel
            - delay:
                hours: 0
                minutes: 0
                seconds: 3
            - alias: Groen
              action: light.turn_on
              metadata: {}
              data:
                rgb_color:
                  - 0
                  - 255
                  - 0
                transition: 3
              target:
                entity_id:
                  - light.papasan
                  - light.salontafel
            - delay:
                hours: 0
                minutes: 0
                seconds: 3
            - alias: Blauw
              action: light.turn_on
              metadata: {}
              data:
                rgb_color:
                  - 0
                  - 0
                  - 255
                transition: 3
              target:
                entity_id:
                  - light.papasan
                  - light.salontafel
            - delay:
                hours: 0
                minutes: 0
                seconds: 3
  - action: light.turn_on
    metadata: {}
    data:
      transition: 3
      rgb_color:
        - 255
        - 175
        - 100
    target:
      entity_id:
        - light.salontafel
        - light.papasan
alias: K3 woonkamer
description: ""

When I add a delay of 30s at the end of the script and then let them go to a normal white scene, the lamps stay the same color in the dashboard. When I tap the same scene manually a few seconds after the script has finished, the lamps go to white in the dashboard.

Is it a bug with scripts maybe?

When I call the script from an automatisation, add a delay to activate the normal white scene after 30 seconds, it still shows up in the dashboard in the wrong color. I don’t know what’s going wrong here.

Giving RGB or RGBWW values or activating a scene, when it’s in an automatisation or script, the dashboard always get stuck on these same colors :person_shrugging: