Variable Time updating


#1

1) Give a description of the problem
When my piston runs at the given times (they are test times so excuse the randomness) The Kitchen_Motion_Timer variable also updates with the piston run time

2) What is the expected behaviour?
Kitchen_Motion_Timer variable should only change time when “hall motion sensor” changes to inactive

3) What is happening/not happening?
As above

**4)

5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

You can drag & drop your first line down a bit inside the top IF.


Afterwards, that top block will look like this:

IF Sensor 2's motion changes to inactive
Then
    Set variable Kitchen_Motion_Timer = {$time24}
END IF

#3

Thanks so much, worked a treat🙂