bog Posted April 30, 2009 Share Posted April 30, 2009 I am testing a script that will send an email notification if a light is turned on or off when the variable AWAY=TRUE. for some reason I'm getting 3 email notifications each time I turn a light on or off. Do I monitor for a change in light state or light level?1. What is the difference between LIGHT_STATE and LIGHT_LEVEL when used as an event?2. What is the difference between LIGHT_STATE and LIGHT_LEVEL when used as an action? Link to comment Share on other sites More sharing options...
ILoveC4 Posted April 30, 2009 Share Posted April 30, 2009 I would say light state. Light level will change as it ramps up and that may be why you're getting three emails. Link to comment Share on other sites More sharing options...
bog Posted April 30, 2009 Author Share Posted April 30, 2009 When the variable LIGHT_LEVEL changed for a dimmer I incremented a counter. When the counter changed I triggered my script. I tested now using LIGHT_STATE and it seems to be only incrementing my counter once.I'll post the script if I need more help.Is there a C4 programming guide for Composer HE? Link to comment Share on other sites More sharing options...
dinosaur Posted May 1, 2009 Share Posted May 1, 2009 Light state is On/Off. Light level is 0 - 100 as in how much the light is dimmed. Link to comment Share on other sites More sharing options...
bog Posted May 1, 2009 Author Share Posted May 1, 2009 Yeah, I kinda figured that out. The ComposerHE documentation is pretty slim on advice on when to use one vs. the other. Is there a PDF I can print out for easier reference? Link to comment Share on other sites More sharing options...
alhouko Posted June 6, 2009 Share Posted June 6, 2009 I have an event sending me an email everyday if the lights are on at 11:30am just in case the wife left them on when she leaves the house. Is there any way you can post a screen shot of your programming that we may be able to help you with your logic? Link to comment Share on other sites More sharing options...
capww8 Posted September 1, 2009 Share Posted September 1, 2009 just out of curiosity, why are you requesting a notification rather than simply turning the lights off? for example - if at 11:30 am lights are on and security system is armed to away, turn lights off... Link to comment Share on other sites More sharing options...
henniae Posted September 1, 2009 Share Posted September 1, 2009 just out of curiosity, why are you requesting a notification rather than simply turning the lights off? for example - if at 11:30 am lights are on and security system is armed to away, turn lights off...That works if you have a security system. Perhaps this poster does not have a security system. Link to comment Share on other sites More sharing options...
nvgvup Posted September 1, 2009 Share Posted September 1, 2009 just out of curiosity' date=' why are you requesting a notification rather than simply turning the lights off? for example - if at 11:30 am lights are on and security system is armed to away, turn lights off...[/quote']That works if you have a security system. Perhaps this poster does not have a security system.you could just turn the lights off at 1130 every day regaurdless.. anyone who's there would be reminded that energy conservation is important Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.