Found something interesting - I stopped my device initialization code from doing much to see if that was causing an issue and noticed that the argument passed to my “startup” function was device ID 1 (rather than 5 in this case) and then a little later on in the log there’s a Duplicate check and a child node removal line (look from the bottom of this log text):
09 03/25/11 21:06:11.022 JobHandler_LuaUPnP::Run device 1 ZWave room 0 type urn:schemas-micasaverde-com:device:ZWaveNetwork:1 id parent 0 <0x400>
09 03/25/11 21:06:11.023 JobHandler_LuaUPnP::Run device 2 _Scene Controller room 0 type urn:schemas-micasaverde-com:device:SceneController:1 id 1 parent 1 <0x400>
09 03/25/11 21:06:11.024 JobHandler_LuaUPnP::Run device 3 Trane room 0 type urn:schemas-upnp-org:device:HVAC_ZoneThermostat:1 id 2 parent 1 <0x400>
09 03/25/11 21:06:11.024 JobHandler_LuaUPnP::Run device 4 2GIG room 0 type urn:schemas-upnp-org:device:HVAC_ZoneThermostat:1 id 3 parent 1 <0x400>
09 03/25/11 21:06:11.025 JobHandler_LuaUPnP::Run device 5 Is Occupied room 1 type urn:schemas-upnp-org:device:BinaryLight:1 id 99 parent 1 <0x400>
02 03/25/11 21:06:11.035 GetSunriseSunset error#1 sunrise: 1301032967/2011-03-24 23:02:47 sunset: 1301076558/2011-03-25 11:09:18 midnight: 1301036400/7619300 <0x400>
02 03/25/11 21:06:11.047 GetSunriseSunset error#1 sunrise: 1301119349/2011-03-25 23:02:29 sunset: 1301162940/2011-03-26 11:09:00 midnight: 1301122800/7524108 <0x400>
03 03/25/11 21:06:11.054 JobHandler_LuaUPnP::Run ready 5 devices installation 16797 missing version *1.1.992* pMem 0x82f000/8581120 diff: 1146880 <0x400>
02 03/25/11 21:06:11.283 ZWaveNode::UpdateCommandClasses node 1 empty -- -- <0xc04>
06 03/25/11 21:06:11.288 Device_Variable::m_szValue_set device: 3 service: urn:micasaverde-com:serviceId:HaDevice1 variable: Configured was: 1 now: 1 #hooks: 0 upnp: 0 v:0x792ed8/NONE duplicate:1 <0xc04>
06 03/25/11 21:06:11.289 Device_Variable::m_szValue_set device: 3 service: urn:micasaverde-com:serviceId:HaDevice1 variable: Configured was: 1 now: 1 #hooks: 0 upnp: 0 v:0x792ed8/NONE duplicate:1 <0xc04>
06 03/25/11 21:06:11.292 Device_Variable::m_szValue_set device: 4 service: urn:micasaverde-com:serviceId:HaDevice1 variable: Configured was: 1 now: 1 #hooks: 0 upnp: 0 v:0x792ed8/NONE duplicate:1 <0xc04>
06 03/25/11 21:06:11.293 Device_Variable::m_szValue_set device: 4 service: urn:micasaverde-com:serviceId:HaDevice1 variable: Configured was: 1 now: 1 #hooks: 0 upnp: 0 v:0x792ed8/NONE duplicate:1 <0xc04>
09 03/25/11 21:06:11.294 ZWaveJobHandler::UpdateNodes dongle is node 1 device 2 iExtraNodesForTest 0 <0xc04>
06 03/25/11 21:06:11.295 Device_Variable::m_szValue_set device: 2 service: urn:micasaverde-com:serviceId:SceneController1 variable: Scenes was: now: #hooks: 0 upnp: 0 v:0x792d48/NONE duplicate:1 <0xc04>
09 03/25/11 21:06:11.297 ZWaveJobHandler::UpdateNodes node 2 Device_NumTemplate D_HVAC_ZoneThermostat1.xml type ZWaveThermostat Device_Num 3 Room 0 auto-conf -1 cap 0xd2 sec 0x9c res 0x0 bas 0x4 gen 0x8 spe 0x6 config 1 secure 0 Trane classes 31,40,42,43,44,45,70,72,76,81,85,86, mfr: / mfr: 0x8b prodtype: 0x5452 prodid: 0x5431 <0xc04>
09 03/25/11 21:06:11.298 ZWaveJobHandler::UpdateNodes node 3 Device_NumTemplate D_HVAC_ZoneThermostat1.xml type ZWaveThermostat Device_Num 4 Room 0 auto-conf -1 cap 0x52 sec 0x5c res 0x0 bas 0x4 gen 0x8 spe 0x6 config 1 secure 0 2GIG classes 20,31,40,42,43,44,72,86,87, mfr: / mfr: 0x98 prodtype: 0x1 prodid: 0x1e <0xc04>
06 03/25/11 21:06:11.299 Device_Variable::m_szValue_set device: 1 service: urn:micasaverde-com:serviceId:ZWaveNetwork1 variable: NetStatusID was: 7 now: 5 #hooks: 0 upnp: 0 v:0x77b7e0/NONE duplicate:0 <0xc04>
06 03/25/11 21:06:11.300 UserData::m_luc_HAG_Variables_set variable: DataVersionStatus now: 112364021 subs: 0 <0xc04>
06 03/25/11 21:06:11.301 Device_Variable::m_szValue_set device: 1 service: urn:micasaverde-com:serviceId:ZWaveNetwork1 variable: NetStatusText was: Starting ZWave Network now: Configuring ZWave devices #hooks: 0 upnp: 0 v:0x77b508/NONE duplicate:0 <0xc04>
06 03/25/11 21:06:11.302 UserData::m_luc_HAG_Variables_set variable: DataVersionStatus now: 112364022 subs: 0 <0xc04>
06 03/25/11 21:06:11.303 UserData::m_luc_HAG_Variables_set variable: DataVersionStatus now: 112364023 subs: 0 <0xc04>
06 03/25/11 21:06:11.305 UserData::m_luc_HAG_Variables_set variable: DataVersionStatus now: 112364024 subs: 0 <0xc04>
04 03/25/11 21:06:11.307 <Job ID="1" Name="getnodes" Created="11-03-25 21:06:10" Started="11-03-25 21:06:10" Completed="11-03-25 21:06:11" Duration="0.735038000" Runtime="0.725435000" Status="Successful" LastNote=""/> <0xc04>
06 03/25/11 21:06:13.010 UserData::m_luc_HAG_Variables_set variable: DataVersionStatus now: 112364025 subs: 0 <0x402>
06 03/25/11 21:06:13.016 UserData::m_luc_HAG_Variables_set variable: DataVersionStatus now: 112364026 subs: 0 <0x402>
50 03/25/11 21:06:13.018 luup_log:1: Initializing MVRZ Device, ID=1 <0x402>
50 03/25/11 21:06:13.019 luup_log:1: ...skipping initialization <0x402>
06 03/25/11 21:06:14.015 UserData::m_luc_HAG_Variables_set variable: DataVersionStatus now: 112364027 subs: 0 <0x803>
06 03/25/11 21:06:14.016 UserData::m_luc_HAG_Variables_set variable: DataVersionUserData now: 112364002 subs: 0 <0x803>
06 03/25/11 21:06:14.017 UserData::m_luc_HAG_Variables_set variable: DataVersionStatus now: 112364028 subs: 0 <0x803>
06 03/25/11 21:06:14.018 UserData::m_luc_HAG_Variables_set variable: DataVersionUserData now: 112364003 subs: 0 <0x803>
06 03/25/11 21:06:14.018 Device_Variable::m_szValue_set device: 3 service: urn:micasaverde-com:serviceId:ZWaveDevice1 variable: ManufacturerInfo was: 139,21586,21553 now: 139,21586,21553 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x803>
06 03/25/11 21:06:14.019 Device_Variable::m_szValue_set device: 3 service: urn:micasaverde-com:serviceId:ZWaveDevice1 variable: Capabilities was: 210,156,0,4,8,6|49,64,66,67,68,69,112,114,118,129,133,134, now: 210,156,0,4,8,6|49,64,66,67,68,69,112,114,118,129,133,134, #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x803>
06 03/25/11 21:06:14.020 Device_Variable::m_szValue_set device: 3 service: urn:micasaverde-com:serviceId:ZWaveDevice1 variable: Neighbors was: 1, now: 1, #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x803>
06 03/25/11 21:06:14.022 UserData::m_luc_HAG_Variables_set variable: DataVersionStatus now: 112364029 subs: 0 <0x803>
06 03/25/11 21:06:14.022 UserData::m_luc_HAG_Variables_set variable: DataVersionUserData now: 112364004 subs: 0 <0x803>
06 03/25/11 21:06:14.023 Device_Variable::m_szValue_set device: 4 service: urn:micasaverde-com:serviceId:ZWaveDevice1 variable: ManufacturerInfo was: 152,1,30 now: 152,1,30 #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x803>
06 03/25/11 21:06:14.024 Device_Variable::m_szValue_set device: 4 service: urn:micasaverde-com:serviceId:ZWaveDevice1 variable: Capabilities was: 82,92,0,4,8,6|32,49,64,66,67,68,114,134,135, now: 82,92,0,4,8,6|32,49,64,66,67,68,114,134,135, #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x803>
06 03/25/11 21:06:14.025 Device_Variable::m_szValue_set device: 4 service: urn:micasaverde-com:serviceId:ZWaveDevice1 variable: Neighbors was: 1,2, now: 1,2, #hooks: 0 upnp: 0 v:(nil)/NONE duplicate:1 <0x803>
09 03/25/11 21:06:14.026 Child_Devices::Synchronize removing 5 from parent 1 <0x803>
… so this is where my manually added device is being removed.
If the system is meant to still pass in the device ID on my device to the function, then it thinks it set to 1, and therefore a duplicate device ID.
So, why does it think the device ID is now 1. At the top of the log file, you’ll see the enumeration of all 5 devices (my new one is #5), so it’s got the right ID early on.
Is there something I’m missing here - it’s beginning to look like a bug to me.
Thanks,
Neil