v0.13.10
This commit is contained in:
1 parent
a7fc1f2dc4
commit
c3fbc5ccc6
14 files changed
+152
-42
No files matched your search
@@ -34,6 +34,14 @@ pub struct Device {
|
||||
pub swing_horizontal: bool,
|
||||
#[serde(default)]
|
||||
pub quiet: bool,
|
||||
/// Raw non-zero value last reported by the unit for the GREE `Quiet` property.
|
||||
///
|
||||
/// Most of the application intentionally exposes Quiet as a boolean, but the wire
|
||||
/// protocol is not consistently boolean across GREE firmware. Known units report
|
||||
/// values 1, 2 or 3 for active Quiet modes. Remembering the observed value lets us
|
||||
/// preserve the device-specific encoding when a later command enables Quiet again.
|
||||
#[serde(default)]
|
||||
pub quiet_wire_value: Option<u8>,
|
||||
#[serde(default)]
|
||||
pub turbo: bool,
|
||||
#[serde(default)]
|
||||
@@ -106,6 +114,7 @@ impl Device {
|
||||
swing_vertical: false,
|
||||
swing_horizontal: false,
|
||||
quiet: false,
|
||||
quiet_wire_value: None,
|
||||
turbo: false,
|
||||
light: true,
|
||||
air: false,
|
||||
|
||||
Reference in new issue
Block a user