• 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.

[MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)

Scheduled Pinned Locked Moved System
81 Posts 13 Posters 37.2k Views
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.
  • R
    ReRoPa1904
    last edited by Dec 16, 2018, 8:21 PM

    Can confirm that it works. Great Job. Thanks so much!!!

    1 Reply Last reply Reply Quote 0
    • R
      richland007
      last edited by Dec 28, 2018, 8:51 PM

      @shbatm Hey there thank you again for this module … i opened this thread here
      https://forum.magicmirror.builders/topic/9326/an-additional-config-js-per-say
      I am trying to install MMM-AlexaOnOff but i have a lot of modules that i will have to write lines about on and off and than some combination on and offs (that will turn the modules for my wife on and hide mine and vice versa) so one could imagine how long that module config in config.js is going to get.

      @bhepler had some ideas on the last post of that thread similar to the default “compliments” module that may be implemented to reference the MMM-AlexaOnOff config.js entry as a separate file for some of us with lots of modules.

      Can you help me please on how i can modify my settings so i can achieve this.
      in the mean time i am about done referencing all my modules on the regular way of adding this to config.js and will give that long file a try where MMM-AlexaOnOff confi part alone is some 400 lines in my case LOL :)

      Thank you and happy new year’s
      Denis

      1 Reply Last reply Reply Quote 0
      • R
        richland007
        last edited by Dec 29, 2018, 7:34 AM

        @shbatm Hey there happy weekend :)
        I installed the module and updated the config.js file but Alexa is unable to find any new devices in my case.
        What am i doing wrong ??
        I did git clone to my modules folder (as i have done with all other modules) than cd to MMM-AlexaOnOff than npm install after install i added the module into the config .js but when i ask Alexa form my Echo dot to discover new devices it says no new devices were found??
        My Rpi is connected via wifi to my network.

        As i have said before i do have a large number of modules but i will try it with just only one as well and see whats up.

        Please let me know what my next step should be
        any help is greatly appreciated
        thank you again
        D

        M 1 Reply Last reply Dec 29, 2018, 10:49 AM Reply Quote 0
        • M
          MoreLinux @richland007
          last edited by MoreLinux Dec 29, 2018, 10:50 AM Dec 29, 2018, 10:49 AM

          @richland007 I had the same, but after deleting all the devices in the Alexa app, all my devices were found again.

          1 Reply Last reply Reply Quote 0
          • R
            richland007
            last edited by Dec 29, 2018, 7:25 PM

            @shbatm @MoreLinux I tried doing only one module and deleteing everything and re discovering again but it did not find any new devices … i am not getting what am i doing wrong but i am sure it is something on my end
            Is there a way and where do i look for errors??
            can i see someones config .js portion of the module??

            thank you in advance
            D

            M 1 Reply Last reply Dec 29, 2018, 9:38 PM Reply Quote 0
            • M
              MoreLinux @richland007
              last edited by Dec 29, 2018, 9:38 PM

              @richland007 The devices in the config.js, did they have the same name as before the trouble started??

              When yes, than Alexa does a discovery, but only finds known devices. That is what happened to me after I tested the module on my test-mirror and than re-did every step on my prod-mirror.

              After deleting the found wemo devices in the Alexa app, I did a “Alexa, find my devices” and all the devices were found.

              R 1 Reply Last reply Dec 30, 2018, 6:23 PM Reply Quote 0
              • R
                richland007 @MoreLinux
                last edited by Dec 30, 2018, 6:23 PM

                @morelinux See my Alexa is not finding any wemo devices at all from the beginning every time i asked to discover devices after installing the module no wemo’s were found.
                i have plenty of other home automation devices but no wemo’s or virtual wemo’s in this case.

                M 1 Reply Last reply Dec 30, 2018, 10:53 PM Reply Quote 0
                • M
                  MoreLinux @richland007
                  last edited by Dec 30, 2018, 10:53 PM

                  @richland007 Are the mirror and Alexa on the same network??

                  R 1 Reply Last reply Dec 31, 2018, 5:44 AM Reply Quote 1
                  • R
                    richland007 @MoreLinux
                    last edited by Dec 31, 2018, 5:44 AM

                    @morelinux yes they sure are.
                    when the MM starts i do not get any errors on the MMM-AlexaOnOff or anything
                    I do not know if there is a debug mode for the module…i am stuck
                    please @shbatm help me
                    I also uninstall and re -installed it from the beginning and nothing changed.
                    I am dumb founded

                    D

                    1 Reply Last reply Reply Quote 0
                    • S
                      shbatm Module Developer
                      last edited by Jan 1, 2019, 6:41 PM

                      @richland007

                      First, as requested, here is an example config section:

                      {
                         module: 'MMM-AlexaOnOff',
                         config: {
                            devices: [{
                               name: "Magic Mirror",
                               on: {
                                  notification: "ONSCREENMENU_PROCESS_ACTION",
                                  payload: {
                                     actionName: 'monitorOn'
                                  }
                               },
                               off: {
                                  notification: "ONSCREENMENU_PROCESS_ACTION",
                                  payload: {
                                     actionName: 'monitorOff'
                                  }
                               },
                            }]
                         }
                      },
                      

                      When you start MagicMirror, you should see a line like this in your log file. If you don’t, then it’s a problem with the module installation. Make sure you’ve run npm install from inside the MMM-AlexaOnOff folder.

                      FauxMo service started. Listening on 192.168.1.100:21900
                      

                      And netstat -tulpn | grep electron should show something like this:

                      tcp        0      0 0.0.0.0:21900           0.0.0.0:*               LISTEN      3554/electron
                      tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      3554/electron
                      

                      Make sure your mirror and Alexa are on the same Wi-Fi. Make sure you delete any duplicate devices in your Alexa app or at https://alexa.amazon.com/spa/index.html#appliances then restart Discovery.

                      R 1 Reply Last reply Jan 2, 2019, 1:51 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 8
                      • 9
                      • 2 / 9
                      • 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