Read the statement by Michael Teeuw here.
[MMM-AlexaOnOff] Simple Mirror Control from External Home Assistant (Alexa/Google Home/HASS.io)
-
Please check the same things:
- 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.
- You should see
FauxMo service started. Listening on 192.168.x.x:21900
in your log file if the service started. - 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. -
@shbatm Thank you for responding!
- I have the newest version 2.6
- Yes, I can see that line while starting the mirror.
- I also can see this in my command line with the example.
- 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”?
-
@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. -
@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
-
@richland007 in the log is it showing all of the ports in the range open? (e.g. 21900-21936)?
-
@shbatm Where do i see the logs??
When i usenetstat -tulpn | grep electron
It only show that 1 one port 0.0.0.0:21900 Listen
D
-
@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 -tulpn
I see this:
Do I need the wemo skill or something like that?
-
@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…
-
@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. -
@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.