Browse Source

SceneDimmer bug

feature-colorvalue2
Stian Fredrik Aune 3 years ago
parent
commit
2bb2154e5b
  1. 4
      app/services/handlerfactory/factory.go

4
app/services/handlerfactory/factory.go

@ -135,7 +135,7 @@ func sceneDimmer(
TargetKind: kind,
TargetValue: refValue,
Actions: models.EventAction{SetScene: &models.DeviceSceneAssignment{
SceneID: scenes[len(scenes)-1].ID,
SceneID: resolvedScenes[len(resolvedScenes)-1].ID,
Group: refValue,
DurationMS: 0,
}},
@ -154,7 +154,7 @@ func sceneDimmer(
TargetKind: kind,
TargetValue: refValue,
Actions: models.EventAction{SetScene: &models.DeviceSceneAssignment{
SceneID: scenes[0].ID,
SceneID: resolvedScenes[0].ID,
Group: refValue,
DurationMS: 0,
}},

Loading…
Cancel
Save