Virtually turn off all relays that can be stopped
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user