Is this possible - if so what is the easiest way to set it up.

Hi all,
very new to all this and appreciate some help.

I have a VeraLite, energy monitor, 4x motion sensor and some light sensors and an in-wall light switch. I also have a CurrentCost energy monitor and usb serial cable.

I am planing on having the outdoor sensor near the front gate.
I am getting an electrician to install the in-wall light switch to the light switch that turns on the outside lights.

I am planing on the following;
when the light levels are XX (getting dark) and the motion detector gets triggered, then turn on the in-wall light switch that then turns on all the outside lights that are connected to it.
I then want the lights to go off after 5 minutes of inactivity by the motion detector.
and I also want the lights to go off regardless if it is no longer dark.

is this possible, and if so, what is the easiest and best way to do it.

Also, I want to be able to see my energy usage, I can see it on the VeraLite’s webpage, but not through VeraLite app that I use.
What is the best iPhone/iPad app to use.

Thanks very much

Your best bet for the logic is using PLEG. If you have a look in the PLEG part of the forum, there are quite a few examples of very similar situations and how to program it. First it looks daunting, but if you read a little it all becomes clearer.
Not sure which app to use for energy display, i use Homewave for my iphone and it is great. Just had a look, it looks as if Homewave can display energy usage

Thanks very much
I’ll check them both out.