Read the statement by Michael Teeuw here.
PIR Motion sensor
-
This post is deleted! -
@orayoflighto I’m struggling with MMM PIR Sensor and constantly get a black screen, this is my coming input, can you advise if I’m doing anything obviously wrong, thanks
module: ‘MMM-PIR-Sensor’,
config: {
sensorGpio: 4, // This is the GPIO port number, not the header pin number
relayGpio: false, // This is the GPIO port number, not the header pin number
powerSaving: true,
relayOnState: 1,
relayOffState: 0,
turnOffAfterSeconds: 30,
debug: false
}
}, -
Usually a black screen means that you have an error in your configuration file. Make a backup and remove as many lines as you can. Make sure you have the right GPIO pin. That can be confusing because it is different than the actual PIN number. Make sure you are also looking at a GPIO readout for a Pi 3 as the GPIOs are a little different depending on what version of the Pi you have.
-
@orayoflighto the error message is cannot find module onoff. Unsure now how to correct this, the GPIO pin seems correct
-
@richardh151 open a terminal go into your modules directory mmm-pir-sensor and run
npm install
-
@strawberry-3.141 the simplest advice is always the best, it now works perfectly, thank you