that would be awesome because i am having trouble using this api in ignition again. I can’t get this group of lights to turn off/on.
requests = client.put(url="http://myHueIp/api/{}/groups/1/action".format(userName),data={"on":false})
the data is in the the same format in the API debug tool message body.
This is the error i get, i have tried putting false in quotes so its a string , using a 0 instead of false etc. Nothing else works. the api debug tool only accepts the word false with no quotes. there has to be something simple i am missing here haha
I even tried defining false as a variable before as 0 and “false” both did nothing
com.inductiveautomation.ignition.common.script.JythonExecException
Traceback (most recent call last):
File "<function:runAction>", line 15, in runAction
NameError: global name 'false' is not defined
caused by org.python.core.PyException
Traceback (most recent call last):
File "<function:runAction>", line 15, in runAction
NameError: global name 'false' is not defined