Never mind...seems to work!


On Tue, Jan 28, 2014 at 4:23 PM, Craig Lindholm <344clinton@gmail.com> wrote:
So, to turn on/off a light in your kitchen, would you enter:????

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

and

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

????

Craig



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


On Sat, Jan 25, 2014 at 9:17 AM, Craig <archyii@gmail.com> 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:....


--
-Craig