ImSammy

LIFX Scene Activate

Jul 9th, 2018
828
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. # Get API Key Here: https://cloud.lifx.com/settings
  2. # Get Scene UUID Here: https://api.developer.lifx.com/docs/activate-scene
  3. import pifx
  4.  
  5. p = pifx.PIFX(api_key='API KEY HERE')
  6.  
  7. p.activate_scene(scene_uuid='SCENE UUID HERE', duration=1.0)
Advertisement
Add Comment
Please, Sign In to add comment