Task "One Shot"

General HouseBot discussion. Any issues that don't fit into any of the other topics belong here.
Post Reply
jacco van der Ven
Senior Member
Posts: 136
Joined: Tue Oct 21, 2003 4:16 pm
Location: The Netherlands

Task "One Shot"

Post by jacco van der Ven »

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
markd
Advanced Member
Posts: 234
Joined: Fri Jul 21, 2006 4:32 pm

Re: Task "One Shot"

Post by markd »

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.
jacco van der Ven
Senior Member
Posts: 136
Joined: Tue Oct 21, 2003 4:16 pm
Location: The Netherlands

Re: Task "One Shot"

Post by jacco van der Ven »

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
Richard Naninck
HouseBot Guru Extraordinaire
Posts: 1121
Joined: Tue Sep 28, 2004 7:49 am
Location: The Netherlands

Re: Task "One Shot"

Post by Richard Naninck »

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
jacco van der Ven
Senior Member
Posts: 136
Joined: Tue Oct 21, 2003 4:16 pm
Location: The Netherlands

Re: Task "One Shot"

Post by jacco van der Ven »

That sounds simple, I will try it.

Thanks
Post Reply