mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-12-03 14:48:21 +00:00
Add LightEffect module for smart light strips (#918)
Implements the `light_strip_lighting_effect` components for `smart` devices. Uses a new list of effects captured from a L900 which are similar to the `iot` effects but include some additional properties and a few extra effects. Assumes that a device only implements `light_strip_lighting_effect` or `light_effect` but not both.
This commit is contained in:
@@ -19,7 +19,14 @@ led = parametrize_combine([led_smart, plug_iot])
|
||||
light_effect_smart = parametrize(
|
||||
"has light effect smart", component_filter="light_effect", protocol_filter={"SMART"}
|
||||
)
|
||||
light_effect = parametrize_combine([light_effect_smart, lightstrip_iot])
|
||||
light_strip_effect_smart = parametrize(
|
||||
"has light strip effect smart",
|
||||
component_filter="light_strip_lighting_effect",
|
||||
protocol_filter={"SMART"},
|
||||
)
|
||||
light_effect = parametrize_combine(
|
||||
[light_effect_smart, light_strip_effect_smart, lightstrip_iot]
|
||||
)
|
||||
|
||||
dimmable_smart = parametrize(
|
||||
"dimmable smart", component_filter="brightness", protocol_filter={"SMART"}
|
||||
|
||||
Reference in New Issue
Block a user