Start to build relay dialog
This commit is contained in:
@ -67,7 +67,7 @@ pub struct Device {
|
||||
/// time of a device
|
||||
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize)]
|
||||
pub struct DailyMinRuntime {
|
||||
/// Minimum time, in seconds, that this relay should run
|
||||
/// Minimum time, in seconds, that this relay should run each day
|
||||
pub min_runtime: usize,
|
||||
/// The seconds in the days (from 00:00) where the counter is reset
|
||||
pub reset_time: usize,
|
||||
@ -87,13 +87,13 @@ pub struct DeviceRelay {
|
||||
name: String,
|
||||
/// Whether this relay can be turned on or not
|
||||
enabled: bool,
|
||||
/// Relay priority when selecting relays to turn of / on. 0 = lowest priority
|
||||
/// Relay priority when selecting relays to turn on. 0 = lowest priority
|
||||
priority: usize,
|
||||
/// Estimated consumption of the electrical equipment triggered by the relay
|
||||
consumption: usize,
|
||||
/// Minimal time this relay shall be left on before it can be turned off
|
||||
/// Minimal time this relay shall be left on before it can be turned off (in seconds)
|
||||
minimal_uptime: usize,
|
||||
/// Minimal time this relay shall be left off before it can be turned on again
|
||||
/// Minimal time this relay shall be left off before it can be turned on again (in seconds)
|
||||
minimal_downtime: usize,
|
||||
/// Optional minimal runtime requirements for this relay
|
||||
daily_runtime: Option<DailyMinRuntime>,
|
||||
|
Reference in New Issue
Block a user