No triggers displayed, but everything appears to be working...

I’ve got an odd problem.

I have PLEG device “responsible” for managing presence related triggers/events in my house. As far as I can tell, all of the presence conditions are working as expected, but whenever I click the “Inputs” tab, I’m not getting anything showing under “Triggers” for the device, nor does “Report” appear to open the expected configuration window.

I’m also not seeing any error messages in the LuaUPnP.log file for the device whenever I click the Report button.

I’m using PLEG 2.5.

Refresh your browser!

Prior to posting I have:

1: refreshed my browser (w/CTRL)
2: cleared the cache
3: rebooted vera (and repeated 1 & 2)
4: connected remotely with a different computer and OS via cp.mios.com after having cleared the cache & refreshed.

Still same result…

Had some time to dig into this a little more & here’s what I found. Am using Safari on OSX Mtn Lion w/all current updates installed:

2013-03-31 18:16:02: plc_ListExistingTriggers error: TypeError: 'undefined' is not an object (evaluating 'nodeObj.length'){"stack":"get_node_obj@http://vera/cmh/js/common/cpanel_data.js?*1.5.622-1-07054035*:877\nplc_ListExistingTriggers@http://vera/port_3480/J_ProgramLogicC.js:435\nplc_DisplayTriggers@http://vera/port_3480/J_ProgramLogicC.js:421\nplc_TriggersDisplay@http://vera/port_3480/J_ProgramLogicC.js:403\nonclick@http://vera/cmh/:1\n[native code]","line":877,"sourceURL":"http://vera/cmh/js/common/cpanel_data.js?*1.5.622-1-07054035*"}

And the following error occurs when attempting to click the “Report” button:

2013-03-31 18:23:45: deviceButtonClicked ended with error (js_button clicked): TypeError: 'undefined' is not a function (evaluating 'undefined(188)')

I had updated w/the 2.6 patch prior to trying this again.

I will PM you a patch to try …
This looks like an assumption I made about plugins is not valid for one of your devices … not sure which.
I will fix … the test version I provide will have an annoying popup box … that is so I can figure out the exact cause … once I know what device type it is … After that I will give you a permanent fix.
[hr]
Not enough details for the report to figure out what is happening.
Please click the wrench for this device first … then go back and try a report … I am assuming 188 is a PL??? device ID …
What I think this is saying is that it can’t find my code.

Oops … I can add attachments to a PM.

Attached are two zip files. They contain the same patch …
However Patch2.zip will generate a Popup Alert box when it encounters the problem.
I would like you to run this and tell me what device type is having the problem.

Then you can run the Patch from Patch3.zip to eliminate the alert box.

[quote=“RichardTSchaefer, post:5, topic:174786”]I will PM you a patch to try …
This looks like an assumption I made about plugins is not valid for one of your devices … not sure which.
I will fix … the test version I provide will have an annoying popup box … that is so I can figure out the exact cause … once I know what device type it is … After that I will give you a permanent fix.
[hr]
Not enough details for the report to figure out what is happening.
Please click the wrench for this device first … then go back and try a report … I am assuming 188 is a PL??? device ID …
What I think this is saying is that it can’t find my code.[/quote]

Once I read your reply I realized what the problem is/was…

I’m working on an update to the Google Latitude plugin which caused me to change it’s base device urn from the standard Motion Sensor urn to urn:schemas-mark-watkins:device:GoogleLatitudeSensor:1 since updating the UI with the standard urn meant that all of my motion sensors started displaying the latitude data I’m working on.

And your JS alert() box confirmed that was the issue. It also gracefully skipped the devices (they’re not showing in the list of triggers for the PLEG device - ID: 188).