Read the statement by Michael Teeuw here.
mm-pir-hide-all
-
@coltography sorry for the late answer :/
You need the MMM-PIR-Sensor Module.
A config example:
{
module: “MMM-PIR-Sensor”,
config: {
sensorPin: 23,
powerSaving: false
}
},
{
module: “MMM-PIR-Fade-HIDE”,
position: “fullscreen_below”,
config: {
fadeInTime: 1000,
fadeOutTime: 3000,
}
},cheers Richard
-
@coltography the hide() api, takes an optional amount of time
search ‘hide’ in the development doc
https://github.com/MichMich/MagicMirror/tree/master/modulesthis.hide(speed, callback, options)
-
@Nususu hi i have a microwave sensor too is the resistance mod needed? I do not want to reopen the mirror…
-
@magicR Wondering if you can help me…
I have implemented your module on my magic mirror with PIR sensor.The issue I seem to have with ALL hiding modules is it seems the PIR is initiating BOTH hiding AND unhiding.
I just can not seem to figure out what is going on. I can adjust the delay and sensitivity if I need to on the sensor but I dont think I need to mess with that at this moment…
I really just want the mirror to be on… say for 20 minutes… then if no trigger … hide.
Then turn on when triggered and stay on for 20 minutes… rinse and repeat.Can you help me ?
My config is below:
{ module: 'MMM-PIR-Sensor', config: { sensorPin: '22', powerSaving: false, } }, { module: "mm-pir-hide-all", position: "fullscreen_below", config: { fadeInTime: '1000', fadeOutTime: '300000', } },