Read the statement by Michael Teeuw here.
PIR sensor behind glass?
-
@Nususu I would go online and lookup ‘wiring pir sensor raspberry pi’ there are TONS of things out there. Your issue could be one of any or a combination of things… I did that using a PIR sensor so I have no idea how it would act with microwave sensors… good I’m hoping because I want to get some… BUT let me know if you need anymore help, not that I helped you now but I will do what I can!
-
-
@cowboysdude thanks, I’ll check that out and let you know how it goes!
-
@cowboysdude I got it working using this code:
https://github.com/paviro/MMM-PIR-Sensor
With this code, I’ve got a problem where the screen only stays on for about 1 second after motion detection. Now I need to modify the code somehow to allow me to tell the mirror to stay on for a set amount of time after detecting motion, i.e. only go dark once no motion has been detected for x seconds. Problem is I don’t know where to start with that. Will let you know if I figure anything out. Any ideas?
-
@Nususu try adding the powerSaving to your config…
{ module: 'MMM-PIR-Sensor', config: { powerSaving: false } }See what that does :) PLUS there’s also an adjustment on your PIR sensor itself… which one and I don’t know … do a google search for adjustments :)
-
@Nususu - same here
Perhaps, with a resistor?
-
@Aly I found documentation for the sensor that a resistor would indeed solve the issue here. I can set the delay up to 200 seconds with a 250k resistor, so I ordered one and will report back how it went.
-
@Nususu - great !!
Can you post the doc. ?
-
@Aly I misspoke, shouldn’t have called it documentation. Rather, it was this picture:

Which appears to be a translation from the Chinese original picture.
-
so if we remove the R6 resistor the delay would be 30s ?
-
@Aly yes, it would appear so. I just bought a soldering iron and resistors which arrive tomorrow so I’ll perform a couple tests: 1. Remove r6 and verify that it’s 30s. 2. Add 250k resistor and test duration.
-
-
@Aly I tested this today - I put a 250k resistor on R6 and it increased the timer to approximately 25 seconds. I forgot to test without a resistor. Let me know if you end up testing that.
-
@Comunnity
If it comes to the thickness of the mirror: Would you either recommend webcams, etc, behind the mirror or as I thought create a CAD-print plan for a 3 D-printer to hide the camera behind a… actually I have no clue how to call it … a “string” of maybe a lamp?
Do you guys have recommendations or Best Practices?
I saw some awesome bathroom project in this forum but no one 3D printed his lamp or LED. My roommate has a 3D printer so I am thinking about to integrated a camera in one part of an LED lamp which is on top of the mirror.
Maybe someone tried this idea before me. Hope there are some Best Practices on how to do it.
As always I would like to thank you for your awesome feedback guys.
Kind regard from Hamburg, Germany,
Paul
-
@paulb
I really like the way this guy mounted the camera on top of the mirror: https://forum.magicmirror.builders/topic/6952/my-mirror-so-great
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