Started work on fullfillment of requests

This commit is contained in:
2022-12-14 05:30:46 +01:00
parent e4369ebf41
commit 36cd0e9b61
14 changed files with 1100 additions and 67 deletions

View File

@@ -27,6 +27,10 @@ pub enum CommandType {
OnOff {
on: bool
},
#[serde(rename = "action.devices.commands.ActivateScene")]
ActivateScene {
deactivate: bool
}
}
#[cfg(test)]
@@ -95,7 +99,7 @@ mod tests {
assert_eq!(payload.commands[0].execution.len(), 1);
match payload.commands[0].execution[0] {
CommandType::OnOff{on} => assert_eq!(on, true),
// _ => panic!("Expected OnOff")
_ => panic!("Expected OnOff")
}
},
_ => panic!("Expected Execute intent")