v0.14.0
This commit is contained in:
@@ -824,9 +824,28 @@ async fn control_zones(state: &AppState) -> Result<()> {
|
||||
// frame as the standby setpoint and Low fan. When demand returns, disable Quiet
|
||||
// on the normal smart-fan transition. When scheduled night mode owns Quiet, it
|
||||
// explicitly enables it inside the window and releases it outside the window.
|
||||
let quiet_supported = if device.connection_type == ConnectionType::GreeCloud {
|
||||
device.capabilities.quiet
|
||||
} else {
|
||||
state
|
||||
.providers
|
||||
.local()
|
||||
.client()
|
||||
.quiet_command_supported(&device.id)
|
||||
};
|
||||
let sleep_supported = if device.connection_type == ConnectionType::GreeCloud {
|
||||
device.capabilities.sleep
|
||||
} else {
|
||||
device.supports_sleep == Some(true)
|
||||
&& state
|
||||
.providers
|
||||
.local()
|
||||
.client()
|
||||
.sleep_command_supported(&device.id)
|
||||
};
|
||||
let desired_quiet = smart_quiet_command(
|
||||
zone.smart_fan,
|
||||
state.gree.quiet_command_supported(&device.id),
|
||||
quiet_supported,
|
||||
previous_demand,
|
||||
zone.demand,
|
||||
device.quiet,
|
||||
@@ -838,7 +857,7 @@ async fn control_zones(state: &AppState) -> Result<()> {
|
||||
settings.night_mode.enabled,
|
||||
night_active,
|
||||
settings.night_mode.use_native_sleep,
|
||||
device.supports_sleep == Some(true) && state.gree.sleep_command_supported(&device.id),
|
||||
sleep_supported,
|
||||
device.sleep,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user