Failed to call service yeelight.start_flow. Unknown error

I’m trying to set up an automation for an alarm to strobe a light when triggered until disarmed, then return the light to its previous state.
I’ve tried many things such as saving and restoring scenes and nothing really has worked.

I read through the Yeelight docs and noted that flows have a “recover” action when the flow stops, but I just can’t get it to work, even when copy-pasting the example in the development tools area. I’ve scoured forums and the internet but I can’t find anything, or even a full example of the flows service call. I get following after correct (I believe) syntax:

“Failed to call service yeelight.start_flow. Unknown error”

Here’s my yaml:

service: yeelight.start_flow
target:
  device_id: bf1162696f8ad8330a200a5fb182947f
data:
  count: 1
  action: recover
  transitions:
    - TemperatureTransition:
        - 1900
        - 1000
        - 80
    - TemperatureTransition:
        - 1900
        - 1000
        - 10

Help is appreciated.

I just had the same issue. I’m not sure why it’s happening, but referencing the entity_id instead of device_id fixed it for me.

1 Like

Thanks so much! That got it working! I appreciate you signing up just to post this for me.
I’ll endeavour to create an issue on GitHub to hopefully fix this for others.

1 Like