The “Test Luup code (Lua)” under develop Apps no longer has the option to set the device context. How are we supposed to test code in context of a device (like calling or replacing device functions)?
This feature seems to have been removed due to a bug report:
http://bugs.micasaverde.com/view.php?id=1187
The following Wiki explains one reason to use device context
http://wiki.micasaverde.com/index.php/Luup_Debugging
In Vera’s web ui choose Devices, Luup plugins and click ‘Test Lua UPnP code’. For the device number put in the number of the device you are debugging, which is shown when you click the + button next to the device. Or, if your Lua code isn’t going to be calling any of the functions and variables you created in that device, you can just put in a device number of 0, which means this snippet of code runs by itself. If you put in a valid device number for a Luup plugin, it runs in the context of that device meaning it can call the other functions and variables in the plugin.
Device context is also is also used in the Luup Somfy Walkthrough. Now this great tutorial is not working.
Tested on firmware 1.5.408