Hi, I’ve been hitting a brick wall for an hour with this.
I’ve created a logicblock where the positive result is to turn my LIFX light on. Using this page LIFX Developer Zone - Set State I can successfully control my light, however I don’t understand how to pass the right values into apilio.
I’m using Method PUT and URL https://api.lifx.com/v1/lights/label:Halo/state (my light is called Halo) as that’s what works for the “selector” string on the LIFX dev page. Not sure if it transfers to a URL though?
I’ve then got Parameters “power” “on” and “colour” “red” just to test. Do I need anything in the body?
I assume I need to use the Header for an authorization? What is the format? I’ve tried Key: Authorization Value: Bearer [token] but that gives me a 401 Error - Bad access token. I briefly managed to get a 207 Error - Multi-Status but can’t remember how. I’m using the token generated from cloud.lifx Personal Access Token. The LIFX Dev Zone - Authentication page has cURL, PHP and Python but I don’t know how apilio can use that code.
Am I missing something basic or is this not possible?