Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Triggered Event on "last light is off"
#14
IVB Wrote:do you mean a command to "turn all lights off", or the question of "are all lights off?"

I was referring to the "are all lights off". In the Polling section of the driver, a method would run that would check the status of all light fields and do an AND. Psuedo code:

Code:
AllOff := True;
While ((Index <= LastLight) && (AllOff)) Do
   AllOff := AllOff AND LightState(Index);
   Index := Index + 1;
EndWhile;
AllOffField := AllOff;

You could probably write your own in a CML Macro and call it periodically, writing the result into a Variable Driver field.
Reply


Messages In This Thread
Triggered Event on "last light is off" - by IVB - 11-29-2006, 10:26 PM
Triggered Event on "last light is off" - by IVB - 11-30-2006, 10:50 AM
Triggered Event on "last light is off" - by IVB - 11-30-2006, 11:15 AM
Triggered Event on "last light is off" - by IVB - 11-30-2006, 02:29 PM
Triggered Event on "last light is off" - by robertmee - 12-01-2006, 10:50 AM
Triggered Event on "last light is off" - by IVB - 12-01-2006, 11:20 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Timbertech RGBW post cap light retrofit and CQC kfly 4 915 07-24-2021, 04:41 AM
Last Post: kfly
  Status of Scheduled and Triggered Events gReatAutomation 4 1,454 04-21-2020, 12:58 PM
Last Post: gReatAutomation
  event and subsequent countdown timer question dogman 9 4,995 05-03-2018, 06:36 PM
Last Post: dogman
  your sched/triggered/tasker/IFTTT events IVB 17 9,186 01-18-2018, 07:41 AM
Last Post: RichardU
  Idea for a different kind of event processing mechanism Dean Roddey 0 1,570 03-20-2017, 09:29 AM
Last Post: Dean Roddey
  Best Way to Handle Wait Times within a Triggered Event kblagron 9 4,834 06-25-2016, 06:03 PM
Last Post: Dean Roddey
  Adding Christmas Light control to CQC with Lutron HW8 avtexan 10 6,686 11-18-2015, 12:35 PM
Last Post: avtexan
  Thingspeak event monitor potts.mike 5 3,511 05-09-2015, 06:11 PM
Last Post: wuench
  Overlay in an Overlay triggered by Widget Deane Johnson 4 3,729 11-09-2014, 10:29 AM
Last Post: Deane Johnson
  event scheduler ellisr63 8 4,074 04-11-2014, 02:43 PM
Last Post: ellisr63

Forum Jump:


Users browsing this thread: 1 Guest(s)