This commit is contained in:
Mateusz Gruszczyński
2026-09-14 16:32:28 +02:00
parent c3fbc5ccc6
commit 021cbddba5
68 changed files with 7780 additions and 202 deletions
+21 -2
View File
@@ -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,
);