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 Troubleshooting
    126 Posts 37 Posters 235.5k Views 20 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
      desq @cowboysdude
      last edited by

      @cowboysdude mh… I really would like to stick with paviros module.
      “USER_PRESENCE” (PIR Sensor) seems to work, but my Relay does not change it´s state.
      @paviro can you confirm, that your PIR module doesn´t work with node 6.22?

      If so I must switch to that python-script-hell.

      1 Reply Last reply Reply Quote 1
      • paviroP Offline
        paviro
        last edited by paviro

        @desq sorry no idea :D haven’t touched it in a while since I am pretty busy at the moment (finished school, now moving to a new city at the other side of the country). Could be possible that my dependencies work with v6 now but I still need to update it and change some stuff once I have the time :)
        What exactly do you mean by duration? A delay? My PIR-Sensor can do that in hardware thats why I haven’t implemented it.

        We're all stories in the end. Just make it a good one, eh?

        – The Doctor

        Wilco89W 1 Reply Last reply Reply Quote 0
        • X Offline
          xdker
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • Wilco89W Offline
            Wilco89 @paviro
            last edited by

            @paviro got a complete White screen and no posibility to use vnc. Got there the Same White screen and no option to open terminal anybody a solution so i can disable the module?

            KirAsh4K 1 Reply Last reply Reply Quote 0
            • KirAsh4K Offline
              KirAsh4 Moderator @Wilco89
              last edited by

              @Wilco89, use SSH to log into it, user 'pi', password 'raspberry' unless you changed it to something else. Edit the config file, reboot the rpi.

              A Life? Cool! Where can I download one of those from?

              Wilco89W 1 Reply Last reply Reply Quote 0
              • Wilco89W Offline
                Wilco89 @KirAsh4
                last edited by

                @KirAsh4 didn’t think about that. Oops

                1 Reply Last reply Reply Quote 0
                • M Offline
                  murattyilmaz
                  last edited by

                  Hello,

                  I’ve installed this module and sensor to my pi but I’m facing an issue.
                  When I start the app, its loading as expected and show everything normally.
                  After 5 sec. my monitor goes to sleep and says me “no signal” even if I shake may hand front of it.
                  Then monitor blink a few times and seems like open but nothing to show or said.
                  After this situation, never comes to live back and can’t close or shut down the app (can’t go back to OS screen). I have to shut the power to reset my pi.

                  Do you have any idea why this happens?

                  S 1 Reply Last reply Reply Quote 0
                  • M Offline
                    McSorley
                    last edited by McSorley

                    Any ETA on when the update will occur for removing the wiring-pi dependency? I wouldn’t like going down to a lower version of Node.js for this to work encase I break the whole thing.

                    1 Reply Last reply Reply Quote 0
                    • paviroP Offline
                      paviro
                      last edited by paviro

                      Sorry no :/ I just started a new job/school and I do not currently have a mirror setup :( but it should really not be that hard to do so feel free to just try! You can use onoff there is an example which would not need to be changed much to replace wiring Pi in my code :)
                      If you succeed please send a pull request!

                      Edit: If I find some time this evening I will try to do it but you will have to test as again I don’t have a mirror currently.

                      We're all stories in the end. Just make it a good one, eh?

                      – The Doctor

                      1 Reply Last reply Reply Quote 1
                      • paviroP Offline
                        paviro
                        last edited by

                        Double post so you get notified: Done feel free to try :) don’t forget to reinstall the module with npm install!

                        We're all stories in the end. Just make it a good one, eh?

                        – The Doctor

                        MitchfarinoM 1 Reply Last reply Reply Quote 0
                        • MitchfarinoM Offline
                          Mitchfarino Module Developer @paviro
                          last edited by Mitchfarino

                          @paviro So it works with node 6 now?

                          paviroP 1 Reply Last reply Reply Quote 0
                          • paviroP Offline
                            paviro @Mitchfarino
                            last edited by

                            @Mitchfarino if it still works at all yes :)

                            We're all stories in the end. Just make it a good one, eh?

                            – The Doctor

                            1 Reply Last reply Reply Quote 0
                            • paviroP Offline
                              paviro
                              last edited by

                              Now it should definitely work :)

                              We're all stories in the end. Just make it a good one, eh?

                              – The Doctor

                              1 Reply Last reply Reply Quote 3
                              • S Offline
                                shgmongohh @murattyilmaz
                                last edited by

                                @murattyilmaz

                                I have the same issue. Does anybody have a solution for this problem?

                                1 Reply Last reply Reply Quote 0
                                • C Offline
                                  cpramhofer
                                  last edited by

                                  I´m playing around with PIR and after reinstalling npm it seems to work.
                                  the only problem is that my monitor is switching on and off every couple of seconds.
                                  do you guys have a picture of how your sensor is setup (Poti, Trigger Jumper)?

                                  thanks a lot!

                                  E 1 Reply Last reply Reply Quote 1
                                  • D Offline
                                    DirkS
                                    last edited by

                                    Hi,

                                    i have some issue with the PIR Module. It worked for testing a couple of month but now under productive operation it doesn’t :(

                                    The Screen is switched off and on correctly but after a unspecified time it doesn’t switch it on anymore, it stays black. Sometimes after an hour sometimes after a couple of minutes.

                                    The PIR itself is working correctly as i discovered, i’m also getting it’s state under FHEM and there i can see the relaible functionality of it. I connected it to the GPIO 21.

                                    As i can see on the screen it doesn’t get any video input anymore. Only rebooting the PI2 will fix it.

                                    I’m not sure where to search :(

                                    Some startup log entrie doesn’t show anything.

                                    > magicmirror@2.0.0 start /home/pi/MagicMirror
                                    > electron js/electron.js
                                    
                                    Loading config ...
                                    Loading module helpers ...
                                    Initializing new module helper ...
                                    Initializing new module helper ...
                                    No helper found for module: alert.
                                    No helper found for module: clock.
                                    Initializing new module helper ...
                                    No helper found for module: compliments.
                                    No helper found for module: currentweather.
                                    No helper found for module: weatherforecast.
                                    Initializing new module helper ...
                                    All module helpers loaded.
                                    Starting server op port 8080 ...
                                    Server started ...
                                    Connecting socket for: MMM-FHEM
                                    Connecting socket for: MMM-PIR-Sensor
                                    Connecting socket for: calendar
                                    Starting node helper for: calendar
                                    Connecting socket for: newsfeed
                                    Starting module: newsfeed
                                    Sockets connected & modules started ...
                                    Launching application.
                                    
                                    AlessandroRaA 1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      phrazelle
                                      last edited by phrazelle

                                      Thanks for the module - this is fantastic!

                                      I have a PIR sensor attached and it works as desired, but when the HDMI signal is cut to the TV, I get a “No Signal” message on the screen from the TV itself because the RPi isn’t sending signal anymore.

                                      I’m wondering what the best solution would be. My head goes to hiding all modules instead of turning the monitor off so MM is still on but a completely black screen, or somehow send the RPi into a sleep state but keep the HDMI active.

                                      Has anyone else tackled this issue?

                                      M 1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        McSorley @phrazelle
                                        last edited by

                                        @phrazelle The idea behind it is so that when the HDMI is disabled you would get the no signal. You then set up the TV/Monitor to go to sleep if no signal is found.
                                        Check your TV manual for power saving settings.

                                        P 1 Reply Last reply Reply Quote 1
                                        • P Offline
                                          phrazelle @McSorley
                                          last edited by

                                          @McSorley Thanks for the response!

                                          Unfortunately my TV doesn’t have a sleep mode option. It automatically displays the No Signal message and turns off after a few minutes of no signal. To make that more difficult, if the TV is turned back on with the remote, it loses the resolution settings and blows everything up until the RPi is rebooted.

                                          I’m not sure how to address this, but I think it would be ideal in my circumstance to have this module, but triggered by the PIR sensor. Idk if I can finagle that, but I suppose I can give it a shot.

                                          1 Reply Last reply Reply Quote 0
                                          • N Offline
                                            nem1
                                            last edited by

                                            Do we still have this problem with the node version? (v5 works, 6 not)

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 3 / 7
                                            • 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