I checked in Chris’s change to Light_Item.

 

Also, I realized that I had configured my motion detectors to never send an off signal; thus, the room always thought there was an occupant and would turn on the light as soon as the restriction allowed it.

 

So, I don’t know if the patch or my configuration change made the difference, but it appears to be working properly at present.  I’ll know more tomorrow night.

 

Tim

 

From: Timothy Spaulding [mailto:spaulding@icanbrew.com]
Sent: Tuesday, September 28, 2010 1:16 PM
To: The main list for the MisterHouse home automation program
Subject: Re: [mh] Coding of Events Question

 

I guess I am still not saying it correctly.

 

I do not want the light on all the time when it is $Dark.  I only want the light to come on when I trip the motion detector during this time ($Dark).  However, right now, the light is coming on when $Dark is being set to 1 (which I think is being set when it is sunset_twilight).  Since this is a laundry room and the door remains closed, there is no motion in the room most of the time.  I do not want the light to come on as soon as the $Dark variable is set to 1, but only when there is motion and it has a value of 1.

 

In thinking about my environment more, I may have come up with an idea to chase that may solve it.

 

From: Chris Engel [mailto:chrisengel@gmail.com]
Sent: Tuesday, September 28, 2010 12:24 PM
To: The main list for the MisterHouse home automation program
Subject: Re: [mh] Coding of Events Question

 

 

On Tue, Sep 28, 2010 at 11:03 AM, Timothy Spaulding <spaulding@icanbrew.com> wrote:

I don’t know about turning off the light as I never wait that long for when the $Dark variable will be set to 0 by the code a t sunrise*.

 

What I was intending to say is that the light in the laundry room will come on as soon as the $Dark variable is set to 1 by it being sunset_twilight, even though there is no occupant (attached presence monitor) to the light item.

 

 


So you want the light to be on the entire time the $Dark variable is set regardless of motion/doors/ or presence ?  Not certain how to do that at the moment with the LOMP stuff may be just easier to write code to turn the light on/off without using LOMP.



--
   Chris