Hello Robert,
Greatly appreciative of all your efforts and fantastic documentation on github for this project. Have been able to cobble it all together so far - nodejs on pi, poolController, poolController-dashPanel. All good.
Last part integrating with Vera is proving to be a challenge.
I have the same problem as the github issue reported previously. Uploaded files to Vera, created device, but no luck getting the services to connect. The following is in the Vera Plus LuaUPnP.log
01 04/04/21 11:21:58.015 LuaInterface::CallFunction_Startup-1 device 118 function pcpInitialize failed [string āāā¦ā]:184: attempt to index global āselfā (a nil value) <0x76cda520>
01 04/04/21 11:21:58.016 LuImplementation::StartLua running startup code for 118 I_PoolController.xml failed <0x76cda520>
I verified all the files are on Vera ok, not corrupted. Device creation succeeds ok, and when hitting āConfigureā in the created device, I select āKeep Equipment Togetherā and enter the correct IP. I have tried both the server IP and server ip:4200. Of note, each time I enter āConfigureā it is a blank screen, does not appear to store the prior entries.
Logs have the following repeating as well for the calls to Vera
10 04/04/21 11:23:40.803 mg_callback from IP:192.168.50.143:59562 /data_request id=action&DeviceNum=118&serviceId=urn:rstrouse-com:serviceId:PoolController1&action=SetEventData&targetData=lightGroup start id: 37 <0x73266520>
12 04/04/21 11:23:40.804 luvd_get_info_data_request starting /data_request?id=action&DeviceNum=118&serviceId=urn:rstrouse-com:serviceId:PoolController1&action=SetEventData&targetData=lightGroup pMem 0x1485000/21516288 diff: 11161600 <0x73266520>
08 04/04/21 11:23:40.805 JobHandler_LuaUPnP::HandleActionRequest device: 118 service: urn:rstrouse-com:serviceId:PoolController1 action: SetEventData <0x73266520>
08 04/04/21 11:23:40.806 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=118 <0x73266520>
02 04/04/21 11:23:40.807 Device_LuaUPnP::HandleActionRequest 118 not ready 0xb5eb98 <0x73266520>
02 04/04/21 11:23:40.808 JobHandler_LuaUPnP::RunAction device 118 action urn:rstrouse-com:serviceId:PoolController1/SetEventData failed with -911/Device not ready <0x73266520>
10 04/04/21 11:23:40.808 luvd_get_info_data_request creating file buffer /data_request?id=action&DeviceNum=118&serviceId=urn:rstrouse-com:serviceId:PoolController1&action=SetEventData&targetData=lightGroup pMem 0x1485000/21516288 diff: 11161600 <0x73266520>
10 04/04/21 11:23:40.809 luvd_get_info_data_request done /data_request?id=action&DeviceNum=118&serviceId=urn:rstrouse-com:serviceId:PoolController1&action=SetEventData&targetData=lightGroup ret 0 size 23 pMem 0x1485000/21516288 diff: 11161600 took 0 info (nil) <0x73266520>
10 04/04/21 11:23:42.911 mg_callback from IP:192.168.50.143:59564 /data_request id=action&DeviceNum=118&serviceId=urn:rstrouse-com:serviceId:PoolController1&action=SetEventData&targetData=controller start id: 39 <0x734da520>
12 04/04/21 11:23:42.911 luvd_get_info_data_request starting /data_request?id=action&DeviceNum=118&serviceId=urn:rstrouse-com:serviceId:PoolController1&action=SetEventData&targetData=controller pMem 0x1485000/21516288 diff: 11161600 <0x734da520>
08 04/04/21 11:23:42.913 JobHandler_LuaUPnP::HandleActionRequest device: 118 service: urn:rstrouse-com:serviceId:PoolController1 action: SetEventData <0x734da520>
08 04/04/21 11:23:42.914 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=118 <0x734da520>
02 04/04/21 11:23:42.915 Device_LuaUPnP::HandleActionRequest 118 not ready 0xb5eb98 <0x734da520>
02 04/04/21 11:23:42.916 JobHandler_LuaUPnP::RunAction device 118 action urn:rstrouse-com:serviceId:PoolController1/SetEventData failed with -911/Device not ready <0x734da520>
10 04/04/21 11:23:42.916 luvd_get_info_data_request creating file buffer /data_request?id=action&DeviceNum=118&serviceId=urn:rstrouse-com:serviceId:PoolController1&action=SetEventData&targetData=controller pMem 0x1485000/21516288 diff: 11161600 <0x734da520>
10 04/04/21 11:23:42.917 luvd_get_info_data_request done /data_request?id=action&DeviceNum=118&serviceId=urn:rstrouse-com:serviceId:PoolController1&action=SetEventData&targetData=controller ret 0 size 23 pMem 0x1485000/21516288 diff: 11161600 took 0 info (nil) <0x734da520>
It would appear there is a problem in I_PoolController.xml. Any suggestions?
Thanks
Matt
I_PoolController.xml.pdf (47.4 KB)