Read the statement by Michael Teeuw here.
MMM-AlexaControl or MMM-AlexaOn/Off setup
-
@sdetweil tried that still no luck
-
@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 fromudpServer.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'));
-
@sdetweil my internet went of for a bit I’ll do this asap and let you know!
-
@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)
-
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.
-
@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.
-
@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?
-
@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
-
This post is deleted! -
Spotify is disabled, starting port at default and the MM startup messenges are:
magicmirror@2.12.0 start /home/pi/MagicMirror
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[2020-08-10 10:06:51.201] [LOG] Starting MagicMirror: v2.12.0
[2020-08-10 10:06:51.214] [LOG] Loading config …
[2020-08-10 10:06:51.228] [LOG] Loading module helpers …
[2020-08-10 10:06:51.232] [LOG] No helper found for module: clock.
[2020-08-10 10:06:51.360] [LOG] Initializing new module helper …
[2020-08-10 10:06:51.361] [LOG] Module helper loaded: updatenotification
[2020-08-10 10:06:51.362] [LOG] No helper found for module: currentweather.
[2020-08-10 10:06:51.363] [LOG] No helper found for module: weatherforecast.
[2020-08-10 10:06:52.187] [LOG] Initializing new module helper …
[2020-08-10 10:06:52.188] [LOG] Module helper loaded: MMM-AlexaControl
[2020-08-10 10:06:52.194] [LOG] Initializing new module helper …
[2020-08-10 10:06:52.195] [LOG] Module helper loaded: MMM-OnScreenMenu
[2020-08-10 10:06:52.196] [LOG] All module helpers loaded.
[2020-08-10 10:06:52.535] [LOG] Starting server on port 8080 …
[2020-08-10 10:06:52.544] [INFO] You’re using a full whitelist configuration to allow for all IPs
[2020-08-10 10:06:52.556] [LOG] Server started …
[2020-08-10 10:06:52.557] [LOG] Connecting socket for: updatenotification
[2020-08-10 10:06:52.559] [LOG] Connecting socket for: MMM-AlexaControl
[2020-08-10 10:06:52.560] [LOG] MMM-AlexaControl helper, started…
[2020-08-10 10:06:52.561] [LOG] Connecting socket for: MMM-OnScreenMenu
[2020-08-10 10:06:52.562] [LOG] Sockets connected & modules started …
[2020-08-10 10:06:52.751] [LOG] Launching application.
[2020-08-10 10:06:55.681] [LOG] monitorToggle requested
[2020-08-10 10:06:55.694] [LOG] Adding multicast membership for 127.0.0.1
[2020-08-10 10:06:55.695] [LOG] Adding multicast membership for 10.0.0.2
[2020-08-10 10:06:55.697] [LOG] server is listening on 11000
[2020-08-10 10:06:55.700] [LOG] server is listening on 11001
[2020-08-10 10:06:55.701] [LOG] server is listening on 11002
[2020-08-10 10:06:55.702] [LOG] server is listening on 11005
[2020-08-10 10:06:55.741] [INFO] Checking git for module: MMM-AlexaControl
[2020-08-10 10:06:55.816] [INFO] Checking git for module: MMM-OnScreenMenu
[2020-08-10 10:07:02.910] [LOG] Shutting down server…
[2020-08-10 10:07:02.911] [LOG] Stopping module helper: updatenotification
[2020-08-10 10:07:02.912] [LOG] Stopping module helper: MMM-AlexaControl
[2020-08-10 10:07:02.913] [LOG] Stopping module helper: MMM-OnScreenMenuHere is the config.js :
{ module: "clock", position: "top_left", config: { // The config property is optional. // See 'Configuration options' for more information. displaySeconds: false } }, { module: "updatenotification", position: "top_bar" }, /*{ module: "compliments", position: "lower_third" },*/ { module: "currentweather", position: "top_right", config: { location: "New York", locationID: "xxxxxx", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "xxxxxxxxxxxxxxxxxxxxxx", showWindDirectionAsArrow: true, showHumidity: true, useKMPHwind: true } }, { module: "weatherforecast", position: "top_right", header: "Weather Forecast", config: { location: "New York", locationID: "xxxxx", //ID from http://bulk.openweathermap.org/sample/city.list.json.gz; unzip the gz file and find your city appid: "xxxxxxxxxxxxxxxxxxxxxxxxx", showRainAmount: true } }, { module: 'MMM-AlexaControl', position: 'middle_center', config:{ image: true, pm2ProcessName: "mm", vcgencmd: true, height: "100", width: "100", deviceName: "Spiegel" } }, { module: "MMM-Spotify", disabled: true, position: "bottom_left", // "bottom_bar" or "top_bar" for miniBar config: { debug: false, // debug mode style: "default", // "default" or "mini" available (inactive for miniBar) control: "default", accountDefault: 0, // default account number, attention : 0 is the first account updateInterval: 1000, // update interval when playing idleInterval: 2000, // update interval on idle onStart: null, // disable onStart feature with `null` deviceDisplay: "Listening on", // text to display in the device block (default style only) allowDevices: [], //If you want to limit devices to display info, use this. // allowDevices: ["RASPOTIFY", "My iPhoneX", "My Home speaker"], miniBarConfig: { album: true, // display Album name in miniBar style scroll: true, // scroll title / artist / album in miniBar style logo: true, // display Spotify logo in miniBar style } } }, { module: 'MMM-OnScreenMenu', position: 'bottom_right', /* Valid positions: 'top_right', 'top_left', 'bottom_right', 'bottom_left' */ config: { touchMode: true, enableKeyboard: true, // ... see more options below } },
how can you enter commands while the mirror is running?
they are all in the same wifi because i disabled 5Ghz.
the sudo netstat -a -p | grep 1900 shows nothing while the mirror isnt running.
i allowed all ipś and tried it with that page indicator and page module.
does it normal work as standalone or do i need more modules?