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.8k 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.
    • S Do not disturb
      sdetweil @djlagaffe
      last edited by

      @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 Reply Quote 0
      • S Do not disturb
        sdetweil @djlagaffe
        last edited by

        @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

          @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

            @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

              @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

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

                bheplerB 1 Reply Last reply Reply Quote 2
                • bheplerB Offline
                  bhepler Module Developer @djlagaffe
                  last edited by

                  @djlagaffe - I was able to get it working with xrandr with a small modification to the node_helper.js file. I’ll submit a PR soon.

                  1 Reply Last reply Reply Quote 0
                  • 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