initializing child devices... Never completes...

Hi, I’m currently using a VeraPlus with UI7 (latest code) with plugin version .24 talking to a wink hub version 3.5.20-0-…

Despite the vera learning about many devices… The application never gets out of status “Initializing child devices…” and as such. I can’t turn off or on Lights on the wink or activate any other device controlled by the wink…

From the logs one line of particular interest is:
01 03/25/17 10:44:14.760 LuaInterface::CallFunction_Startup-1 device 487 function Wink_Connect_Startup failed [string “-- Wink_Connect 0.24…”]:9341: attempt to concatenate global ‘vID’ (a nil value) <0x76621520>

but I dont really understand what its trying to tell me… here is the context around this message. Let me know if I should provide more log information to help diagnose…

02 03/25/17 10:44:14.585 luup_log:487: (Wink_Connect::HUB_DEVICES::createVeraDeviceTable): Creating Vera device table. <0x76621520>
02 03/25/17 10:44:14.603 luup_log:487: (Wink_Connect::configureWinkDevices): Built Vera device list. <0x76621520>
06 03/25/17 10:44:14.661 Device_Variable::m_szValue_set device: 487 service: urn:micasaverde-com:serviceId:Wink_Hub1 variable: Hub_Status was: Configuring devices now: Configured… #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x76621520>
02 03/25/17 10:44:14.662 luup_log:487: (Wink_Connect::findChildDevices): Processing child devices. <0x76621520>
02 03/25/17 10:44:14.718 luup_log:487: (Wink_Connect::findChildDevices): Completed processing child devices. <0x76621520>
02 03/25/17 10:44:14.718 luup_log:487: (Wink_Connect::initializeChildDevices): Initializing child devices. <0x76621520>
06 03/25/17 10:44:14.719 Device_Variable::m_szValue_set device: 487 service: urn:micasaverde-com:serviceId:Wink_Hub1 variable: Hub_Status was: Configured… now: Initializing child devices… #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x76621520>
01 03/25/17 10:44:14.759 LuaInterface::CallFunction_Startup device 487 function Wink_Connect_Startup took 22 seconds <0x76621520>
01 03/25/17 10:44:14.760 LuaInterface::CallFunction_Startup-1 device 487 function Wink_Connect_Startup failed [string “-- Wink_Connect 0.24…”]:9341: attempt to concatenate global ‘vID’ (a nil value) <0x76621520>
01 03/25/17 10:44:14.760 LuImplementation::StartLua running startup code for 487 I_Wink_Hub1.xml failed <0x76621520>
01 03/25/17 10:44:25.487 luup_device_supports_service interface 0x15e6310 args 2 <0x73863520>
01 03/25/17 10:44:25.487 GetLuaInterface can’t find device type: 3/0x1707580 str: 8 <0x73863520>
01 03/25/17 10:44:25.487 luup_device_supports_service interface 0x15e6310 args 2 <0x73863520>
01 03/25/17 10:44:25.487 GetLuaInterface can’t find device type: 3/0x1707580 str: 8 <0x73863520>
06 03/25/17 10:44:25.873 Device_Variable::m_szValue_set device: 477 service: urn:micasaverde-com:serviceId:EEM-Plugin1 variable: TSDeviceList was: 406;429;487;438 now: 406;429;487;438 #hooks: 0 upnp: 0 skip: 0 v:0x1232bc0/NONE duplicate:1 <0x73863520>

Any help you can provide to help understand where things are going wrong would help. Let me know if you need more info.

attaching logs with debug, grepping only for the device number 487.

Looking through the LOG, would I be correct in assuming that error is the result of the Pico remote being used to control the Ludtron shades. Of which the plugin does not support, so it did not add the WinkID into it`s data tables. So that when it tries to look up Wink ID 9345 which is the shades it gets back vID of NIL and thus dies

Of course, I am just guessing based on what I see in the logs, have to look to the experts on this.

OK, fixed it, however rightly or wrongly, by modifying the following lines in L_Wink_Hub1.lua:

9341c9341,9348
< dev_desc = dev_desc…“device_”…oID…“,”…oType…“,”…oState…“,”…oID,vID…“;”

                  if ( vID == nil ) then

– We didn’t find the device.
debug(“(Wink_Connect::buildPicoMemberTable): vID == nil device [”…print_r(vDEV)…“].”)

                           dev_desc = dev_desc.."device_"..oID..","..oType..","..oState..","..oID..",0;"
                  else
                          dev_desc = dev_desc.."device_"..oID..","..oType..","..oState..","..oID,vID..";"
                  end

So here is the question out of all of this… What would it take to add the Serena Shades to Vera. Right now I’m using the Wink to control them, but can’t integrate it into any of my vera stuff because the Vera doesn’t appear to recognize them. Though I’ve not tried pairing them directly using zwave. Someone must have experience with this…

Same problem, i have Serena Shade and Pico and keep saying : initializing child devices…

What can i do to fix this because cannot control anymore my light in WinkHub from Vera?

So, I upgraded to version .50, and although I see much work has been done in this area… I’m now getting the following in the logs. And it’s stalled at initializing child devices.
01 11/01/17 23:36:37.174 LuaInterface::CallFunction_Startup-1 device 501 function Wink_Connect_Startup failed [string “-- Wink_Connect 0.50…”]:9686: attempt to index field ‘child_device_definition’ (a nil value) <0x7660a520>

I’m hoping cybermage can help…
-C

50 11/01/17 23:36:37.172 luup_log:501: (Wink_Connect::initializeChildDevices): Initializing vera pico device. <0x7660a520>
50 11/01/17 23:36:37.172 luup_log:501: (Wink_Connect::setChildVariable) Device [505] SID [urn:winkapp-com:serviceId:PicoRemote1] variable [Member_Count] current [3] new [3]. <0x7660a520>
50 11/01/17 23:36:37.173 luup_log:501: (Wink_Connect::HUB_DEVICES::findVeraDeviceByWinkId): Searching for device with Wink ID [9345]. <0x7660a520>
50 11/01/17 23:36:37.173 luup_log:501: (Wink_Connect::HUB_DEVICES::findVeraDeviceByWinkId): found device [3]. <0x7660a520>
01 11/01/17 23:36:37.173 ^[[31;1mluup_log:501: (Wink_Connect::buildPicoMemberTable): rDevice found [3]!^[[0m <0x7660a520>
01 11/01/17 23:36:37.174 ^[[31;1mLuaInterface::CallFunction_Startup device 501 function Wink_Connect_Startup took 24 seconds^[[0m <0x7660a520>
01 11/01/17 23:36:37.174 ^[[31;1mLuaInterface::CallFunction_Startup-1 device 501 function Wink_Connect_Startup failed [string “-- Wink_Connect 0.50…”]:9686: attempt to index field ‘child_device_definition’ (a nil value)^[[0m <0x7660a520>
01 11/01/17 23:36:37.174 ^[[31;1mLuImplementation::StartLua running startup code for 501 I_Wink_Hub1.xml failed^[[0m <0x7660a520>