Newbie - Help to Understand Motion Sensor Piston

motion

#1

I hope i’ve done this right, please accept my apologies if I haven’t, this is all a (steep) learning curve for me at the moment…

1) Give a description of the problem
I’m totally new to WebCoRE and trying to understand the mechanics of how the motion sensor works

2) What is the expected behavior?
I’m hoping that if the motion sensor is INACTIVE for a period of 1 hour anywhere within the Time Window set, that the thermostat will change the temperature to the set figure.
Am I right in thinking that after this has run once, it won’t run again? So if this ran, then the temp was manually increased, it would stay increased even if the motion sensor was inactive for another hour? (i hope that makes sense)

3) What is happening/not happening?
Unknown, i’ve not actually applied this yet

4) Post a Green Snapshot of the pistonimage


5) Attach any logs (From ST IDE and by turning logging level to Full)
not applicable

REMOVE BELOW AFTER READING


#2

So long as the motion sensor doesn’t reset and start counting again then yes it will do what you want.

Everything looks good to work the way you want. You have a rogue if/then statement at the bottom you can remove but it won’t affect anything either way


#3

Thanks… how can i make the piston work so that for the whole time window given, the motion sensor can trigger the change of temperature as many times as is necessary… ie, it keeps running, rather than running once and stopping?


#4

Ok so how you have it set up this is what will happen. During your time window you are active around the motion sensor and then it goes inactive. A timer then begins to count down for that 1 hour. As long as nothing interrupts the inactive state your piston will execute after the 1 hour timer.

Now should you activate the motion and it again settles to inactive for an hour it will run the temp change again.

So as long as you are in the timeframe and the motion is inactive for an hour then it will fire.

But it will not fire off again if it has fired once and then the motion never goes active then back to inactive.


#5

Thank you, that’s exactly what i needed to understand… sorry for such a newbie question, thanks for taking the time to humour me :smile:


#6

That’s what we are all here for! Go forth and create many pistons!