Virtually turn off all relays that can be stopped

This commit is contained in:
2024-09-13 22:11:40 +02:00
parent 1d11c3a968
commit f0081eb4bf
2 changed files with 53 additions and 8 deletions

View File

@ -98,13 +98,13 @@ pub struct DeviceRelay {
/// Relay priority when selecting relays to turn on. 0 = lowest priority
pub priority: usize,
/// Estimated consumption of the electrical equipment triggered by the relay
consumption: usize,
pub consumption: usize,
/// Minimal time this relay shall be left on before it can be turned off (in seconds)
minimal_uptime: usize,
pub minimal_uptime: usize,
/// Minimal time this relay shall be left off before it can be turned on again (in seconds)
minimal_downtime: usize,
pub minimal_downtime: usize,
/// Optional minimal runtime requirements for this relay
daily_runtime: Option<DailyMinRuntime>,
pub daily_runtime: Option<DailyMinRuntime>,
/// Specify relay that must be turned on before this relay can be started
pub depends_on: Vec<DeviceRelayID>,
/// Specify relays that must be turned off before this relay can be started