This commit is contained in:
Mateusz Gruszczyński
2026-08-27 22:00:13 +02:00
parent 4cc4378588
commit b93a1f2d92
16 changed files with 196 additions and 64 deletions
+6 -1
View File
@@ -6,7 +6,12 @@ use crate::{config::Config, db::Db, models::{ApiEvent, DeviceCommand, RuntimeSet
#[derive(Debug, Clone)]
pub(crate) struct PendingControllerCommand {
pub command: DeviceCommand,
/// Recent controller-requested values for climate fields. Keep a short history because
/// some GREE modules expose intermediate/out-of-order status snapshots while settling.
pub commands: Vec<DeviceCommand>,
/// Matching pre-command values for the same fields. A brief rollback to one of these
/// values is firmware settling, not necessarily a physical-remote takeover.
pub baselines: Vec<DeviceCommand>,
pub expires_at: Instant,
}