Yeelight set color flow scene not working

Hey guys, trying to setup an automation to trigger a specific yeelight to flash red and blue on trigger. I can’t see any fault in my code. Is there a known issue with this? Or perhaps I am doing something wrong?

In case anyone is interested this is how I wrote it.

service: yeelight.set_color_flow_scene
data:
  count: 6
  action: recover
  transitions: RGBTransition(255, 0, 0, 300, 100), RGBTransition(0, 0, 255, 300, 100),
target:
  entity_id: light.yeelight_color_0x371e54f