Read the statement by Michael Teeuw here.
PIR Motion sensor
-
Interested in the very same thing! But i am trying to make my HUE light strip turn/on off as the screen already does.
I found this Hue motion
-
@Kimzer thanks but as a novice the suggested scripts blew my mind and seems much more complicated to what I’m currently using. I’m sure there is a way to modify it to switch on the led strip at the same time as the monitor jumps to life from the PIR motion sensor. I have a RPi3 and have it connected but struggle with the script which I’m sure is easy for someone else.
-
@Kimzer said in LED Backlight for mirror - PIR to control them:
Found this hue motion but i couldnt get it to run.
Anyone that has some input?So i managed to do this. Its probably quite a dirty fix. And only setup to work with phillips hue bulbs/strips. But if u want to know shoot me a pm and ill show it. (Y)
-
Have you seen this?
https://forum.magicmirror.builders/post/26789 -
@richardh151 Here’s a VERY simple one…
-
@orayoflighto what you show is exactly what I need, however struggling with MMM pir Sensor module as my MM shows a conf.js error. So can’t get beyond that. I also have the RGB WS2812B led strips which I discovered r more problematic to control. I feel as though I tried many things but still frustrated with non functioning lights.
-
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