Read the statement by Michael Teeuw here.
Module error after updating - MMM-Pir: Pir Error detected: EINVAL: invalid argument, write
-
@Jazz said in Module error after updating - MMM-Pir: Pir Error detected: EINVAL: invalid argument, write:
pir_mode: 0,
Sorry, I have forget to update ReadMe for this error
Generally happen with x64 system (Rpi 4 and Rpi 5)Available pir_mode: pir_mode: 0 - use onoff library (For Raspberry Pi 3b+ and 4) pir_mode: 1 - use python script with RPI.GPIO library (For Raspberry Pi 3b+ and 4) pir_mode: 2 - use python script with gpiozero library (For Raspberry Pi 5, not tested on other Raspberry Pi)
So, Can you try
pir_mode: 1,
orpir_mode: 2,
-
@bugsounet Changing pir_ mode from 0 to 1 has fixed the problem :)
Thanks for your help.
Regards,
Jazz
-
-
-
Hi everyone,
I just can’t get it to work guys. Please help.
GPIO setup:
VIN - Pin2
OUT - Pin6
GND - Pin11Configuration:
module: ‘MMM-Pir’,
position: ‘top_left’,
config: {
debug: false,
delay: 1 * 30 * 1000,
mode: 1,
displayCounter: true,
displayBar: true,
displayStyle: “SemiCircle”,
displayLastPresence: true,
lastPresenceTimeFormat: “LL H:mm”,
xrandrForceRotation: “normal”,
wrandrForceRotation: “normal”,
touchMode: 2,
pir_gpio: 17,
pir_mode: 1,I have been playing around with all variations and have tested 3 sensors. Not sure what I’m missing.
Thank you for your support! -
@Laca44 does it work outside
MagicMirror?there are python scripts to test operation.
google search
python pir sensor test -
@sdetweil said in Module error after updating - MMM-Pir: Pir Error detected: EINVAL: invalid argument, write:
python pir sensor test
I’m a newbie and this helped a lot! Thank you! -
@Laca44 were you able to solve the problem?
-
@sdetweil Yes it helped in resolving the issue. I still need to understand what troubleshooting actually helped.