Here's a few things that would have saved me a lot of time had I known them:
First, as was said earlier in this thread, RUN - don't walk, from the ERGY program/plug-in! It caused a lot of problems with my Vera and many hours of troubleshooting - and it never worked correctly anyway. Use the "Usage" tab under the "Energy" menu item to access Vera's internal energy monitoring. That's assuming, of course, that you've entered "energy used" in the "Settings" area of the devices you want to monitor.
Second, buy a cheap small USB memory stick (8 GB SanDisk Cruzer Fit for $8.00 on Amazon) and activate USB logging. Then, use http://[INSERT YOUR VERA IP HERE]/cgi-bin/cmh/log.sh?Device=LuaUPnP to view the command actions log as they happen. That's how I figured out the the ERGY plug-in was swamping my system with garbage calls.
Third: The device ID number is assigned by MiOS and is used in Luup programming. The AltID# is the same as the Node# and is used in the Z-wave network to identify the device. For example, one of my switches has a Device ID#49, but a Node# (altid) 28. When I program a Luup routine, I refer to the device ID#49. When MiOS sends commands to the device, it talks to it using its Node ID#28. That's important to know when viewing logs.
I'm going to disagree with many and say that programming scenes in UI5 is easier than using Richard's PLEG. Though I commend Richard for the job he's done (this community owes him a lot), PLEG is not very easy to figure out. But, with Rex's sample Luup codes, building UI5 scenes with conditional logic was easier for me. (YMMV). If you do use PLEG, be sure to load the Logic Core plug-in also. PLEG needs this to work.