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 69.6k Views 16 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.
    • richland007R Offline
      richland007 @shbatm
      last edited by

      @shbatm All right so i got it to work :) i have not fully tested yet with all my modules (i have 37 of them) but i did it with one and it works.

      So this is what i did:

      1. I ran the FauxMo example just like you said and it activates on ports 11000 and 11001
        I than went on alexa.amazon.com from my desktop and that is where i did the device discovery that found those sample devices… from my local echo it would not find anything.
      2. I went on the MMM-AlexaOnOff.js file and changed the minimum required version to 2.4.1 which is what i have (others if they happen to look into this forum thread should change it according to theirs)
      3. I activated my sample 1 module on/off on my config.js and Alexa did find it but it did not do anything until i changed the name of the module to “module_6_MMM-horoscope” again just like you said above and than it worked :)

      One last question: Through MMM-AlexaOnOff i want to create another on/off device called “Mirror” utilizing MMM-Remote-Control, that on On will send the command MONITORON and on Off with send the command MONITOROFF So will this work…I have no clue but just by dissecting your code???

      { 
                    name: "Mirror",
                    on: { 
                      notification: "REMOTE_ACTION",
                      payload: { action: "MONITORON"}
                    },
                    off: { 
                      notification: "REMOTE_ACTION",
                      payload: { action: "MONITOROFF"}
                    },
      

      Do you think i will have any issues with 37 modules??
      I want to add them all on my config. js file before i run discovery on Alexa

      Thank you
      Denis

      1 Reply Last reply Reply Quote 1
      • S Offline
        shbatm Module Developer
        last edited by

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

        from my local echo it would not find anything.

        I just found this setting up some smart plugs last week – is your echo on a different account in your “Amazon Household” by any chance?

        “Mirror” utilizing MMM-Remote-Control, that on On will send the command MONITORON and on Off with send the command MONITOROFF So will this work…I have no clue but just by dissecting your code???

        Yes, that should work. Here’s mine verbatim:

                {
                    module: 'MMM-AlexaOnOff',
                    config: {
                        devices: [{
                            name: "Bookcase Screen",
                            on: {
                                notification: "REMOTE_ACTION",
                                payload: { action: 'MONITORON' }
                            },
                            off: {
                                notification: "REMOTE_ACTION",
                                payload: { action: 'MONITOROFF' }
                            },
                        },
                        //{ add your other devices here },
                        ]
                    }
                },
        

        Do you think i will have any issues with 37 modules??

        I haven’t stress tested it like that yet. You can certainly try it… From the FauxMo notes, you may have to run Discover a few times to find them all. Just make sure you don’t have anything running on the block of 37 ports.

        You can also try doing them in groups (you can send multiple notifications for each device’s on and off command, see earlier in this thread). Or use Profile Switcher or MMM-Carousel w/ Navigation (shbatm fork) to use “slides” of modules.

        1 Reply Last reply Reply Quote 0
        • D Offline
          djsunrise19
          last edited by djsunrise19

          Hi!

          Sounds like a perfect alexa module. Perhaps someone can help. Alexa can’t find my device. I followed the instructions - it’s not the first module I installed. I have to say, that I’m using ubuntu mate, because I have a mini-itx board with a Intel G4600, but that shouldn’t be the problem.

          I already deleted my devices and added them again - a few times. But there is no virtual Magic Mirror device.

          I corrected the netInterface variable to “enp3s0”, because I’m using LAN. In the newer ubuntu versions, there is no eth0.

          Here is my config:

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

          Ideas?

          Best regards
          Maurice

          1 Reply Last reply Reply Quote 0
          • S Offline
            shbatm Module Developer @shbatm
            last edited by

            @djsunrise19

            Please check the same things:

            1. Check your MagicMirror version, if it’s lower than v2.5.0 and you don’t want to upgrade, you can try changing line 21 in MMM-AlexaOnOff.js to match your version.
            2. You should see FauxMo service started. Listening on 192.168.x.x:21900 in your log file if the service started.
            3. You can try testing with the example:
                cd ~/MagicMirror/modules/MMM-AlexaOnOff/node_modules/fauxmojs/example
                node example.js
            

            You should see: started.. and then be able to discover ‘office light’ and ‘office fan’ on your Alexa.
            4. Make sure you try discovery from alexa.amazon.com, not just your Echo.

            D 1 Reply Last reply Reply Quote 1
            • D Offline
              djsunrise19 @shbatm
              last edited by

              @shbatm Thank you for responding!

              1. I have the newest version 2.6
              2. Yes, I can see that line while starting the mirror.
              3. I also can see this in my command line with the example.
              4. No devices found. With echo, Alexa app and web interface. Also no test “office light” or “office fan”.

              Weird?! Perhaps the netInterface problem?! Or should it work with “enp3s0”?

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                shbatm Module Developer @djsunrise19
                last edited by

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

                Or should it work with “enp3s0”?

                As long as the line in the log is returning your computers’ correct IP Address, enp3s0 appears to be working…

                Check netstat tulpn | grep 21900 and make sure the port is open. Otherwise check that your Alexa is on the same network/WiFi/account as you expect. If you’re getting the port open, then it’s something with the network or Alexa causing the problems.

                D 1 Reply Last reply Reply Quote 0
                • richland007R Offline
                  richland007
                  last edited by

                  @shbatm Ok so it works BUT it is only finding the last device on my list of the config.js file module entry when there are 36 others there. I tried discovery like 20 times from the website.
                  Should i try adding them one by one from the bottom up by commenting them out and adding them one by one …unless you got any other ideas :)

                  D

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    shbatm Module Developer
                    last edited by shbatm

                    @richland007 in the log is it showing all of the ports in the range open? (e.g. 21900-21936)?

                    richland007R 1 Reply Last reply Reply Quote 0
                    • richland007R Offline
                      richland007 @shbatm
                      last edited by

                      @shbatm Where do i see the logs??
                      When i use

                      netstat -tulpn | grep electron
                      

                      It only show that 1 one port 0.0.0.0:21900 Listen

                      D

                      S 1 Reply Last reply Reply Quote 0
                      • D Offline
                        djsunrise19 @shbatm
                        last edited by djsunrise19

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

                        netstat tulpn | grep 21900

                        Yes, IP-Adress is correct. From console everything looks like it should. Alexa is in the same network - wlan, mirror lan. I also have hue in here and the hue module on my mirror. Everything looks fine there. But actually, Alexa finds nothing.

                        Ich checked your command. After that, with sudo netstat -tulpnI see this:
                        0_1546684263939_86c66852-83ae-41d7-8499-8392004f63c3-image.png

                        Do I need the wemo skill or something like that?

                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          shbatm Module Developer @djsunrise19
                          last edited by

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

                          wemo skill

                          You shouldn’t need a separate skill with it. It looks like everything is working from the mirror side so I’m not sure what else to try…

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            shbatm Module Developer @richland007
                            last edited by

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

                            It only show that 1 one port 0.0.0.0:21900

                            It would be in pm2 logs mm or ~/.pm2/logs folder. I’ll check when I get a chance why it’s not opening more than 1 port.

                            richland007R 1 Reply Last reply Reply Quote 0
                            • richland007R Offline
                              richland007 @shbatm
                              last edited by

                              @shbatm I don not see anything out of the ordinary in my logs when i do pm2 logs mm definitely not 36 ports open in addition to 29100 when i go to location ~/.pm2/logs the log files are there in the directory but empty.

                              1 Reply Last reply Reply Quote 0
                              • S Offline
                                shbatm Module Developer
                                last edited by shbatm

                                So I was looking at the Fauxmojs project–what this module uses to handle the “devices”–and it looks like there are some issues with Gen 2 Echos not discovering the devices–but for most, the alexa.amazon.com website was working. I’ll keep an eye on that project–but at the moment, I don’t have anything else I can do from my end.

                                If you want to see some more detailed logs–start the MM manually with the following:

                                cd ~/MagicMirror
                                export DEBUG=sstp-server,deviceEndpoints,discoveryService
                                npm start
                                

                                @richland007 - I just tested my installation with 3 devices and, while it wasn’t showing all of the ports on the log line due to a bug, it was opening the ports (visible with netstat -tulpn | grep electron – see below). Just in case anyone is wondering–port 1900 is the discovery port.

                                tcp        0      0 0.0.0.0:21900           0.0.0.0:*               LISTEN      15738/electron.js
                                tcp        0      0 0.0.0.0:21901           0.0.0.0:*               LISTEN      15738/electron.js
                                tcp        0      0 0.0.0.0:21902           0.0.0.0:*               LISTEN      15738/electron.js
                                tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      15738/electron.js
                                udp        0      0 0.0.0.0:1900            0.0.0.0:*                           15738/electron.js
                                
                                richland007R D 2 Replies Last reply Reply Quote 0
                                • richland007R Offline
                                  richland007 @shbatm
                                  last edited by

                                  @shbatm How do i read more log lines not only tailing the last 15 from pm2 logs mm ??
                                  This works so nicely with the only one device that it is starting (turn on and turn off the whole mirror) it is awesome… i am so hurt that i am unable to have the rest of the “devices/modules” working.

                                  If you want to have a look at my long a%$ :) config.js entry for the MMM-AlexaOnOff module here it is ;

                                  {
                                      module: 'MMM-AlexaOnOff',
                                      config: {
                                          //netInterface: 'wlan0',
                                          //startPort: 15000,
                                          devices: [{ 
                                                name: "Clock Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_4_clock" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "modules_4_clock" }
                                                },
                                  			  name: "Calendar Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_5_calendar" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_5_calendar" }
                                                },
                                                            name: "Denis Calendar",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_6_calendar" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_6_calendar" }
                                                },
                                  			  name: "Compliments Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_7_compliments" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_7_compliments" }
                                                },
                                  			  name: "Gas Prices Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_8_MMM-Gas" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_8_MMM-Gas" }
                                                },
                                  			  name: "Instagram Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_9_MMM-Instagram" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_9_MMM-Instagram" }
                                                },
                                  			  name: "Page Indicator Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_11_MMM-page-indicator" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_11_MMM-page-indicator" }
                                                },
                                  			  name: "Temperature Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_12_MMM-DHT-Sensor" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_12_MMM-DHT-Sensor" }
                                                },
                                  			  name: "Weather Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_13_MMM-NOAA3" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_13_MMM-NOAA3" }
                                                },
                                  			  name: "System Stats Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_14_MMM-SystemStats" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_14_MMM-SystemStats" }
                                                },
                                  			  name: "Movie Listings Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_15_MMM-MovieListings" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_15_MMM-MovieListings" }
                                                },
                                  			  name: "Thermostat Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_16_MMM-Ecobee" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_16_MMM-Ecobee" }
                                                },
                                  			  name: "Alexa Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_17_MMM-AlexaPi" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_17_MMM-AlexaPi" }
                                                },
                                  			  name: "Exchange Rate Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_20_MMM-LICE" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_20_MMM-LICE" }
                                                },
                                  			  name: "Stocks Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_21_stocks" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_21_stocks" }
                                                },
                                  			  name: "Traffic Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_22_MMM-GoogleMapsTraffic" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_22_MMM-GoogleMapsTraffic" }
                                                },
                                  			  name: "My Commute Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_23_MMM-MyCommute" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_23_MMM-MyCommute" }
                                                },
                                  			  name: "Camera Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_24_MMM-iFrame" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_24_MMM-iFrame" }
                                                },
                                  			  name: "RSS Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_25_MMM-RSS-FEED" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_25_MMM-RSS-FEED" }
                                                },
                                  			  name: "Fitbit Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_26_MMM-fitbit" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_26_MMM-fitbit" }
                                                },
                                  			  name: "Google Fit Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_27_MMM-GoogleFit" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_27_MMM-GoogleFit" }
                                                },
                                  			  name: "Horoscope Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_28_MMM-horoscope" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_28_MMM-horoscope" }
                                                },
                                  			  name: "Phone Notification Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_29_phone_notification" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_29_phone_notification" }
                                                },
                                  			  name: "TV Stream Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_30_MMM-RTSPStream" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_30_MMM-RTSPStream" }
                                                },
                                  			  name: "Tiles Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_31_iFrame" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_31_iFrame" }
                                                },
                                  			  name: "Spotify Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_32_MMM-NowPlayingOnSpotify" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_32_MMM-NowPlayingOnSpotify" }
                                                },
                                  			  name: "Events Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_33_MMM-Events" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_33_MMM-Events" }
                                                },
                                  			  name: "Nasa Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_34_MMM-NASA" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_34_MMM-NASA" }
                                                },
                                  			  name: "Logo Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_35_MMM-SimpleLogo" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_35_MMM-SimpleLogo" }
                                                },
                                  			  name: "Random Quotes Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_36_random_quotes" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_36_random_quotes" }
                                                },
                                  			  name: "Bible Verse Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_37_MMM-DailyBibleVerse" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_37_MMM-DailyBibleVerse" }
                                                },
                                  			  name: "Dropbox Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_39_MMM-DropboxWallpaper" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_39_MMM-DropboxWallpaper" }
                                                },
                                  			  name: "Weather Background Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_40_MMM-Dummy" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_40_MMM-Dummy" }
                                                },
                                  			  name: "News Module",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_43_MMM-Jnews" }
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_43_MMM-Jnews" }
                                                },
                                  	      name: "Eva's Modules",
                                                on: [
                                                    { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_6_calendar" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_14_MMM-SystemStats" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_21_stocks" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_25_MMM-RSS-FEED" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_26_MMM-fitbit" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_29_phone_notification" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_30_MMM-RTSPStream" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_31_iFrame" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_32_MMM-NowPlayingOnSpotify" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_34_MMM-NASA" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_43_MMM-Jnews" }
                                                }
                                                ],
                                                off: [
                                                    { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_6_calendar" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_14_MMM-SystemStats" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_21_stocks" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_25_MMM-RSS-FEED" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_26_MMM-fitbit" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_29_phone_notification" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_30_MMM-RTSPStream" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_31_iFrame" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_32_MMM-NowPlayingOnSpotify" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_34_MMM-NASA" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_43_MMM-Jnews" }
                                                }
                                                ],
                                  	      name: "Denis Modules",
                                                on: [
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_27_MMM-GoogleFit" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_9_MMM-Instagram" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "HIDE", module: "module_39_MMM-DropboxWallpaper" }
                                                }
                                  			  ],
                                                off: [
                                  			      {
                                  				  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_27_MMM-GoogleFit" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "Show", module: "module_9_MMM-Instagram" }
                                                },
                                  			      { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "SHOW", module: "module_39_MMM-DropboxWallpaper" }
                                                }
                                                    ], 
                                                name: "Mirror",
                                                on: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "MONITORON"}
                                                },
                                                off: { 
                                                  notification: "REMOTE_ACTION",
                                                  payload: { action: "MONITOROFF"}
                                                },     
                                  			  
                                          }]
                                      }
                                  }
                                  

                                  It is only loading the last “device” named Mirror for (an all on/off feature) on port 21900.

                                  I tried changing the port start number to something else to no avail, i tried commenting out all but the last 2 of the devices still no luck…it only starts 1.

                                  Edit: I spoke too early on singing it praises if you give a command ( in my case all i have is one that makes the monitor go off and than on after you ask Alexa to turn Mirror On) after 2-3 minutes everything freezes and you absolutely can not interact with the mirror completely neither from putty /ssh or vnc (ctrl/alt/del) or keyboard input only a hard power reset is the solution it has happened twice. I did try it one last time before posting this, and right after “Alexa turn Mirror On” i hit ctrl+Q to quit MM and see what the CPU values were and they were right around 70% but they went immediately down to 1% and nothing happened no more freezing of the Rpi…weird!!! I really need to get you some more detailed logs

                                  Please help me solve this so i can turn my modules on and off
                                  Thank you for your prompt replies and patience
                                  Denis

                                  S 1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    djsunrise19 @shbatm
                                    last edited by

                                    @shbatm Thanks. I’m using an echo dot 3rd generation. Sadly, I have to wait. There seems to be no problems with your module / the mirror / network.

                                    Good work!

                                    S 1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      shbatm Module Developer @richland007
                                      last edited by

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

                                      How do i read more log lines not only tailing the last 15 from pm2 logs mm ??

                                      They should be in ~/.pm2/logs by default. You can also stop the pm2 version and run the mirror manually using the instructions above.

                                      I’ll let you know if I can replecate the CPU issue, but that’s very strange. I haven’t seen that.

                                      Make sure you update to the latest version of the module to see the correct line, but other than that I don’t know why its not working for more than one device. At this point it sounds like a fauxmojs issue… You can always open an issue on their GitHub repo.

                                      1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        shbatm Module Developer @djsunrise19
                                        last edited by

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

                                        Thanks. I’m using an echo dot 3rd generation. Sadly, I have to wait. There seems to be no problems with your module / the mirror / network.

                                        I’d suggest posting a comment on the fauxmojs issue–maybe it will prompt them that more people are waiting for a fix. It looks like the python version has been fixed, so I’m sure it’s just a matter of them getting around to it.

                                        1 Reply Last reply Reply Quote 1
                                        • S Offline
                                          shbatm Module Developer
                                          last edited by

                                          @richland007 – So I just noticed something interesting: I tried adding multiple devices, and running “Discover my devices” from my echo. Alexa said she didn’t find any new devices, but when I looked in the device list on alexa.amazon.com, she had already found the other devices. Maybe try deleting all of the Wemo devices on your Alexa app and then retrying discovery?

                                          richland007R 2 Replies Last reply Reply Quote 0
                                          • richland007R Offline
                                            richland007 @shbatm
                                            last edited by

                                            @shbatm i will try it again but i think i did it once or twice deleting all my devices and had her discover them back up to no avail
                                            D

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 2 / 5
                                            • 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