very early frontend wip + small fixes.

This commit is contained in:
2023-01-13 17:24:13 +01:00
parent 842f96d8e3
commit e831c0f342
20 changed files with 5132 additions and 7 deletions
+4 -1
View File
@@ -445,7 +445,10 @@ func (b *Bridge) makeCongruentLoop(ctx context.Context) {
// Handle power first
if desired.Power != nil && active.Power != nil && *desired.Power != *active.Power {
updates["light/"+*lightID] = ResourceUpdate{Power: gentools.Ptr(*desired.Power)}
updates["light/"+*lightID] = ResourceUpdate{
Power: gentools.Ptr(*desired.Power),
TransitionDuration: gentools.Ptr(time.Millisecond * 101),
}
newActiveState := activeStates[id]
newActiveState.Power = gentools.Ptr(*desired.Power)