Posts: 5,216
Threads: 269
Joined: Jan 2006
I'm trying to get the triggers setup and I need some assistance...
I have setup my trigger as follows...
I have setup my event as follows...
Here is my action...
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
Posts: 2,514
Threads: 87
Joined: Sep 2006
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))
Posts: 3,415
Threads: 158
Joined: Jan 2006
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.
Posts: 5,216
Threads: 269
Joined: Jan 2006
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