Add SetBulbWakeTime client message
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
use chrono::{NaiveTime, Weekday};
|
||||
use lighter_lib::{BulbColor, BulbId, BulbMode};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
@ -23,8 +24,19 @@ pub enum ClientMessage {
|
||||
//SubscribeToInfo,
|
||||
//SubscribeToBulbs,
|
||||
GetBulbs,
|
||||
SetBulbColor { id: BulbId, color: BulbColor },
|
||||
SetBulbPower { id: BulbId, power: bool },
|
||||
SetBulbColor {
|
||||
id: BulbId,
|
||||
color: BulbColor,
|
||||
},
|
||||
SetBulbPower {
|
||||
id: BulbId,
|
||||
power: bool,
|
||||
},
|
||||
SetBulbWakeTime {
|
||||
id: BulbId,
|
||||
day: Weekday,
|
||||
time: NaiveTime,
|
||||
},
|
||||
}
|
||||
|
||||
/// A geometric description of rooms/groups of light bulbs
|
||||
|
||||
Reference in New Issue
Block a user