Add colortemp module (#814)

Allow controlling the color temperature via features interface:
```
$ kasa --host 192.168.xx.xx feature color_temperature                                                                                                                             
Color temperature (color_temperature): 0

$ kasa --host 192.168.xx.xx feature color_temperature 2000
Setting color_temperature to 2000
Raised error: Temperature should be between 2500 and 6500, was 2000
Run with --debug enabled to see stacktrace

$ kasa --host 192.168.xx.xx feature color_temperature 3000
Setting color_temperature to 3000

$ kasa --host 192.168.xx.xx feature color_temperature                                                                                                                             
Color temperature (color_temperature): 3000
```
This commit is contained in:
Teemu R
2024-03-15 17:36:07 +01:00
committed by GitHub
parent 270614aa02
commit d63f43a230
6 changed files with 99 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ from .battery import BatterySensor
from .brightness import Brightness
from .childdevicemodule import ChildDeviceModule
from .cloudmodule import CloudModule
from .colortemp import ColorTemperatureModule
from .devicemodule import DeviceModule
from .energymodule import EnergyModule
from .firmware import Firmware
@@ -31,4 +32,5 @@ __all__ = [
"Firmware",
"CloudModule",
"LightTransitionModule",
"ColorTemperatureModule",
]