Quick Programming Tutorial for the Vera Newbie

I’m a programmer by trade. I bought a VeraLite controller and was faced with the task of doing custom programming for my new controller. It used a new language to me LUA and I was unfamiliar with how to get everything to work. There are a lot of great tips on this site, but what I found was missing was something to show me how to go from A to B → how to write a code library and then actually use it in scenes. I mainly wanted something to automate my lights while I was away on vacation. To me that meant random timing and lighting sequences. I spent a great amount of time and research just to get all the info I needed to do this type of thing … even though it is quite simple. I decided to write a tutorial with working code for the next guy like me that comes along. Hope it helps someone. I’ve attached a PDF with the tutorial I wrote and a tutorial code module.

Thank you so much for posting this! I’m a hobby programmer (Java, Perl, etc) so I know the basics but this will get me where I need to be.

Thank you!

Will start reading.

Many thanks for producing.

Hi Redhooker,

tail -f /tmp/log/cmh/LuaUPnP.log This will monitor the log and update the SSH screen periodically ... not instant so you need to be patient. There can be a minute or more between updates.

Before running the tail command, you can run “VerboseLogging.sh enable” command. The logs will be displayed in real time.

All the Best,

  • Andrei -