feat(driver-kasa): support color temperature
This commit is contained in:
@@ -388,13 +388,19 @@ pub struct SetLightHsv {
|
||||
pub hsb: Hsb,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
pub struct SetLightKelvin {
|
||||
pub on_off: On,
|
||||
pub color_temp: Kelvin,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum SetLightTo {
|
||||
Off(SetLightOff),
|
||||
LastOn(SetLightLastOn),
|
||||
Hsv(SetLightHsv),
|
||||
// TODO: kelvin
|
||||
Kelvin(SetLightKelvin),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, derive_more::From)]
|
||||
|
||||
Reference in New Issue
Block a user