Read the statement by Michael Teeuw here.
MMM-Pir - maybe a small bug
-
Not sure if I’ve found a small bug or just me not using correctly but when I restart (Ctrl+Q) or reload (Ctrl+R) my running MagicMirror instance, it reports a GPIO busy Error and seems to have 2 countdown timers running which switch back and forth on the screen.
Activity at the PIR resets one of the timers.
This is the same if I use “pm2 stop MagicMirror”
followed by “pm2 start MagicMirror”I suspect that the GPIO pin is not being released before restarting???
If I shutdown, power cycle and restart then everything is fine.
I’m running a Pi5 with Bookworm
Thanks for any advice
-
@chrismills59 you should post that to the module github issue. we dont track bugs here
also, which MMM-PIR are you using?
in the module folder do
git remote -v
to dump out the url of its origin
-
I’m having the same issue, and unable to post an issue directly to the repo.
qats@MirrorPi:~/MagicMirror/modules/MMM-Pir $ git remote -v origin https://github.com/bugsounet/MMM-Pir (fetch) origin https://github.com/bugsounet/MMM-Pir (push)
After a reboot, the module works fine and reacts as expected. If I close that instance of MM for any reason when I start it back up I get these errors:
[2024-09-19 09:29:34.330] [LOG] [MMM-Pir] Version: 1.5.4 rev: 240824 [2024-09-19 09:29:34.330] [LOG] [MMM-Pir] [LIB] [PIR] Mode 2 Selected (gpiozero) [2024-09-19 09:29:34.342] [LOG] [MMM-Pir] [LIB] [PIR] Started! [2024-09-19 09:29:34.343] [LOG] [MMM-Pir] [LIB] [SCREEN] Mode 4: HDMI CEC [2024-09-19 09:29:34.361] [LOG] [MMM-Pir] Started! [2024-09-19 09:29:34.700] [ERROR] [MMM-Pir] [LIB] [PIR] Error: 'GPIO busy' [2024-09-19 09:29:34.739] [INFO] Newsfeed-Fetcher: Broadcasting 10 items. [2024-09-19 09:29:34.877] [WARN] [MMM-Pir] [LIB] [PIR] [PYTHON] The exit code was: 0 [2024-09-19 09:29:34.878] [WARN] [MMM-Pir] [LIB] [PIR] [PYTHON] The exit signal was: null
The module will successfully turn off the display when the timer is reached, but there’s no way to turn it back on as it’s not able to manage the GPIO pin to detect a signal.
I’m running a Pi 5 with Debian 12
-
@qats @bugsounet can you help here