Created
December 25, 2017 00:42
-
-
Save spiiin/3b0ebc3a3ee798ef3723c24798fb0978 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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