feat(driver-kasa): support color temperature

This commit is contained in:
2026-07-08 14:10:50 -04:00
parent fde59d05ab
commit e42397e072
2 changed files with 36 additions and 8 deletions

View File

@@ -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)]