MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

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

    Scheduled Pinned Locked Moved Troubleshooting
    5 Posts 2 Posters 526 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      feigi
      last edited by

      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!

      Cheers,
      roman

      1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User
        last edited by

        hi, what is your rpi type ?

        1 Reply Last reply Reply Quote 0
        • F Offline
          feigi
          last edited by feigi

          Hi there,

          Thanks for your quick answer.

          I do have a Raspberry Pi 3 Model B+

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • F Offline
              feigi
              last edited by

              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,
              Roman

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy