This commit is contained in:
Mateusz Gruszczyński committed 2026-09-23 09:24:15 +02:00
1 parent 0148daf410
commit f08613a254
23 files changed
+290 -70

No files matched your search

+4
View File
@@ -74,6 +74,10 @@ pub struct Automation {
pub cooldown_seconds: u64,
#[serde(default)]
pub last_fired_at: Option<DateTime<Utc>>,
/// Snapshot of the evaluated Flow condition trace from the most recent execution attempt.
/// Empty for legacy/direct automations and for Flow automations that have never executed.
#[serde(default)]
pub last_trigger_trace: Vec<Value>,
/// Optional Flow-owned thermostat zone target.
#[serde(default)]
pub action_zone_id: Option<String>,
+6
View File
@@ -92,6 +92,12 @@ pub struct AutomationPlanRule {
pub action_preset: Option<String>,
pub action: DeviceCommand,
pub last_fired_at: Option<DateTime<Utc>>,
#[serde(default)]
pub last_trigger_trace: Vec<Value>,
#[serde(default)]
pub flow_id: Option<String>,
#[serde(default)]
pub flow_node_id: Option<String>,
pub next_ready_at: Option<DateTime<Utc>>,
}