Read the statement by Michael Teeuw here.
MMM-GoogleAssistant with MMM-MotionDetector
-
Hi guys :)
Thanks to @Bugsounet, GA and AD2 both work really well for me now with Spotify !
I installed MotionDetector wich works also well.But when the display is off, I would like to turn it on by saying the hotword (Jarvis in my case)
How can I do that ?
Thanks -
@killerjoe34 said in MMM-GoogleAssistant with MMM-MotionDetector:
Hi guys :)
Thanks to @Bugsounet, GA and AD2 both work really well for me now with Spotify !
I installed MotionDetector wich works also well.But when the display is off, I would like to turn it on by saying the hotword (Jarvis in my case)
How can I do that ?
ThanksRe: MMM-GoogleAssistant with MMM-MotionDetector
I personally use MMM-NEW-PIR … and don’t need to wake the screen because the motion detector sees me and wakes the screen…this is using a PIR motion sensor though… so I am unsure you exact scenario…But MAYBE you can look into the recipes…
In your assistant directory you will see a directory called RECIPES .
There are some premade recipes in there you can look over… you can also read about them in the wiki…
one of them is called “with-MMM-pages.js”Open it and you will see the commands in that file that you can attach to your config file in the assistant module and it will do what the recipe tells it to…
I do not have access to this recipe file right now but I believe you can say “SHOW ALL MODULES” and the screen might wake up? (again this depends on your setup and your motion modules)…You will need to add the recipe you want to use to your config file…
This page shows you the DETAILED config and at the bottom you will see RECIPES…
https://github.com/bugsounet/MMM-GoogleAssistant/wiki/Configuration-SampleAdd this to your config and put in the with-MMM-pages.js - restart Magic mirror and try out saying the commands.
You can also create your own recipes (look in the wiki) and add your own recipe js files to your config … you can use more than one.}, recipes: [ "with-MMM-pages.js" ] } },
-
@majik655 said in MMM-GoogleAssistant with MMM-MotionDetector:
MMM-NEW-PIR
I have to update this module butI really don’t use it, because all fonctionnality is on A2D
I start to code A2D pir module to MMM-NewPir but not finish
I will continue it and commit it to master soonNote:
For GA/A2D users it’s more natural to use screen/pir sub-module of A2D because it’s lock screen on GA/A2D use and can’t turn off
MMM-NewPir have not this fonctionality (and can’t never have it, because i don’t want to do a dual code)example:
-
with GA / youtube and MMM-NewPir
defined tiner of NewPir is for example : 2 min
duration of video +/- 4 min
NewPir will turn off video at 2min -
with GA / A2D / youtube and screen/pir submodule of A2D
defined tiner of screen/pir is for example : 2 min
duration of video +/- 4 min
A2D will turn on the monitor for duration of video (playing)
A2D will restart the counter at the end of video
-
-
@majik655 said in MMM-GoogleAssistant with MMM-MotionDetector:
I personally use MMM-NEW-PIR
@Bugsounet said in MMM-GoogleAssistant with MMM-MotionDetector:
For GA/A2D users it’s more natural to use screen/pir sub-module
Thank you, but MMM-MotionDetector works perfectly if I move around, it detects the motion and wake the screen up.
But I don’t want to wave in front of it just to wake it up, for example when I’m in the sofa without a move ;)@majik655 said in MMM-GoogleAssistant with MMM-MotionDetector:
But MAYBE you can look into the recipes…
That’s it! I had a few tries and I can get it Off or On with the Reboot-Restart-Shutdown recipe by modifying it with
vcgencmd display_power 1 or vcgencmd display_power 0```
But could it be possible to power it on just by saying the hotword jarvis ?
Perhaps it would be complicated as it would have to check if it’s on or off first ? (ou pas) -
euh, it’s a native fonction
but … if you enable detectorSleeping if will not works because it’s turn off detector on the same time of the screen
and if detector (jarvis
) is off … i will not hear you
verify your config :) -
Ok, I will continue to move my hands then :D
-
show me you A2D config so …
-
Sorry, got to go now, we’ll continue tomorrow, thanks and bonne soirée ;)
-
ok when you have time post it in private. i will resolve it :p
Note: why I need your A2D config ? just because i will try with it to reproduce non working fonctionality !
-
@Bugsounet said in MMM-GoogleAssistant with MMM-MotionDetector:
@majik655 said in MMM-GoogleAssistant with MMM-MotionDetector:
MMM-NEW-PIR
I have to update this module butI really don’t use it, because all fonctionnality is on A2D
I start to code A2D pir module to MMM-NewPir but not finish
I will continue it and commit it to master soonNote:
For GA/A2D users it’s more natural to use screen/pir sub-module of A2D because it’s lock screen on GA/A2D use and can’t turn off
MMM-NewPir have not this fonctionality (and can’t never have it, because i don’t want to do a dual code)example:
-
with GA / youtube and MMM-NewPir
defined tiner of NewPir is for example : 2 min
duration of video +/- 4 min
NewPir will turn off video at 2min -
with GA / A2D / youtube and screen/pir submodule of A2D
defined tiner of screen/pir is for example : 2 min
duration of video +/- 4 min
A2D will turn on the monitor for duration of video (playing)
A2D will restart the counter at the end of video
Hey @Bugsounet
I am not sure I follow you very well … but the reason why I needed or used NEW-PIR was because it was the only thing that did not actually turn off the monitor or go to sleep so the the monitor power saver showed.
As far as I know NEW-PIR throws up a “black” screen or something so that the monitor never “sleeps” and when it wakes the monitor doesn’t report the input (hdmi) or show the power save on sleeping.New-PIR was installed first… then I figured out how to install GA… then installed A2D, and then installed facial recognition …
It all seems to work fine the way I have it … honestly I couldn’t figure out the A2D commands and such in the beginning and do not want to reconfigure lol.
It all works great on my end for the moment I suppose. -