I try to find an solution for this:
If ('Alarm\ALARM.Status' is Equal 'Armed') Then
Change 'SendSMS.Text' to 'System is Armed'
Change 'SendSMS.Send' to '1'
How can I easy arrange that this task will run once?
Jacco
Task "One Shot"
-
- Senior Member
- Posts: 136
- Joined: Tue Oct 21, 2003 4:16 pm
- Location: The Netherlands
Re: Task "One Shot"
I'm not quite sure what you mean- it should only run when ALARM.Status changes, right?
I have a timer on my basement lights that works off a motion detector... I use a flag variable to mask out all the re-triggers. You could use something like that, an extra variable to block the task from triggering again.
I have a timer on my basement lights that works off a motion detector... I use a flag variable to mask out all the re-triggers. You could use something like that, an extra variable to block the task from triggering again.
-
- Senior Member
- Posts: 136
- Joined: Tue Oct 21, 2003 4:16 pm
- Location: The Netherlands
Re: Task "One Shot"
Yes that is what I mean! I was using the same way you did, I was wondering there was a better way, without an extra property
-
- HouseBot Guru Extraordinaire
- Posts: 1121
- Joined: Tue Sep 28, 2004 7:49 am
- Location: The Netherlands
Re: Task "One Shot"
If the property gets multiple of the same STATUS inputs than simply uncheck the "Allow Same Value". This way the Task only fires when the property goes from DISARMED to ARMED and doesn't fire again if for whatever reason ARMED is updated
-
- Senior Member
- Posts: 136
- Joined: Tue Oct 21, 2003 4:16 pm
- Location: The Netherlands
Re: Task "One Shot"
That sounds simple, I will try it.
Thanks
Thanks