MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

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

    System
    13
    81
    17559
    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
      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
        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
        • richland007
          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
            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)?

            richland007 1 Reply Last reply Reply Quote 0
            • richland007
              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
                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
                  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
                    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.

                    richland007 1 Reply Last reply Reply Quote 0
                    • richland007
                      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
                        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
                        
                        richland007 D 2 Replies Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 7
                        • 8
                        • 9
                        • 4 / 9
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy