3 Commits

Author SHA1 Message Date
921171cb5a move all mqtt publishing functions to mqtt module 2026-05-10 19:49:38 +02:00
54a2f2d9e5 refctor: TankInfo structure (consistent layout)
- fix: use tagged enum serialization for TankError
- fix: rename TankInfo fields for consistent naming (volume_ml, pct, water_temp_c)
- renamed some fields for better clarity on contained value
2026-05-10 19:48:02 +02:00
ba5159708f refactor: PlantInfo structure (consistent layout)
- fix: use tagged enum serialization for MoistureSensorError and PumpError
- fix: flatten PlantInfo sensors to SensorTelemetry with top-level moisture_pct
2026-05-10 19:48:00 +02:00

View File

@@ -300,7 +300,7 @@ impl PlantState {
false
},
cooldown: self.pump_in_timeout(plant_conf, current_time),
out_of_work_hour: !in_time_range(
out_of_work_hour: in_time_range(
current_time,
plant_conf.pump_hour_start,
plant_conf.pump_hour_end,