Help backward direction Move Effect (JSON)

Hello all,

I’m trying to set the direction to BACKWARD in my LIFX strip’s json config file, anyone knows how to do it? Any help would be greatly appreciated

Here’s what I currently have:

{
“accessory”: “HTTP-SWITCH”,
“name”: “Rayon TV Move Switch”,
“switchType”: “stateful”,
“onUrl”: {
“url”: “https://api.lifx.com/v1/lights/id:XXXXX/effects/move”,
“method”: “POST”,
“strictSSL”: true,
“body”: “{"period": 50}”,
“headers”: {
“Authorization”: “Bearer XXXXXXXXX”,
“Content-Type”: “application/json”
}
},
“offUrl”: {
“url”: “https://api.lifx.com/v1/lights/id:XXXXX/effects/off”,
“method”: “POST”,
“strictSSL”: true,
“body”: “{"power_off": true}”,
“headers”: {
“Authorization”: “Bearer XXXXXXXXX”,
“Content-Type”: “application/json”
}
},
“statusUrl”: {
“url”: “https://api.lifx.com/v1/lights/id:XXXXX”,
“method”: “GET”,
“strictSSL”: true,
“headers”: {
“Authorization”: “Bearer XXXXXXXXX”
}
},
“statusPattern”: “"effect": "MOVE":”,
“debug”: true
}

Try this:

{
  "accessory": "HTTP-SWITCH",
  "name": "Rayon TV Move Switch",
  "switchType": "stateful",
  "onUrl": {
    "url": "https://api.lifx.com/v1/lights/id:XXXXX/effects/move",
    "method": "POST",
    "strictSSL": true,
    "body": "{\"period\": 50, \"power_on\": true, \"direction\": \"backward\"}",
    "headers": {
      "Authorization": "Bearer XXXXXXXXX",
      "Content-Type": "application/json"
    }
  },
  "offUrl": {
    "url": "https://api.lifx.com/v1/lights/id:XXXXX/effects/off",
    "method": "POST",
    "strictSSL": true,
    "body": "{\"power_off\": true}",
    "headers": {
      "Authorization": "Bearer XXXXXXXXX",
      "Content-Type": "application/json"
    }
  },
  "statusUrl": {
    "url": "https://api.lifx.com/v1/lights/id:XXXXX",
    "method": "GET",
    "strictSSL": true,
    "headers": {
      "Authorization": "Bearer XXXXXXXXX"
    }
  },
  "statusPattern": "\"effect\": \"MOVE\":",
  "debug": true
}
1 Like