Skip to content

Instantly share code, notes, and snippets.

@spiiin
Created December 25, 2017 00:42
Show Gist options
  • Save spiiin/3b0ebc3a3ee798ef3723c24798fb0978 to your computer and use it in GitHub Desktop.
Save spiiin/3b0ebc3a3ee798ef3723c24798fb0978 to your computer and use it in GitHub Desktop.
import milight
controller = milight.MiLight({'host': MILIGHT_ROUTER_ADDRESS, 'port': 8899}, wait_duration=0)
light = milight.LightBulb(['rgbw']) #Lamp type
controller.send(light.all_on()) #Turn on all lights
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment