Read the statement by Michael Teeuw here.
MMM-Pir alternative for bookworm
-
Hello everyone,
I’ve been using MagicMirror for years and could almost always resolve my problems using the search functions.
Currently I’m struggling to find a new module to use my PIR to turn the monitor on/off.
The MMM-Pir module of bugsounet seems to be gone: https://github.com/bugsounet/MMM-Pir and the user @bugsoutnet is banned in MM forum.
I’m on bookworm and have been using MMM-PIR-Sensor-Lite (https://github.com/grenagit/MMM-PIR-Sensor-Lite) in the past.
Any help is highly appreciated.
regards
-
@Muffex a couple other pir modules were added to the 3rd party list
also see
https://forum.magicmirror.builders/topic/19362/googleassistant-and-related-modules -
Hello again.
Thanks @sdetweil :)
I’m now using MMM-Universal-Pir from here: https://gitlab.com/khassel/MMM-Universal-Pir
This is my config to turn the screen (connected via HDMI) on/off :
module: "MMM-Universal-Pir", hiddenOnStartup: true, config: { gpioCommand: "gpiomon -r -b gpiochip0 4", onCommand: "vcgencmd display_power 1", offCommand: "vcgencmd display_power 0", deactivateDelay: 60 * 1000, }
regards
Muffex -
After switching to “dtoverlay=vc4-kms-v3d” in /boot/firmware/config.txt the commands did not work anymore.
This is my current config:
module: "MMM-Universal-Pir", hiddenOnStartup: true, config: { gpioCommand: "gpiomon -r -b gpiochip0 4", onCommand: "echo on | sudo tee /sys/class/drm/card1-HDMI-A-1/status", offCommand: "echo off | sudo tee /sys/class/drm/card1-HDMI-A-1/status", deactivateDelay: 60 * 1000, }
-
@Muffex yes the commands change. don’t know what to.
-
@Muffex do those work,
-
@sdetweil said in MMM-Pir alternative for bookworm:
@Muffex do those work,
Hey @sdetweil,
yes, now everything works as inteded. :)
I was just thinking of others who may read this thread at a later date. Since bookworm is in the title I didn’t want to mislead them with the old vcgencmd which does not work with wayland. (At least in my case it didn’t.)
regards
-
@Muffex awesome! your prior post wasn’t clear to me