MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-GoogleAssistant with MMM-MotionDetector

    Scheduled Pinned Locked Moved Troubleshooting
    22 Posts 4 Posters 3.5k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      killerjoe34
      last edited by

      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

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        majik655 @killerjoe34
        last edited by

        @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 ?
        Thanks

        Re: 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-Sample

        Add 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" ]
          }
        },
        
        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User
          last edited by A Former User

          @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 soon

          Note:
          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

          M 1 Reply Last reply Reply Quote 0
          • K Offline
            killerjoe34
            last edited by

            @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)

            1 Reply Last reply Reply Quote 0
            • ? Offline
              A Former User
              last edited by A Former User

              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 :)

              1 Reply Last reply Reply Quote 0
              • K Offline
                killerjoe34
                last edited by

                Ok, I will continue to move my hands then :D

                1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User
                  last edited by

                  show me you A2D config so …

                  1 Reply Last reply Reply Quote 0
                  • K Offline
                    killerjoe34
                    last edited by

                    Sorry, got to go now, we’ll continue tomorrow, thanks and bonne soirée ;)

                    1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User
                      last edited by A Former User

                      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 !

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        majik655 @Guest
                        last edited by

                        @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 soon

                        Note:
                        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.

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 1 / 3
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy