al-one / hass-miio-yeelink

Xiaomi Miio Yeelink/Yeelight devices for Home Assistant
178 stars 29 forks source link

Feature request: Support effects #21

Open mouth4war opened 3 years ago

mouth4war commented 3 years ago

Can we get effects like yeelight component?

al-one commented 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.

ptbsare commented 3 years ago

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 commented 3 years ago

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

ptbsare commented 3 years ago

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

nuddler commented 2 years ago

Any chance to get introduce this feature?

nuddler commented 2 years ago

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