Hey. I recently Jailbroke my old iPhone so I could use the assistant+ and activate command apps to allow Siri to control my lights with voice commands.
I should state that I am not a programmer and have no coding experience, so please treat me like a complete newbie when explaining things because I have no idea what I’m doing here . I’m trying to turn the lights on with the following curl command:
curl -H “Authorization: Bearer [MY TOKEN]” -X PUT -d “state=on” “https://api.lifx.com/v1/lights/all/state”
The activate command app then returns the following error: curl: (60) SSL certificate problem: unable to get local issuer certificate.
It then suggests I run the command in insecure mode with the -k argument, so I add that into the curl command as follows:
curl -k -H “Authorization: Bearer [MY TOKEN]” -X PUT -d “state=on” “https://api.lifx.com/v1/lights/all/state”
Then it returns:
“id”: “[MY TOKEN]”,
And does nothing. I get the exact same message when I’m testing from the set state test page here: http://api.developer.lifx.com/docs/set-state but the difference is that it works when issuing commands from that page.
So I’m completely stumped. Can anyone help? Cause I have no clue what it isn’t working and no chance of figuring it out on my own.
Ideally, I’m hoping for someone who has the same setup (iPhone, Assistant+, Activate Command) and can give me the exact commands to use to switch all lights on and off. I know it’s been done because plenty of people have posted about doing it around the Internet, but none of them have compiled a guide or list of commands to use.
Thanks a bunch in advance for any help!