Krunch1 Posted February 23, 2006 Share Posted February 23, 2006 I was wondering if anyone has programmed.....at 11:00pm turn off led's to Dimmers, switfches, 6button keypads. So i can sleep in the dark.Turn Led's back on after 7:00am.Let me know?ThanksAJR Link to comment Share on other sites More sharing options...
junebug Posted February 23, 2006 Share Posted February 23, 2006 Yes, the system can be programmed to do this. Link to comment Share on other sites More sharing options...
Samer Shami Posted February 24, 2006 Share Posted February 24, 2006 Was a simple "yes" or "no" all you were after Krunch? Link to comment Share on other sites More sharing options...
gmaniax Posted February 24, 2006 Share Posted February 24, 2006 SamerI'd like to know how you would script this... I could use this for my bedroom...those leds can be too bright at night :-)BTW the Linksys NSLU2 is working perfectly as a NAS with C4 ... if only I could only get the USB2 port to support NTFS along with the first port (which supports it with the newest firmware) , instead of just Linux partitionsthanksGM Link to comment Share on other sites More sharing options...
Samer Shami Posted February 24, 2006 Share Posted February 24, 2006 1) Create two scheduler events. Once called "LEDs off" at 11pm, the other called "LEDs on" at 7pm.2) In the variables agents, create a boolean variable called "are_LEDs_on"3) When the first scheduler event ("LEDs off") is triggered in programming, set the variable "are_LEDs_on" to false, and when the second scheduler event triggers set the "are_LEDs_on" variable to true.4) When the variable "are_LEDs_on" changes in programming, do two tests: one is if true, the other if false.5) When the variable is false, you want to turn every LED to the color black. With the 6-button keypad, you can set the off colour to black if you selected "managed" under system properties. If the 6-button keypad is unmanaged, then you will need to stipulate the colour like you do with the switches and dimmers.6) When the variable is true, do the reverse and set whatever colour you want.Let me know if this suffices. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.