v0.6.5
This commit is contained in:
+12
-1
@@ -108,6 +108,9 @@ pub struct Device {
|
||||
pub temperature_sensor_offset: Option<bool>,
|
||||
#[serde(default)]
|
||||
pub online: bool,
|
||||
/// Round-trip time of the latest successful controller communication.
|
||||
#[serde(default)]
|
||||
pub response_time_ms: Option<u64>,
|
||||
#[serde(default)]
|
||||
pub last_seen: Option<DateTime<Utc>>,
|
||||
#[serde(default)]
|
||||
@@ -158,6 +161,7 @@ impl Device {
|
||||
outdoor_temperature: Some(30.0),
|
||||
temperature_sensor_offset: Some(false),
|
||||
online: true,
|
||||
response_time_ms: Some(0),
|
||||
last_seen: Some(now),
|
||||
last_error: None,
|
||||
communication_failures: 0,
|
||||
@@ -667,6 +671,10 @@ pub struct AutomationPlanRule {
|
||||
pub struct ControlPlan {
|
||||
pub generated_at: DateTime<Utc>,
|
||||
pub house_mode: String,
|
||||
/// Uniform whole-house preset when every zone uses the same override; None for a mixed state.
|
||||
pub house_preset: Option<String>,
|
||||
/// Whole-house master power state.
|
||||
pub house_power: bool,
|
||||
pub outdoor_temperature: Option<f64>,
|
||||
pub control_strategy: String,
|
||||
pub night_mode_active: bool,
|
||||
@@ -686,9 +694,12 @@ pub struct RuntimeSettings {
|
||||
pub zone_interval_seconds: u64,
|
||||
pub discovery_timeout_ms: u64,
|
||||
pub discovery_broadcast: String,
|
||||
/// Global seasonal mode. Zones follow this by default. Values: cool/heat/off.
|
||||
/// 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,
|
||||
/// Whole-house master power. False is authoritative and suppresses zone/automation restarts.
|
||||
#[serde(default = "default_true")]
|
||||
pub house_power_enabled: bool,
|
||||
/// `setpoint` keeps units powered and modulates compressor demand by changing target temperature.
|
||||
#[serde(default = "default_control_strategy")]
|
||||
pub control_strategy: String,
|
||||
|
||||
Reference in New Issue
Block a user