Page 1 of 1
Script being repeated every few minutes
Posted: Monday 03 April 2017 12:22
by stuiow
Hi all,
I have a blocky going for when a shed door is opened.
I want it to go off just the once, but it seems to repeat setting everything off again every 3-5 minutes, (not timed it, damn annoying).
What command can i pop in there so it only occurs the once (when triggered)?
https://drive.google.com/open?id=0B9Tgf ... mR3XzhLX1U
Regards
Stuart
Re: Script being repeated every few minutes
Posted: Tuesday 04 April 2017 19:23
by Lebo2d9
Hi Stuart,
Is the sensor not sending it status each 3-5 minutes. Maybe you can add an extra dummy with the previous state of your sensor.
If you sensor state and the previous state is equal then nothing should happen. If the sensor state and the previous staet is different that you preform your actions and also update the state of you dummy switch to the new state.
Re: Script being repeated every few minutes
Posted: Tuesday 04 April 2017 19:29
by stuiow
Ive a similar blocky script involving windows, but doesnt contain anything about times, that works fine. This script is a real pain for repeatinly sounding alarm and lighting lights.
I like your thought on the dummy switch, i'll look into that. Cheers
Sent from my SM-G925F using Tapatalk
Re: Script being repeated every few minutes
Posted: Tuesday 04 April 2017 19:56
by gerardvs
By design scripts have no knowledge of previous activity. The status could be stored in a dummy switch as stated in an earlier post or you could use a "user variable" to store the actual status. In your script you could check the status and take action.... or not.
Re: Script being repeated every few minutes
Posted: Thursday 08 June 2017 23:35
by halaran
Haha

... "Or not".... Buy the way thanx for your advices and tips