This commit is contained in:
Mateusz Gruszczyński committed 2026-09-21 22:58:30 +02:00
1 parent 3b969c8754
commit d80005de33
33 files changed
+722 -94

No files matched your search

+2
View File
@@ -99,6 +99,8 @@ pub struct AutomationPlanRule {
pub struct ControlPlan {
pub generated_at: DateTime<Utc>,
pub house_mode: String,
pub emergency_stop_active: bool,
pub emergency_stop_since: Option<DateTime<Utc>>,
/// Uniform whole-house preset when every zone uses the same override; None for a mixed state.
pub house_preset: Option<String>,
/// Compatibility field. Global ON/OFF does not use a persistent master gate; this remains true in v0.9.4+.
+6
View File
@@ -67,6 +67,12 @@ pub struct RuntimeSettings {
/// Global seasonal mode. Zones follow this by default. Values: cool/heat/off; off pauses house-level thermostat control.
#[serde(default = "default_house_mode")]
pub house_mode: String,
/// Persistent emergency pause for all automatic climate control. The flag survives
/// process restarts; physical OFF commands are sent only when the pause is activated.
#[serde(default)]
pub emergency_stop_enabled: bool,
#[serde(default)]
pub emergency_stop_since: Option<DateTime<Utc>>,
/// `setpoint` keeps units powered and modulates compressor demand by changing target temperature.
#[serde(default = "default_control_strategy")]
pub control_strategy: String,