• 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.

PIR-Sensor - put your mirror to sleep if not used

Scheduled Pinned Locked Moved System
utilitygpiomotion-sensorpower-saving
56 Posts 32 Posters 96.9k Views 47 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.
  • M Offline
    Morningstar @AAPS
    last edited by Feb 10, 2017, 11:33 AM

    @AAPS
    Yes that’s the right one.

    1 Reply Last reply Reply Quote 0
    • G Offline
      Goldjunge_Chriz
      last edited by Feb 10, 2017, 2:46 PM

      Is it possible to switch the monitor on and off with the PIR? I would like to hide the sensor and turn on the monitor with a hand movement and then switch it off again with a new hand movement. The sensor should be hidden so that it registers only this hand movement and no other movements in the room. If the manual movement for switching off is once forgotten, the monitor should turn itself off after 30 minutes, for example.

      Is this possible?

      S 1 Reply Last reply Feb 10, 2017, 2:48 PM Reply Quote 0
      • S Offline
        strawberry 3.141 Project Sponsor Module Developer @Goldjunge_Chriz
        last edited by Feb 10, 2017, 2:48 PM

        @Goldjunge_Chriz you might want to use the gesture module of mochman for it

        Please create a github issue if you need help, so I can keep track

        1 Reply Last reply Reply Quote 0
        • G Offline
          Goldjunge_Chriz
          last edited by Feb 10, 2017, 3:40 PM

          Does it work well? I thought that with the PIR could be easier since I do not need any special gesture, only some individual movement.

          1 Reply Last reply Reply Quote 0
          • I Offline
            illskool
            last edited by Feb 11, 2017, 2:06 AM

            Hello,
            1st off I’m a total noob at coding so please forgive me. I have been able to set up my mirror and get several modules up and running. However, I am having quite a bit of difficulty with the PIR-Sensor. I have it wired directly to the GPIO(pins 2, 6, 15). I installed the MMM-PIR-Sensor via paviros instruction. At first I got the white screen. Somehow that issue is gone. Now I can’t get the module to work. I know the PIR sensor is working, because I am able to run a python script to detect motion. The script just keeps in running though even when I walk away from the sensor. Maybe the sensor is faulty?

            Any help would be greatly appreciated.

            Thanks in advance

            1 Reply Last reply Reply Quote 0
            • M Offline
              Mar @DirkS
              last edited by Feb 16, 2017, 11:02 PM

              @DirkS

              Hey Dirk, i was having some issues and was using “/opt/vc/bin/tvservice -o” and “/opt/vc/bin/tvservice --preferred && sudo chvt 6 && sudo chat 2” to turn my screen on and off as that seems to be what everyone is using. This worked reliably since i started using the PIR sensor.

              All of a sudden this started making my screen go white when it issued the monitor on command…and the screen would stay white for a few minutes and sometimes it would come back.

              Using your “vcgencmd” commands in place of the previous in my monitor on/off scripts everything is back to working again.

              I had a couple questions. Firstly i didnt understand what you mean by hdmi_blanking=1…what does this do/should i put this in my boot/config.txt?? And secondly what is the difference between the two ways of toggling the monitor?

              (I did ask my question here: https://forum.magicmirror.builders/topic/1780/white-screen-after-screen-resumes-from-pir-or-sometimes-randomly-can-still-access-via-ssh-requires-restart-sometimes/4 incase but stumbled upon this after.)

              1 Reply Last reply Reply Quote 0
              • B Offline
                Bangee Module Developer
                last edited by Feb 21, 2017, 9:17 AM

                @illskool
                Check this out:
                https://forum.magicmirror.builders/topic/569/mmm-pir-sensor-white-screen/39

                I 1 Reply Last reply Feb 22, 2017, 3:06 AM Reply Quote 0
                • D Offline
                  djbosman @paviro
                  last edited by Feb 21, 2017, 10:02 AM

                  @paviro

                  Hi!

                  NOOB alert!!

                  I have added the module, updated the config.js file accordingly, but then, with nothing connected, the screen turns completely white?? (Opposite to what I expect to happen).

                  Could you kindly indicate what I might observe when it is running as expected? With a PIR connected, and without?

                  I have learnt how to run “npm start dev”; What should I look for in that console if it is functioning?

                  Or any other means of testing if it’s working, or where it is breaking?

                  Much obliged!!

                  1 Reply Last reply Reply Quote 0
                  • D Offline
                    djbosman @paviro
                    last edited by Feb 21, 2017, 5:20 PM

                    @paviro

                    Hi!

                    Just lest you miss my response to @Bangee , I have resolved my problem.

                    Bangee gives a step-by-step how to re-install the module, which helped me to get my device working.

                    Thanx, once again, for a great module!

                    Cheers!

                    1 Reply Last reply Reply Quote 2
                    • I Offline
                      illskool @Bangee
                      last edited by Feb 22, 2017, 3:06 AM

                      @Bangee Thanks for the assistance. I tried that link along with a couple of other suggestions that I came across from the forums but nothing worked. I went and ordered a new PIR sensor as a last resort and bam worked once I plugged it in. This is a great module. Its really going to save me some money in energy costs and increase the life of my MagicMirror Monitor.

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 4 / 6
                      4 / 6
                      • First post
                        39/56
                        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