MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

MMM-NewPIR only works if i plug/unplug the cable, but not without

  • Hello everyone,

    My MagicMirror is working properly and now i am looking into the last detail, introducing a PIR Sensor for Motion Detection and safe energy on the Monitor if not needed.

    Now i configured the Module like this:

    module: ‘MMM-NewPIR’,
    position: ‘top_left’,
    config: {
    useSensor: true,
    sensorPin: 23,
    reverseValue: false,
    delay: 20* 60 * 1000,
    turnOffDisplay: true,
    ecoMode: false,
    governor: “”,
    text: “Auto Turn Off Screen:”,
    counter: true,
    rpi4: false,
    debug: false

    The Time is running, after the entered time, the screen is getting turned off. That works properly. But the timer is actually only being reseted, when i unplug the cable on either the sensor or the raspberry pi.

    I only have one Sensor, i cannot exchange the Sensor.

    If i would enable debug to true, where would i find the output?

    Thank you very much for your support!


  • Module Developer

    hi, what is your rpi type ?

  • Hi there,

    Thanks for your quick answer.

    I do have a Raspberry Pi 3 Model B+

  • Module Developer

    ok, if you enable debug mode

    you have 2 solutions:

    1. manual start by npm start command in the ~MagicMirror directory
    2. if you use pm2 program. you can see log with pm2 log command

    note: if you MM is launched by pm2 don’t forget to stop it (pm2 stop 0) , if you launch MM in with npm start

  • Hi there,

    The Sensor now works like a charm. But actually i am not sure what i changed, but since i enabled (and now again disabled) the Debug, it recognices every movement like intended.

    The Debug actually helped to see when it detects a movement, so that was indeed helpful.

    Thank you very much for the quick support!

    Best Regards,

Log in to reply