Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Variable Times for Triggered Events
#1
I'm lost in time...

How can I set differing start and stop times for use with triggered events?

I have several rules tied to motion sensors and people counters that turn interior lights on and off during the day. Right now the events are triggered based on two triggers that both have to be true: sensors tripping AND a time that "IsInTimeRange" so the sensors don't trip the lights at night. The "IsInTimeRange" trigger is limited to hours and not minutes so I'd like a little more flexibility there to use minutes, but more importantly, I'd also like to have more ability to change the start and times via action commands when needed.

What I'd like to do is move the start and stop times into global or local start and stop variables (with appropriate IF statements) and put them in the triggered event action. I would then have the sensor as the only event trigger. I would also create separate actions to change the start and stop times by re-writing the variables. That way, while the event would trigger on each sensor violation, the lights would only go on and off during the revised time frames, and I could, for example, start or stop the automation later or earlier on a given day.

The best I have (conceptually) been able to come up with is to define start and stop fields in the Variables Driver, read them in as global or local variables in the triggered event action, and then have a way to write a HH:MM formatted daily time to these variable. I didn't get far on that since I was not sure what Variable Drivers data field to use (MEng.time?) and I couldn't figure out how to write a HH:MM daily start or stop time to the variable driver or to a global or local variable...

Is that the best way? Is this even possible?

Thanks!
Reply


Messages In This Thread
Variable Times for Triggered Events - by TurboSam - 11-08-2013, 04:01 PM
Variable Times for Triggered Events - by TurboSam - 11-08-2013, 04:53 PM
Variable Times for Triggered Events - by TurboSam - 11-09-2013, 04:52 PM
Variable Times for Triggered Events - by TurboSam - 11-10-2013, 10:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Status of Scheduled and Triggered Events gReatAutomation 4 1,801 04-21-2020, 12:58 PM
Last Post: gReatAutomation
  Timers or Waits in events? simplextech 18 6,958 01-08-2020, 02:01 PM
Last Post: Dean Roddey
  Scheduled Events & Variables gReatAutomation 2 1,548 06-20-2019, 01:31 PM
Last Post: gReatAutomation
  your sched/triggered/tasker/IFTTT events IVB 17 10,049 01-18-2018, 07:41 AM
Last Post: RichardU
  Smart Handling of ISY Motion events Sendero 10 6,482 10-05-2016, 09:43 PM
Last Post: Dean Roddey
  How to pass a variable into a field moniker EST 3 2,876 08-30-2016, 11:01 AM
Last Post: EST
  Best Way to Handle Wait Times within a Triggered Event kblagron 9 5,316 06-25-2016, 06:03 PM
Last Post: Dean Roddey
  Overlay in an Overlay triggered by Widget Deane Johnson 4 4,042 11-09-2014, 10:29 AM
Last Post: Deane Johnson
  EmailURLImg in Triggered Events TurboSam 6 3,959 11-23-2013, 01:50 PM
Last Post: Dean Roddey
  Include Variable in button text? rtarver 3 2,441 09-24-2012, 05:34 PM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)