Added Air Filter support
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-10-07 05:34:33 +02:00
parent 7ee40f6bb8
commit b12b76bd50
13 changed files with 347 additions and 11 deletions

View File

@@ -20,13 +20,15 @@ pub struct Device {
// customData
}
#[derive(Debug, Deserialize, Clone, Copy)]
#[derive(Debug, Deserialize, Clone)]
#[serde(tag = "command", content = "params")]
pub enum CommandType {
#[serde(rename = "action.devices.commands.OnOff")]
OnOff { on: bool },
#[serde(rename = "action.devices.commands.ActivateScene")]
ActivateScene { deactivate: bool },
#[serde(rename = "action.devices.commands.SetFanSpeed")]
SetFanSpeed { fan_speed: String },
}
#[cfg(test)]