Unsolved Screen off with ext-pir applied
-
According to the ext-pir and screen documentation, I think I can apply this to make a system that turns on when something is detected by the pir via pir sensor mode. I have authorized mode 6, but it does not go to sleep when it is not detected, and vice versa.
module: 'EXT-Screen', position: 'top_left', config: { autoDimmer: true, delay: 2 * 60 * 10, mode: 6, gpio: 20, clearGpioValue: true, ON: [ { dayOfWeek: [0,1,2,3,4,5,6], hour: 00, minute: 00 } ], OFF: [ { dayOfWeek: [0,1,2,3,4,5,6], hour: 00, minute: 00 } ] } }, module: 'EXT-Pir', config: { debug: false, gpio: 2, reverseValue: false } },
These images don’t come up either
-
HI,
-
what’s happening is you’re breaking the rules with ON/OFF
actually you are asking to turn it on and off at the same time -
If you use a pir sensor with EXT-Pir
Best way is not using ON/OFF
Why? just because it’s EXT-Pir Job -
ON/OFF feature is only used if you don’t have a pir sensor
So… just deleteON:[]
andOFF:[]
feature and it will works like you want
-
-
@bugsounet
I modified the code according to your advice, but it still doesn’t work{ module: 'EXT-Pir', config: { debug: true, gpio: 20, reverseValue: false } }, { module: 'EXT-Screen', position: 'top_left', config: { delay: 2 * 60 * 1000 } },
I changed it to the default format only, and I think that ext-pir sends a wakeup alarm, so I don’t need to turn it on or off. However, even though I opened a new pir sensor and checked the GPIO settings, the screen does not show the sleep mode or timer picture.
Here’s what it looks like, the non-English ones are my local settings
-
Don’t forget this rule:
An EXT plug-in is not a module.
You can’t use it without MMM-GoogleAssistant and GatewaySo… Do you use it?
-
Yes I use gateway and I also use mmm - google assistant but as per your advice I just updated node.js to version 20.04 and then I tried reinstalling gateway,assistant and mirror with npm rebulid command and now it works! Maybe the mirror was not working because it was a lower version that I installed a few months ago.
Thanks for your help in checking my mistake -
Sure all have to be up to date because I change some internal API(Assistant, Gateway and EXTs a few month ago)
If works, it’s perfect