document Light State enum
This commit is contained in:
parent
08ad2f504d
commit
9d0eea23e1
@ -63,10 +63,15 @@ enum WaitType {
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, PartialEq, Default)]
|
||||
/// Light State tracking data for mqtt
|
||||
struct LightState {
|
||||
/// led is on
|
||||
active: bool,
|
||||
/// led should not be on at this time of day
|
||||
out_of_work_hour: bool,
|
||||
/// battery is low so do not use led
|
||||
battery_low: bool,
|
||||
/// the sun is up
|
||||
is_day: bool,
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user