• 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-AlexaControl or MMM-AlexaOn/Off setup

Scheduled Pinned Locked Moved Troubleshooting
94 Posts 4 Posters 40.0k Views 5 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.
  • D Offline
    dave_ @sdetweil
    last edited by Aug 4, 2020, 4:00 PM

    @sdetweil https://photos.app.goo.gl/SuvM64zPpyQCZjQT8

    S 1 Reply Last reply Aug 4, 2020, 4:08 PM Reply Quote 0
    • S Away
      sdetweil @dave_
      last edited by Aug 4, 2020, 4:08 PM

      @dave_ ok, as expected… the extra image u posted this morning was from some other time

      now, if you do alexa discover devices (phone app is more (bottom right), other, discover devices)

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      D 1 Reply Last reply Aug 4, 2020, 4:13 PM Reply Quote 0
      • D Offline
        dave_ @sdetweil
        last edited by Aug 4, 2020, 4:13 PM

        @sdetweil tried that still no luck

        S 1 Reply Last reply Aug 4, 2020, 4:20 PM Reply Quote 0
        • S Away
          sdetweil @dave_
          last edited by Aug 4, 2020, 4:20 PM

          @dave_ ok, need to edit a file to turn on some debugging

          nano ~/MagicMirror/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js

          change lines 92-94, the console.log lines below
          change from

          	udpServer.on('message', (msg, rinfo) => {
          		//debug(`<< server got: ${msg} from ${rinfo.address}:${rinfo.port}`);
          		//console.log('Search request from ' + util.inspect(rinfo));
          		//console.log(getMask(rinfo.address, '255.255.255.0'));
          

          to

          	udpServer.on('message', (msg, rinfo) => {
          		console.log(`<< server got: ${msg} from ${rinfo.address}:${rinfo.port}`);       
          		console.log('Search request from ' + util.inspect(rinfo));
          		console.log(getMask(rinfo.address, '255.255.255.0'));
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          D 1 Reply Last reply Aug 4, 2020, 4:22 PM Reply Quote 0
          • D Offline
            dave_ @sdetweil
            last edited by Aug 4, 2020, 4:22 PM

            @sdetweil my internet went of for a bit I’ll do this asap and let you know!

            S 1 Reply Last reply Aug 5, 2020, 4:42 PM Reply Quote 0
            • S Away
              sdetweil @dave_
              last edited by sdetweil Aug 5, 2020, 4:44 PM Aug 5, 2020, 4:42 PM

              @dave_ I also added another line of debug

              let response = function(ipaddr) {
              	let deviceresp = [];
              	let responses = [];
              	for(let i = 0; i < = devices.length - 1; i++) {
              		console.log('responding for port='+devices[i].port)   // this line
              
              

              and I see this output from the MM console , from alexa discover devices

              [2020-08-05 11:31:33.543] [LOG]    << server got: M-SEARCH * HTTP/1.1
              HOST: 239.255.255.250:1900
              MAN: "ssdp:discover"
              MX: 1
              ST: urn:dial-multiscreen-org:service:dial:1
              USER-AGENT: Chromium/78.0.3904.108 Linux
              
               from 192.168.2.126:57706 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:93 Socket.<anonymous>)
              [2020-08-05 11:31:33.545] [LOG]    Search request from { address: '192.168.2.126', family: 'IPv4', port: 57706, size: 167 } (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:94 Socket.<anonymous>)
              [2020-08-05 11:31:33.548] [LOG]    192.168.2.0 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:95 Socket.<anonymous>)
              [2020-08-05 11:31:33.550] [LOG]    responding for port=16000 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response)
              [2020-08-05 11:31:33.552] [LOG]    responding for port=16001 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response)
              [2020-08-05 11:31:33.553] [LOG]    responding for port=16002 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response)
              [2020-08-05 11:31:33.553] [LOG]    responding for port=16003 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response)
              [2020-08-05 11:31:33.553] [LOG]    responding for port=16004 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response)
              [2020-08-05 11:31:33.553] [LOG]    responding for port=16005 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response)
              
              (electron:23027): GLib-GIO-CRITICAL **: 11:31:34.172: g_dbus_proxy_new: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
              [2020-08-05 11:31:34.549] [LOG]    << server got: M-SEARCH * HTTP/1.1
              HOST: 239.255.255.250:1900
              MAN: "ssdp:discover"
              MX: 1
              ST: urn:dial-multiscreen-org:service:dial:1
              USER-AGENT: Chromium/78.0.3904.108 Linux
              
               from 192.168.2.126:57706 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:93 Socket.<anonymous>)
              [2020-08-05 11:31:34.549] [LOG]    Search request from { address: '192.168.2.126', family: 'IPv4', port: 57706, size: 167 } (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:94 Socket.<anonymous>)
              [2020-08-05 11:31:34.549] [LOG]    192.168.2.0 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:95 Socket.<anonymous>)
              [2020-08-05 11:31:34.550] [LOG]    responding for port=16000 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response)
              [2020-08-05 11:31:34.551] [LOG]    responding for port=16001 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response)
              [2020-08-05 11:31:34.551] [LOG]    responding for port=16002 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response)
              [2020-08-05 11:31:34.551] [LOG]    responding for port=16003 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response)
              [2020-08-05 11:31:34.551] [LOG]    responding for port=16004 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response)
              [2020-08-05 11:31:34.552] [LOG]    responding for port=16005 (/home/sam/MagicMirror.2.11/modules/MMM-AlexaControl/node_modules/node-fauxmo/src/SSDPService.js:18 response)
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • M Offline
                Michael Schw.
                last edited by Michael Schw. Aug 9, 2020, 8:54 PM Aug 9, 2020, 8:53 PM

                Hey…
                I have the same Issue and i will do every step i found here tomorrow.
                I tried everything i found on the Internet but i still couldnt make it work.
                You have any new knowledge here? I even heard somewhere that the fauxmo code wont work anymore because Alexa cant find the emulated Wemo Devices anymore. Btw Alexa Controll starts at port 11000 but when i set it to 1900 it still doesnt work.

                I am currently at the step with disabling Spotify which didnt solve my Problem. So tomorrow i will try to make my Config.js file readable (because it looks terrible at the moment) and then i will post it here.

                All i wanna do is to toggle my Display with Alexa…i dont need to switch Pages or hide modules. I just wanna turn it on and off. I found every Solution for every Problem i had myself except for this Problem.

                S 1 Reply Last reply Aug 9, 2020, 8:58 PM Reply Quote 0
                • S Away
                  sdetweil @Michael Schw.
                  last edited by Aug 9, 2020, 8:58 PM

                  @Michael-Schw I just added another system the other day without any issue.
                  I do have an original echo, a number of echo dots and one echo show.

                  but did the discovery from the Alexa app on my phone.

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  M 1 Reply Last reply Aug 9, 2020, 9:18 PM Reply Quote 0
                  • M Offline
                    Michael Schw. @sdetweil
                    last edited by Michael Schw. Aug 9, 2020, 9:20 PM Aug 9, 2020, 9:18 PM

                    @sdetweil i tried it with the app on my fire tablet, the echo plus 2nd gen and the echo dot 3rd gen. The first gen echos are still working but the newer ones dont wanna work. So maybe we can figure something out or plan b would be a sonoff switch for the tv display . But maybe there is a way without the switch. Witch gen are your echos?

                    S 1 Reply Last reply Aug 9, 2020, 9:41 PM Reply Quote 0
                    • S Away
                      sdetweil @Michael Schw.
                      last edited by sdetweil Aug 9, 2020, 9:47 PM Aug 9, 2020, 9:41 PM

                      @Michael-Schw my echo is a gen 1, and dots are gen 2.

                      do u see the messages like I listed at mm startup? (from 5th post to this topic) also, would be startPort:19000 not 1900.

                      port 1900 is hard coded to the ssdp discovery port, used by Alexa to find devices

                      if u see the messages, and add the debugging from above, do u see the discovery request?

                      show me the mm startup.messages

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      M 1 Reply Last reply Aug 10, 2020, 1:11 PM Reply Quote 0
                      • 1
                      • 2
                      • 6
                      • 7
                      • 8
                      • 9
                      • 10
                      • 8 / 10
                      8 / 10
                      • First post
                        73/94
                        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