Skip to content

Instantly share code, notes, and snippets.

@vikingosegundo
Last active November 24, 2021 20:23
Show Gist options
  • Save vikingosegundo/aa80e691d4c63b9a8b33e8f75a0829e8 to your computer and use it in GitHub Desktop.
Save vikingosegundo/aa80e691d4c63b9a8b33e8f75a0829e8 to your computer and use it in GitHub Desktop.
// Requests
.lighting(.load (.lights), )
.lighting(.turn (light,.on ), )
.lighting(.turn (light,.off ), )
.lighting(.apply(.values(.ct ( 200, 0.5)),on:light))
.lighting(.apply(.values(.hsb(0.5,0.5,0.5)),on:light))
.lighting(.apply(.values(.bri( 0.5)),on:light))
.lighting(.increase(.brightness,by:10.pt, on:light))
.lighting(.change(.name("1a"), on:light))
.lighting(.change(.display(.scrubbing), on:light))
// Responses
.lighting(.loading (.lights([light]), .succeeded))
.lighting(.turning (light,.on, .succeeded))
.lighting(.turning (light,.off, .failed ))
.lighting(.applying(.values(.ct ( 200, 0.5)),on:light,.succeeded))
.lighting(.applying(.values(.hsb(0.5,0.5,0.5)),on:light,.succeeded))
.lighting(.applying(.values(.bri( 0.5)),on:light,.failed ))
.lighting(.increasing(.brightness,by:10.pt, on:light,.failed ))
.lighting(.changing(.name("1a"), on:light,.succeeded))
.lighting(.changing(.display(.scrubbing), on:light,.succeeded))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment