This will depend on which model of EnergyBar you have. The newest EB832 has the ability to monitor amps or watts used per outlet, so you can program the Apex to monitor if a device is consuming power over a period of time. The older EB8, EB6 and EB4 do not have this capability.
Here's an example if you have the EB832, and using a virtual output to act as the timer:
[ATO_Timer]
Set OFF
If Output ATO Watts > 10 Then ON
Defer 000:30 Then ON
Min Time 030:00 Then ON
Then add this line to your ATO output:
If Output ATO_Timer = ON Then OFF
And add this line to your EmailAlm program to send you a notification about the issue:
If Output ATO_Timer = ON Then ON
If you're not familiar with virtual outputs, see my tutorial here:
Part 5 of our Apex Programming Tutorials. This one is on Virtual Outputs.
www.reef2reef.com
And read my tutorial on Apex Power Monitoring for more details:
Part 4 of our series on programming your Neptune Apex: Power Monitoring
www.reef2reef.com