So, to turn on/off a light in your kitchen, would you enter:????

if( (state_now $presence_kitchen) eq 'occupied')
    set $Kitchen_Lights ON;


if( (state_now $presence_kitchen) eq 'vacant')
    set $Kitchen_Lights OFF;



On Mon, Jan 27, 2014 at 4:38 PM, Craig Lindholm <> wrote:
Wow! Thanks Craig. It will take me a while to process this!

On Sat, Jan 25, 2014 at 9:17 AM, Craig <> wrote:
I use one $om for everything. I struggled with this in the beginning. It can be very complex and I spend hours viewing and debugging the code. I never felt that I fully grasped it all. However, it now works pretty well.

This is what I have in my .mht file:....