sbidy / wiz_light

A WiZ Light integration for Home Assistant
MIT License
341 stars 68 forks source link

Support Speed option for effects #218

Closed quielb closed 2 years ago

quielb commented 2 years ago

Several of the effects has a speed option. Please add support for the speed capability in the HA component. The turn_on service does not support a speed attribute. You may consider creating a custom service like effect similar to how the WLED integration handles the speed option with the service wled.effect

trancefam commented 2 years ago

This would be cool if it was possible through the api (I do not know). I did want to mention though that the wled.effect service was removed in 2021.12 of HA. The wled integration now provides number entities for speed/intensity instead.

Example: image

randallspicher commented 2 years ago

The Wiz api supports speed. Just pass in the "speed" param (values 20-200)

{ "method": "setPilot", "params": { "speed": 190, "sceneId": 7 } } https://docs.pro.wizconnected.com/?shell#graphql-schema is a pretty good reference. (the "cw" and "ww" args are just "c" and "w" when connecting directly to the bulb, but otherwise it's pretty useful)

bdraco commented 2 years ago

This can be closed as its implemented in the core version