document Light State enum

This commit is contained in:
ju6ge 2025-02-27 21:34:47 +01:00
parent 08ad2f504d
commit 9d0eea23e1
Signed by: judge
GPG Key ID: 6512C30DD8E017B5

View File

@ -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,
}