Hopefully someone can help me with this. I have created a plugin that communicates with an Autelis pool control device. However, I am having some issue with job declarations and their return values. It all works but I end up with an error in the log as below.
In my I_ device file I have the following code.
urn:rstrouse-com:serviceId:PentairIntellibrite1
SetColorMode
luup.log("Setting Color Mode for: " … luup.devices[lul_device].id … " to " … lul_settings.newColorMode)
atp_plugin.jobSetColorMode(lul_device, lul_settings)
return 5, nil
Which calls the function jobSetColorMode in my .lua file. Everything works famously. The function is called and the function sends out the proper commands. Yet I still end up with the error in the logs. I have tried to return false, true, 0, 1 and any other iteration I could think of. This function sends a command to the Autelis device using wget then moves on.
Frankly, I am at a loss. I know that I somehow need to tell the job queue that I am finished but I don’t know how to go about it. Even though I have searched and searched the forums as well as the quote unquote online docs. Is there some sort of event model related to the incoming tags. I am not using serial communication, I am assembling the command structure for the Autelis device then calling wget.
Thanks in advance, any help would be appreciated.