Add wake schedule to BulbMode/BulbState server msg

This commit is contained in:
2022-10-11 22:58:16 +02:00
parent 1f05c6dc3d
commit 85b449dcdc
2 changed files with 17 additions and 6 deletions

View File

@ -1,3 +1,5 @@
use std::collections::HashMap;
use chrono::{NaiveTime, Weekday};
use lighter_lib::{BulbColor, BulbId, BulbMode};
use serde::{Deserialize, Serialize};
@ -10,9 +12,10 @@ pub enum ServerMessage {
},
/// Update the state of a bulb
BulbMode {
BulbState {
id: BulbId,
mode: BulbMode,
wake_schedule: HashMap<Weekday, NaiveTime>,
},
BulbMap(BulbMap),