dshj wrote:What would be cool there is to be able to rely on the ambient light sensor of the motion sensor for additional options. Living in the "Fog Belt" in San Francisco, there are days where we need the lights on sooner than the timed setting. We have the sensors all over the house, and being able to set lighting in each room based on the ambient light in that room would be great!
Oh well...
You should be able to do that to a degree already though. Using the above script, you can set different minimum light levels for each motion sensor, when the light in those respective rooms goes above that level, the sensor will send out a Group 2 OFF command to Indigo, indicating it's brighter than the set threshold. When light in that room goes below the minimum, the sensor will send Indigo a Group 2 ON command. You can use both those commands to set an Indigo variable for each room, that way you'll know if each room is above or below the minimum set on each sensor. I have this setup in my house and it works well. Now that I can set a different minimum for each room (using the code above), it'll be even more useful. It'd still be nice to query the motion sensor remotely for that information live though.