Read the statement by Michael Teeuw here.
PIR / MQTT - Presence sensor(s) revived
-
Dear MagicMirror-ians
As may already known I was a real fan of MMM-Pir.
For also good known reasons this nice module is not longer maintained.I have a local clone which runs OK but in the meantime I had switched to MMM-MQTTScreenOnOff wich attaches a “better” (radar-) sensor to my mirror. But I’ve missed the progress bar, the dimming and cron-like functionality. In addition the radar sensor is much slower than PIR- caused by a 5 second update intervall as minimum.
After plenty of tinkering and testing, and above all torturing AI heavily I’m excited to announce: MMM-PresenceScreenControl is finally out! 🎉
This module brings together the best of both worlds:
• The beloved timer bar and auto-dimming from MMM-Pir,
• The reliability, MQTT support, and simplicity of MMM-MQTTScreenOnOff,
• All cleaned up, without unnecessary complexity, cryptic cron strings, or weird build tricks.A few highlights:
• Presence detection with PIR, MQTT, or both (whichever triggers first wins)
• A visual timer bar so you always know how long the screen will stay on
• Straightforward “ignore” and newly introduced “always-on” time windows using plain times and days—no cryptic cron needed
• Customizable screen on/off commands—works on Pi, PC, X11, Wayland, CEC, and more
• Touch mode for remote or manual override (yes, you can poke your mirror awake remotely!)If you’re after spinning circles or relay magic, this isn’t your thing (yet 😉).
But if you want a solid, readable, and maintainable presence module that just works—even (hopefully) after updates—this is for you.Give it a try, share your feedback, open pull requests, or ask questions right here or on GitHub:
Happy mirroring!
Ralf
-
@rkorell sadly it does not work: Pi 2b, bookworm, Pir only.
It says: Presence: no
It has worked for years with MMM-Pir on Bullseye.
Can you help please?
Peter -
Dear @Peter,
I can imagine that this is a restriction of your hardware.
I’m not THAT system specialist but as far as I remember there are some limitations regarding environment and software versions on Pi2b …
Because the “actuality” of used libgpiod this may doesn’t work on this specific hardware.I can imagine Sam (@sdetweil ) can deliver a more precise statement on this.
On pi4/5 with “current” MM versions this works - and yesterday I got feedback regarding a successful installation.
Is there any log-entry which can be useful here?
Is the right GPIO configured for PIR?
Is the PIR sensor functional / calibrated?
Is power/ground connected to PIR?
Is power supply sufficient and working?Regards,
Ralf -
@rkorell
The Pir worked fine with MMM-Pir and Bullseye on the Pi 2b.
Fresh install with Bookworm: everything worked fine except the Pir.
That is why I tried your module.
Peter -
I’m not THAT system specialist but as far as I remember there are some limitations regarding environment and software versions on Pi2b -
-
Dear @Peter,
Yes fully understood…
Without context - and may an answer regarding my questions - It‘s really hard to help.Warmest regards,
Ralf