Skip to content

Instantly share code, notes, and snippets.

@samdup
Created January 20, 2016 00:00
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save samdup/6655c39640213c6a9d77 to your computer and use it in GitHub Desktop.
Save samdup/6655c39640213c6a9d77 to your computer and use it in GitHub Desktop.
LIFX_cycle_beta1
{
"eventName": "LIFX_cycle_beta1",
"url": "https://api.lifx.com/v1/lights/all/cycle",
"requestType": "POST",
"headers": {
"Authorization": "Bearer YOUR_LIFX_API_KEY",
"Content-Type": "application/json"
},
"json": {
"states": [
{
"{{parameter}}": "{{cycle1}}"
},
{
"{{parameter}}": "{{cycle2}}"
},
{
"{{parameter}}": "{{cycle3}}"
}
],
"defaults": {
"power": "on",
"duration": 0.2
}
},
"mydevices": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment