hass-miio-yeelink icon indicating copy to clipboard operation
hass-miio-yeelink copied to clipboard

Feature request: Support effects

Open mouth4war opened this issue 3 years ago • 6 comments

Can we get effects like yeelight component?

mouth4war avatar Jul 17 '21 15:07 mouth4war

The effect list cannot be obtained. If you want to turn on the effect, you can use miio_yeelink.send_command service.

al-one avatar Jul 19 '21 03:07 al-one

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

ptbsare avatar Sep 14 '21 14:09 ptbsare

Details can be found in yeelight document. https://www.yeelight.com/download/Yeelight_Inter-Operation_Spec.pdf

ptbsare avatar Sep 14 '21 14:09 ptbsare

It would be more convenient if we can choose light effects on the front end. Thanks! IMG_20210914_220740

ptbsare avatar Sep 14 '21 14:09 ptbsare

Any chance to get introduce this feature?

nuddler avatar Mar 06 '22 15:03 nuddler

How to send command for "get_prop" and get response?

nuddler avatar Mar 06 '22 16:03 nuddler