Implementing presets scenes: need help on flow_params
Hi,
I have a color1 light bulb that I use through homeassistant (which internally uses this library to control the bulb). The default "scenes" or "moods" accessible by default through homeassistant aren't great and I would like to re-implement the default presets/scenes/moods that yeelight provides in its app. I'm talking about the following moods for example: "Home", "Romance", "Movie", etc.
I found this page: https://github.com/danielrheinbay/Yeelight-Bulb-scenes which seems to list the raw "notification" messages (see Yeelight's API documentation here: https://www.yeelight.com/download/Yeelight_Inter-Operation_Spec.pdf) for all the presets. The guy did most of the work I think.
I would like to re-implement these moods with python-yeelight so that they can be used with homeassistant later.
But I'm struggling to understand the flow_params
field of the responses. Example:
{"method":"props","params":{"flowing":1}}
{"method":"props","params":{"flow_params":"3,2,50,2,2700,10,180000,2,1700,5,420000,1,16731136,1"}}
The doc says flow_params
is:
Current flow parameters (only meaningful when 'flowing' is 1)
But that's about it.
Could you guys give me more info on what this parameter encodes? Is it a RGB transition? A temperature transition?
Kind regards