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 61.1k 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.
    • StoffbeuteluweS Offline
      Stoffbeuteluwe Project Sponsor @MoreLinux
      last edited by

      @MoreLinux I have MM running on Mac I think you have a RPI …maybe this can be my problem

      StoffbeuteluweS 1 Reply Last reply Reply Quote 0
      • StoffbeuteluweS Offline
        Stoffbeuteluwe Project Sponsor @Stoffbeuteluwe
        last edited by Stoffbeuteluwe

        @Stoffbeuteluwe is there anybody with a working module MMM-AlexaOnOff on Mac?

        test device is working …but no other device

        1 Reply Last reply Reply Quote 0
        • StoffbeuteluweS Offline
          Stoffbeuteluwe Project Sponsor @Stoffbeuteluwe
          last edited by

          @Stoffbeuteluwe anybody an idea?

          1 Reply Last reply Reply Quote 0
          • SubLim3S Offline
            SubLim3
            last edited by

            So IF I understand this log correctly, my mirror is receiving the Notification from my Alexa Device but the AlexaOnOff module is not operating correctly. Any suggestions?

            
            module.js:154 MMM-WatchDog received a module notification: REMOTE_ACTION from sender: MMM-AlexaOnOff
            module.js:154 MMM-Screencast received a module notification: REMOTE_ACTION from sender: MMM-AlexaOnOff
            module.js:154 MMM-GoogleMapsTraffic received a module notification: REMOTE_ACTION from sender: MMM-AlexaOnOff
            MMM-Remote-Control.js:43 Uncaught TypeError: console.log is not a function
                at Class.notificationReceived (MMM-Remote-Control.js:43)
                at sendNotification (main.js:95)
                at Object.sendNotification (main.js:502)
                at Class.sendNotification (module.js:368)
                at config.devices.forEach.d (MMM-AlexaOnOff.js:47)
                at Array.forEach (<anonymous>)
                at Class.socketNotificationReceived (MMM-AlexaOnOff.js:37)
                at module.js:246
                at r.<anonymous> (socketclient.js:25)
                at r.emit (index.js:83)
            
            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @SubLim3
              last edited by

              @SubLim3 edit the MMM-Remote-Control.js, and change all

              console.log
              

              To

              Log.log
              

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              SubLim3S 1 Reply Last reply Reply Quote 0
              • SubLim3S Offline
                SubLim3 @sdetweil
                last edited by SubLim3

                @sdetweil Is this something that happened because I updated MMM-Remote-Control and MMM-AlexaOnOff does not have an update? If so, would it be better to update AlexaOnOff to have console.log instead of log.log? That being said, I could not find Log.log in AlexaOnOff.js anyways.

                Are there other modules that will stop working if I change MMM_Remote_Control to Log.log? I saw it in there a couple of times and changed it. This did resolve the issue but I need to see if there are other Modules throwing red flags now.

                Thank you for the Help! Hopefully MMM-AlexaOnOff gets an update to help everyone else with 3rd Gen Alexa devices get discovered.

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @SubLim3
                  last edited by

                  @SubLim3 you are supposed to change console.log TO Log.log

                  So currently u will not find it.

                  Log.log is supposed to be used in the module.js file

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  SubLim3S 1 Reply Last reply Reply Quote 0
                  • SubLim3S Offline
                    SubLim3 @sdetweil
                    last edited by

                    @sdetweil Correct. There were 2 instances in the MMM-Remote-Control.js where I changed console.log to Log.log and this did resolve my issue. I was more curious to know if this was an issue with AlexaOnOff not having an update or if it was due to Remote-Control updating to a newer build.

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @SubLim3
                      last edited by

                      @SubLim3 that is a bug in remote control.

                      Don’t know how/when it might have got there

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      SubLim3S 1 Reply Last reply Reply Quote 0
                      • SubLim3S Offline
                        SubLim3 @sdetweil
                        last edited by

                        @sdetweil I did find this line commented out near the top of the MMM-Remote-Control.js which may be where they are working to resolve this.

                        // Log.log(this.name + " received a module notification: " + notification + " from sender: " + sender.name);
                        
                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 6
                        • 7
                        • 8
                        • 9
                        • 5 / 9
                        • 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