Turn off lights after two minutes


#1

Hi,

I’m still having trouble with pistons including motion :frowning:
I created this piston which works if I set the timing for 10 seconds, but if I change the wait time to 1 or 2 minutes, it doesn’t.

Any idea what’s causing the troubles?

Actually I wanted to make a piston that:

When motion gets detected: puts on the lights at 50% while in sleepmode and at 100% while in homemode. In the best case, the lights should turn off 1 minute after motion has ended, unless there’s new motion in the “wait” time.

Tnx!


#2

How bout this?


#3

Does it work if you change TCP to Never?

https://wiki.webcore.co/Task_Cancellation_Policy


#4

The one I shared works without cancelation and is not using nested ifs. Just an fyi


#5

it will work without TCP if the motion sensor has a longer than 60 second timeout. otherwise it will not work without TCP.


#6

Tnx for the replies :slight_smile: I’ll give it a try soon. Busy at work right now :slight_smile:


#7

Where can I find the TCP options?


#8

Good point. Lol my sensors time out at 4 mins.


#9

Found the TCP settings :slight_smile: I will have to test what gives the best results …