This commit is contained in:
Mateusz Gruszczyński
2026-09-04 12:02:33 +02:00
parent ade221bb76
commit 5c941352bb
20 changed files with 85 additions and 55 deletions
+1 -1
View File
@@ -868,7 +868,7 @@ async fn apply_flow_zone_action(state: &AppState, zone_id: &str, preset: Option<
"auto" => { zone.manual_preset = None; zone.manual_setpoint = None; zone.manual_override_until = None; }
"custom" => {
let target = action.target_temperature.ok_or_else(|| AppError::BadRequest("Flow custom thermostat action has no target".into()))?;
zone.manual_preset = Some("custom".into()); zone.manual_setpoint = Some((target.clamp(8.0,30.0)*2.0).round()/2.0);
zone.manual_preset = Some("custom".into()); zone.manual_setpoint = Some(normalize_thermostat_target(target.clamp(8.0, 30.0)));
zone.manual_override_until = next_schedule_boundary_utc(&zone.id, &state.db.list_schedules()?, Local::now());
}
value @ ("comfort" | "sleep" | "away") => {