Read the statement by Michael Teeuw here.
MMM-PIR - off delay
-
Sorry I didn’t quote the code properly.
-
@JamesMM hi! i also have pain to setup the PIR in hardware way and i would prefer your way. Is the code stated above working? thx
-
@JamesMM Where is the “Config” section where you added the delay configuration? I’ve changed my node_helper.js file but I can’t find the configuration file you referenced.
-
@lsfourwheeler @JamesMM Actually, I see that you are referencing the Magic Mirror config for the delay setting. So where are you replacing the deactivateMonitor with timerID?
-
@bibi it does. Perfectly.
-
@lsfourwheeler yes passed it in. Assumed that was how it was supposed to be done.
-
@JamesMM ok thx! i don’t really get where exactly your code above should be placed :( can you give me a hint pls?
-
Thank you for sharing @JamesMM - it works perfectly!