Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lights go off after set time
#1
I'm trying to get the triggers setup and I need some assistance...

I have setup my trigger as follows...
[Image: trigger.jpg]

I have setup my event as follows...
[Image: editevent.jpg]

Here is my action...
[Image: action.jpg]

I want the light to go off if it is switched on at the switch after 15 minutes.

1.am I correct so far?
2.what do I need to do next?
tia,
Ron
tia, Ron

My HT equipment I want to control by CQC (some day hopefully)
Yamaha CX-A5100, Dune HD pro 4k, Dune HD Pro 4k plus, ISY 994i, LG 86" 4k FP, and a projector in the future
Reply
#2
When I asked this question, I was told that you can't do that type of thing in a trigger/event combination.

Because of this, I opted to go another route. I have a scheduled job that runs every minute. The job has two parts. The first part checks the state of lighting in areas I want to track and increments a counter in a global variable. The second part goes through the globals and affects changes as appropriate for each of these lights. There are several nice parts to this, first, I can do special things like flash lights in certain areas like the attic where the person can't get to the switch in time. It also allows viewing of how long a light has been on.

Russ...

Here's a sample of how my attic lighting works:
Code:
LocalVars::SetVariable( LVar:InsteonAttic, $(Insteon.Attic))
LocalVars::SetVariable( LVar:VariableAttic, $(Variable Driver.LightAttic))

If System::Equals(%(LVar:InsteonAttic), True)
  LocalVars::Add(LVar:VariableAttic, 1)
  If System::GrThan(%(LVar:VariableAttic), 57)
    Devices::FieldWrite(Insteon.FastOff, Attic)
    If System::GrThanOrEq(%(LVar:VariableAttic), 60)
      LocalVars::SetVariable(LVar:VariableAttic, 0)
    Else
      System::WaitTimer(0, 1000)
      Devices::FieldWrite(Insteon.FastOn, Attic)
    End
  End
Else
  If System::GrThan(%(LVar:VariableAttic), 57)
    Devices::FieldWrite(Insteon.FastOn, Attic)
  End
  LocalVars::SetVariable(LVar:VariableAttic, 0)
End

Devices::FieldWrite( Variable Driver.LightAttic, %(LVar:VariableAttic))
Reply
#3
I think you might want to use the timers driver for this.

1.) Set your Triggered event to start a countdown timer at 15 minutes when the switch is turned on: Set the field to trigger the event on any value change. But keep you FldValueEquals in the triggered event setup. You don't need to check that twice. In the triggered event's actions set the timer to 15 minutes.

2.) Setup a second triggered event to trigger when the countdown timer reaches zero to turn off your light.
Wuench
My Home Theater/Automation Website

[THREAD=5957]BlueGlass CQC Config[/THREAD]
[THREAD=10624]Wuench's CQC Drivers[/THREAD]
Reply
#4
wuench Wrote:I think you might want to use the timers driver for this.

1.) Set your Triggered event to start a countdown timer at 15 minutes when the switch is turned on: Set the field to trigger the event on any value change. But keep you FldValueEquals in the triggered event setup. You don't need to check that twice. In the triggered event's actions set the timer to 15 minutes.

2.) Setup a second triggered event to trigger when the countdown timer reaches zero to turn off your light.

Could you give me a little more info on how you would do this? Am I doing it correctly so far (as posted in the pics above)?
tia,
Ron
tia, Ron

My HT equipment I want to control by CQC (some day hopefully)
Yamaha CX-A5100, Dune HD pro 4k, Dune HD Pro 4k plus, ISY 994i, LG 86" 4k FP, and a projector in the future
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Time to replace my mSata HDD. ellisr63 4 1,407 11-23-2018, 11:47 AM
Last Post: ellisr63
  No way to just pullin all lights from a driver for Room Configuration? Sendero 1 2,099 09-27-2015, 04:12 PM
Last Post: Dean Roddey
  Return time from UPB rtarver 9 2,563 08-01-2015, 08:34 AM
Last Post: Dean Roddey
  Daylight Savings Time Deane Johnson 9 3,231 03-08-2015, 12:28 PM
Last Post: Deane Johnson
  Flash house lights on alarm Trioxide 7 2,901 01-31-2013, 12:34 PM
Last Post: Trioxide
  Turning light off after certain time royalj7 8 2,229 11-04-2012, 02:35 PM
Last Post: royalj7
  Macro to run multiple lights off/on rtarver 5 2,206 09-30-2012, 08:26 PM
Last Post: anogee
  run time driver potts.mike 3 1,562 02-06-2011, 06:49 PM
Last Post: Dean Roddey
  Help - Trying to compare to Time fields sic0048 10 3,378 11-19-2010, 11:48 AM
Last Post: sic0048
  Formatting STDRtv time / date Sendero 2 1,712 01-27-2009, 12:56 AM
Last Post: Sendero

Forum Jump:


Users browsing this thread: 1 Guest(s)