• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

[Guide] Control MM via Google Home

Scheduled Pinned Locked Moved General Discussion
24 Posts 6 Posters 8.5k Views 6 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.
  • ? Offline
    A Former User @smackenzie5
    last edited by A Former User Sep 2, 2019, 8:01 AM Sep 2, 2019, 8:00 AM

    @smackenzie5
    As far as I read OnScreenMenu module,
    it needs notification like this;

    • notification : ONSCREENMENU_PROCESS_ACTION
    • payload:
      • “actionName” : “monitorOn”

    So you can make your IFTTT & NotificationTrigger recipe like this;
    IFTTT recipe

    {
      "notification": "MONITOR_ON_FROM_IFTTT",
      "payload": null
    }
    

    MMM-NotificationTrigger

    module: "MMM-NotificationTrigger",
    config: {
      useWebhook: true,
      triggers: [
        {
          trigger: "MONITOR_ON_FROM_IFTTT",
          fires: [
            {
              fire: "ONSCREENMENU_PROCESS_ACTION",
              payload: {"actionName": "monitorOn"}
            }
          ]
        }
      ]
    }
    

    I didn’t test those codes on real machine so there could be some syntax error, but I believe you can understand the concept

    S 1 Reply Last reply Sep 3, 2019, 12:07 AM Reply Quote 0
    • S Offline
      smackenzie5 @Guest
      last edited by Sep 3, 2019, 12:07 AM

      @Sean
      You sir, are a freakin’ genius - it works perfectly.
      Thanks again for all the effort.

      1 Reply Last reply Reply Quote 0
      • S Offline
        sgarg15
        last edited by Apr 22, 2020, 9:58 PM

        @Sean If possible could you give an example of how our config file should look like if we wanted to use the google home to turn on and off the monitor?

        1 Reply Last reply Reply Quote 0
        • S Offline
          sgarg15
          last edited by Apr 22, 2020, 10:06 PM

          Also if i were using MMM-Remote-Control besides MMM-OnScreenMenu, how would it work?

          1 Reply Last reply Reply Quote 0
          • S Offline
            sgarg15
            last edited by Apr 22, 2020, 10:31 PM

            @Sean So i followed all the steps and looked at the conversation you had with smackenzie, but i still cant get my monitor to turn off, here my
            config.js

                {
                			module: 'MMM-OnScreenMenu',
                			position: 'bottom_right',
            		},
                {
                module: "MMM-NotificationTrigger",
                config: {
                  useWebhook: true,
                  triggers: [
                    {
                      trigger: "MONITOR_OFF_FROM_IFTTT",
                      fires: [
                        {
                          fire: "ONSCREENMENU_PROCESS_ACTION",
                          payload: {"actionName": "monitorOff"}
                        }
                      ]
                    }
                  ]
                }
                },
            
            

            IFTTT request

            { "notification": "MONITOR_OFF_FROM_IFTTT", "payload": null }
            

            and here the log when i say Magic (the keyword)

            reqpost? { notification: 'MONITOR_OFF_FROM_IFTTT', payload: null }
            
            S 1 Reply Last reply Apr 22, 2020, 10:47 PM Reply Quote 0
            • S Offline
              sdetweil @sgarg15
              last edited by Apr 22, 2020, 10:47 PM

              @sgarg15 if you open the developers window console, you should see the notifications being sent

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • S Offline
                sgarg15
                last edited by Apr 22, 2020, 10:50 PM

                @sdetweil the notification is being but it isnt doing anything to the monitor

                S 1 Reply Last reply Apr 22, 2020, 10:52 PM Reply Quote 0
                • S Offline
                  sdetweil @sgarg15
                  last edited by Apr 22, 2020, 10:52 PM

                  @sgarg15 so, the onscreen module should be configured to receive and process this, right?
                  ONSCREENMENU_PROCESS_ACTION

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  S 1 Reply Last reply Apr 22, 2020, 10:54 PM Reply Quote 0
                  • S Offline
                    sdetweil @sdetweil
                    last edited by Apr 22, 2020, 10:54 PM

                    @sdetweil these control modules are just so complex to setup.

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    S 1 Reply Last reply Apr 23, 2020, 12:09 AM Reply Quote 0
                    • S Offline
                      sgarg15 @sdetweil
                      last edited by Apr 23, 2020, 12:09 AM

                      @sdetweil Idk some people got this too work, and i have been looking for something like this for a long time,
                      @Sean When you get time please do have a look

                      Thanks and sorry for multiple pings

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 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