Skip to content

Instantly share code, notes, and snippets.

@vikingosegundo
Last active December 7, 2021 02:15
Show Gist options
  • Save vikingosegundo/96d2060087329bc52b1ad911f731ccf6 to your computer and use it in GitHub Desktop.
Save vikingosegundo/96d2060087329bc52b1ad911f731ccf6 to your computer and use it in GitHub Desktop.
func newLight() -> Light {
Light(id:"01", name:"01").alter(
by:
.setting(.brightness (to:0.5 )),
.setting(.hue (to:0.5 )),
.setting(.saturation (to:0.5 )),
.setting(.temperature(to:200.mk)),
.turning(.it(.on))
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment