3 Commits

Author SHA1 Message Date
ae5763f0d9 move all mqtt publishing functions to mqtt module 2026-05-10 19:51:42 +02:00
203d1c696c 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:51:40 +02:00
08e4f9a7e8 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:51:37 +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,