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.

    Pir Sensor not shutting off screen.

    Scheduled Pinned Locked Moved Tutorials
    6 Posts 2 Posters 1.5k Views 3 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.
    • T Offline
      tinsebayacc @tinsebayacc
      last edited by

      @tinsebayacc
      This is the tutorial ive been following

      https://forum.magicmirror.builders/topic/6291/howto-turn-on-off-your-monitor-time-based-pir-button-app

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @tinsebayacc
        last edited by

        @tinsebayacc some devices do not have the ability to turn to back… (none of my TV’s do)…

        I wrote my MMM-SleepWake (on github) module to provide the ability to hide all modules to darken the screen…
        its not off, and at night it has a glow (the backlight)… but its better than nothing…

        i don’t care how you detect motion, camera, pir, wave, …

        when you do, call my provided script with ‘started’, and when the motion ends, call it again with ‘ended’
        see the readme.

        set the “mode” to “hide”
        I use a webcam for motion detection

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        T 1 Reply Last reply Reply Quote 0
        • T Offline
          tinsebayacc @sdetweil
          last edited by

          @sdetweil Thank you for your reply

          This would work for me. As I mentioned I am a beginner in all this. How would I configure your module to work with my pir sensor. Sorry if this seems a daft question, I’m still learning the ropes. Thanks

          T 1 Reply Last reply Reply Quote 0
          • T Offline
            tinsebayacc @tinsebayacc
            last edited by

            @tinsebayacc

            Modify you script *

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @tinsebayacc
              last edited by sdetweil

              @tinsebayacc

              I just added some code to my module to handle PIR_SENSOR sending notice of user around…
              so you shouldn’t have to change anything there… well, stop it from turning off the display

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              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