• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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-PIR-Sensor-Lite not switching off

Scheduled Pinned Locked Moved Solved Troubleshooting
11 Posts 4 Posters 2.3k Views 4 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.
  • D Offline
    djlagaffe
    last edited by Jan 2, 2023, 8:15 PM

    Hi guys,

    I installed my PIR incl. the aforementioned module.

    I have configured the module to xrandr on HDMI-1 and verified whether it works on the command line, which it does.

    Test of the sensor works fine too, module also sees movement and restarts the countdown.
    However, when it reaches 0, the screen doesn’t turn off. I don’t see any log that it would want to turn off, neither when doing npm run start:dev nor through the pm2 logs.

    Just updated to v2.22.0, just in case - but no luck.
    Any ideas or pointers?

    Thanks

    N S 3 Replies Last reply Jan 3, 2023, 6:38 PM Reply Quote 0
    • D Offline
      djlagaffe
      last edited by Feb 3, 2023, 7:02 PM

      Found the error - xrandr needs a sudo in front, otherwise it doesn’t execute.

      B 1 Reply Last reply May 4, 2023, 1:45 AM Reply Quote 2
      • N Offline
        N6NG @djlagaffe
        last edited by Jan 3, 2023, 6:38 PM

        @djlagaffe It’s the one module I’ve never been able to make work… I’ve tried everyone I can find, I’ve check to make sure I have the correct pin number and that the PIR itself worked but I still can’t find one that does the job… I’ve not even had any luck with the EXT-PIR on 4th party modules and not been able to make that one work. I wish you all the best and I’ll be watching and hope you find the problem. I’ve been watching for some answers but not yet…
        Good Luck
        Dennis N6NG

        S 1 Reply Last reply Jan 3, 2023, 6:39 PM Reply Quote 0
        • S Offline
          sdetweil @N6NG
          last edited by Jan 3, 2023, 6:39 PM

          @N6NG did you run any of the python test scripts to verify that the sensor works outside of MagicMirror?

          if it doesn’t, then MagicMirror can’t fix it…

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          N 1 Reply Last reply Jan 3, 2023, 6:41 PM Reply Quote 0
          • N Offline
            N6NG @sdetweil
            last edited by Jan 3, 2023, 6:41 PM

            @sdetweil No. are they yours?.. I’ll take a look…
            Dennis

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @djlagaffe
              last edited by Jan 3, 2023, 6:41 PM

              @djlagaffe did u enable debugMode?

              from doc

              debugMode: true

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              D 3 Replies Last reply Jan 14, 2023, 11:41 AM Reply Quote 0
              • S Offline
                sdetweil @djlagaffe
                last edited by Jan 3, 2023, 6:45 PM

                @djlagaffe also note the info in the doc after the options table about problems with bullseye and/or buster

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • D Offline
                  djlagaffe @sdetweil
                  last edited by Jan 14, 2023, 11:41 AM

                  @sdetweil : I did check with the scripts and the PIR itself works. I have also activated the countdown timer, thus the communication between the PIR, the script and MM in general works. What I do not see is that the command to switch off the screen is executed (or even sent).

                  I have verified the script and the command to check whether the command itself works on my installation, and yes, it does.
                  So it should be something not triggering the switch-off / on command. However I have not been able to put my finger on it yet…

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    djlagaffe @sdetweil
                    last edited by Jan 14, 2023, 11:45 AM

                    @sdetweil : yes, however no luck or any log entry at all in pm2 logs mm - am I looking in the wrong place?

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      djlagaffe @sdetweil
                      last edited by Jan 14, 2023, 11:53 AM

                      @sdetweil Sorry, one add-on no debug messages either in the logs, nor via npm run start:dev

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        djlagaffe
                        last edited by Feb 3, 2023, 7:02 PM

                        Found the error - xrandr needs a sudo in front, otherwise it doesn’t execute.

                        B 1 Reply Last reply May 4, 2023, 1:45 AM Reply Quote 2
                        • 1
                        • 2
                        • 1 / 2
                        • 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