Bulb switch and motion sensor, 30 min timer not working


#1

1) Give a description of the problem
Piston does not work.

2) What is the expected behaviour?
When bulb switch changes on -> starts 30min timer which will turn bulb switch off at the end. BUT, if motion sensors changes to active timer should reset and start 30min count again.

3) What is happening/not happening?
Motion sensor’s motion turns active but it does not start 30min timer from beginning.

**4) Post a Green Snapshot of the piston![image|45x37]image

5) Attach logs after turning logging level to Full


#2

Had a similar thing. you want to change the function of the motion sensor action. see below for what might work


#3

I like SergL’s solution, but in case you run into this again, the Task Cancellation Policy needs to be set to None or if the piston triggers again within that 30 minute wait, it will never reach the off.


#4

Well, two triggers will never both be true at the same instant… so “i0tpd” won’t work as is…


#5

Thanks all!! I decided to go with @qoheleth solution and changed Task Cancellation Policy to “none”. I was stupid and thought it wrong way. Also changed motion sensor “changes to”… it’s same kind as “switch changes to”…


#6

Thank you for the correction, changed mine to “switch is on” condition. Seems to be working in my instance.