Help to recreate an old CoRE Piston!


#1

1) Give a description of the problem
I have a piston that has been chugging along quite happily in my CoRE environment, but I’m taking the leap into WebCoRE now and I could do with a bit of help recreating it.

2) What is the expected behavior?
Essentially, if it’s Friday or Saturday and it’s between 11pm and Sunrise and if the Hall detects motion, then the Hall Light comes on… if the motion then stops for 6 minutes, then the light turns itself off.

3) What is happening/not happening?
The light comes on fine, but it’s the turning off part that is the issue

4) Post a Green Snapshot of the pistonimage
WebCore:


CoRE:

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

No Log


#2

Personally I would change Motion Sensors 1 motion to IS active. Not CHANGES TO active. (You are mixing triggers and conditions).
In the with I would have.
THEN
WITH (Set TCP to never).
Turn On.
Wait 6 minutes
Turn Off.
Delete the ELSE -IF.

This way with TCP set to never the timer will start when motion stops. If motion should occur again in the 6 minute window the the piston starts again.
i.e. the light remains on and when motion stops the timer starts again.


#3

So a bit like this…?


#4

That is how I do mine and they work OK.


#5

Just changed the time and ran it - think that’s done it!