Open mouth4war opened 3 years ago
The effect list cannot be obtained. If you want to turn on the effect, you can use miio_yeelink.send_command
service.
Hi, in the yeelight component, the effects are hard-coded. See : https://gitlab.com/stavros/python-yeelight/-/blob/master/yeelight/flows.py Would you please add these effects? Thanks. Here is a send_command example (candle_flicker) using the miio_yeelink.send_command service in HA:
entity_id: light.xiaomi_yeelink
method: set_scene
params:
- cf
- 0
- 0
- >-
800,2,2700,50,800,2,2700,30,1200,2,2700,80,800,2,2700,60,1200,2,2700,90,2400,2,2700,50,1200,2,2700,80,800,2,2700,60,400,2,2700,70
Details can be found in yeelight document. https://www.yeelight.com/download/Yeelight_Inter-Operation_Spec.pdf
It would be more convenient if we can choose light effects on the front end. Thanks!
Any chance to get introduce this feature?
How to send command for "get_prop" and get response?
Can we get effects like yeelight component?