Hi All,
I could do with some help getting my Lifx bulb to work.
You can control using an HTTP API.
http://api.developer.lifx.com/docs/set-stateThis is my entry with my api key changed.
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.8-->
<command id="872" name="Lifx HTTP" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>Scrape.Put</cmdType>
<params>
<param>https://api.lifx.com/v1/lights/all/state</param>
<param>{"power": "on"}</param>
<param>xxxxxxxxxbd1fba4f168349edc221477e00153769c417xxxxxxxxxx</param>
<param />
<param>application/json</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</command>
I have double checked the key.
This is my error with key changed
11/10/2015 12:05:49 381 doCommand:Lifx HTTP
11/10/2015 12:05:49 381 action repeat set to: 1
11/10/2015 12:05:49 381 Action: Scrape.Put - https://api.lifx.com/v1/lights/all/state&&{"power": "on"}&&xxxxxxxxa4f168349edc221477e00153769c4178e79470fc6d4fa02b0cb&&&&application/json
11/10/2015 12:05:49 381 [action] Scrape.Put:https://api.lifx.com/v1/lights/all/state&&{"power": "on"}&&xxxxxxxa4f168349edc221477e00153769c4178e79470fc6d4fa02b0cb&&&&application/json
11/10/2015 12:05:49 390 Doing scrape put/post with headers:
Content-Type: application/json
11/10/2015 12:05:50 121 Action ERROR: Web exception: The remote server returned an error: (401) Unauthorized.
{"error":"Token required"}
Any assistance would be greatly appreciated.
Best wishes.
James.