Read the statement by Michael Teeuw here.
MMM-PIR-Sensor restart problem
-
Moved this part of the topic into a new thread since it has nothing to do with the module.
-
If i stop with pm2 stop mm and start my MM with npm start from terminal everything works fine, but without the PIR sensor. If i connect the sensor to my pi i get the blackscreen.
-
@paviro See the replay in the other topic. It seems it has something to do with the module.
-
Strange no idea what could case that. Will check back…
-
Thank you both for your help!
How can I disable completely the MM autostart? -
and just to be 100% sure if its so right?

-
Looks fine. The thing that I don’t understand is how connection this could lead to a seconds start of a MM instance…
-
did someone find any solution for my problem? i tried to delete the PIR-Modul and reinstall… but I have the same problem;o( THX
-
So i tried to fix my problem with the PIR sensor. Now I have an other problem. Do someone knew what i do wrong? Now the PIR shut down HDMI if they detect a motion and I don’t have a chance to turn on just with a reboot of the pi.
Sorry for the bad quality!
-
I’ve reinstalled mm2 on a new SD Card and copied all my modules up en it.
Now I’ve got this error message with MMM-PIR-Module:mm-0 App threw an error during load mm-0 Error: Module version mismatch. Expected 49, got 48. mm-0 at Error (native) mm-0 at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:167:20) mm-0 at Object.Module._extensions..node (module.js:568:18) mm-0 at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:167:20) mm-0 at Module.load (module.js:458:32) mm-0 at tryModuleLoad (module.js:417:12) mm-0 at Function.Module._load (module.js:409:3) mm-0 at Module.require (module.js:468:17) mm-0 at require (internal/module.js:20:19) mm-0 at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi/lib/exports.js:1:97) mm-0 Whoops! There was an uncaught exception... mm-0 Error: Module version mismatch. Expected 49, got 48. mm-0 at Error (native) mm-0 at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:167:20) mm-0 at Object.Module._extensions..node (module.js:568:18) mm-0 at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:167:20) mm-0 at Module.load (module.js:458:32) mm-0 at tryModuleLoad (module.js:417:12) mm-0 at Function.Module._load (module.js:409:3) mm-0 at Module.require (module.js:468:17) mm-0 at require (internal/module.js:20:19) mm-0 at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PIR-Sensor/node_modules/wiring-pi/lib/exports.js:1:97) mm-0 MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? mm-0 If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues mm-0 Launching application.Any ideas?
-
Not sure, but isn’t there a wiring mismatch in the picture of your post?
Think you mixed up brown and orange.
Orange (VCC), coming from PIR-Sensor, should go to PIN2 and brown (GND), coming from PIR, should go to PIN6.To your last post:
I would prefer to add the modules from github, not copy.
Are the libraries and drivers for wiring-pi already installed? -
WiringPi should be installed. I’ve tested this using this command:
gipo readallThe module is now installed using git. not copied.
I’ve tried to rebuild… and also to rebulid electron.
npm install --save-dev electron-rebuild -
Module mismatch should be resolved now :)
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