Read the statement by Michael Teeuw here.
MMM-PIR-Sensor not working with latest release - display does not turn off
-
@Kugelfang yes, you will need to install electron-rebuild in that module
from the MMM-PIR folder
npm install electron-rebuild
then run it to force the epoll rebuild
node_modules/.bin/electron-rebuild
-
@sdetweil said in MMM-PIR-Sensor not working with latest release - display does not turn off:
node_modules/.bin/electron-rebuild
Holy SHIT that worked. I’m now using the MMM-PIR instead of the MMM-PIR-Sensor
thanks you so much!!!
EDIT:
for the record: there are two PIR modules avaliable: Initially I intended to go with MMM-PIR-Sensors as I’ve been using this in the past. Unfortunately I couldn’t get it to work with the newly installed setup. Hence I choose MMM-PIR.
Besides the suggestion from @sdetweil I also modified the displayOff.sh and displayON.sh from
tvservice -o
to
vcgencmd display_power 0
so the module works with the full KMS OpenGL driver.
-
-
@shgmongohh in the module folder
-
In which folder ?
-
@shgmongohh too many pir modules
https://github.com/cowboysdude/Pir-Sensor has one
https://github.com/mboskamp/MMM-PIR has one, in callbackscripts folder