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-Hue-Lights - new module for your Philips Hue lights!

    Scheduled Pinned Locked Moved Utilities
    87 Posts 20 Posters 71.7k Views 19 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.
    • michael5rM Offline
      michael5r Module Developer @craig859
      last edited by

      @craig859 said in MMM-Hue-Lights - new module for your Philips Hue lights!:

      Even after using Hue Developer to access the API debug/clip.html and generate a user string the Magic Mirror displays “please add your hue bridge IP and user to MagicMirror config.js file.”
      Has anyone seen anything new on this? Is there a change in the authentication for Hue, maybe something that broke this module?

      There shouldn’t be - the Hue API hasn’t been updated in a long time, and both my mirrors are running just fine with this module.

      1 Reply Last reply Reply Quote 0
      • michael5rM Offline
        michael5r Module Developer @Cain
        last edited by

        @Cain said in MMM-Hue-Lights - new module for your Philips Hue lights!:

        i also found that i had to change folder name from

        MMM-Hue-Lights to mmm-hue-lights - not sure why but i did.

        After the 10mintues when it stops workings. can you then access the debug using the website? Only when the error occurs.

        also have you done the sudo apt-get update && sudo apt-get full-upgrade ?

        The folder should be mmm-hue-lights - it’s case-sensitive, so MMM-Hue-Lights wouldn’t work.

        F 1 Reply Last reply Reply Quote 0
        • michael5rM Offline
          michael5r Module Developer @jasim
          last edited by

          @jasim said in MMM-Hue-Lights - new module for your Philips Hue lights!:

          I installed mmm-hue-lights by default and get the following error message after 5 minutes. Hue API ERROR: Error: Read ECONNRESET. I ask for help with this problem. I’ve already reinstalled everything and it doesn’t help.
          2020-04-24 13.24.13.jpg

          Have you tried changing the updateInterval setting to be a higher number than the default? I would suggest trying 10 mins - eg. setting it to 600000

          1 Reply Last reply Reply Quote 0
          • michael5rM Offline
            michael5r Module Developer
            last edited by michael5r

            I’ve released a new 1.4.0 version of this module that will hopefully help with the refresh issue - it now automatically reschedules an update, no matter whether there’s an error or not. Thanks to @ulrichwisser for pushing this fix.

            Please download the version and see if that solves your issues.

            1 Reply Last reply Reply Quote 0
            • J Offline
              jasim
              last edited by

              I updated the module and tested it for several hours. The module fails after 45 - 60 minutes (API ERROR) and no longer works.
              And not only that, the entire mirror no longer works.
              After removing the module from the mirror, the mirror works again.

              michael5rM 1 Reply Last reply Reply Quote 0
              • michael5rM Offline
                michael5r Module Developer @jasim
                last edited by

                @jasim said in MMM-Hue-Lights - new module for your Philips Hue lights!:

                I updated the module and tested it for several hours. The module fails after 45 - 60 minutes (API ERROR) and no longer works.
                And not only that, the entire mirror no longer works.
                After removing the module from the mirror, the mirror works again.

                Can you try running your mirror in dev mode and post some logs?

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  jasim @michael5r
                  last edited by

                  @michael5r said in MMM-Hue-Lights - new module for your Philips Hue lights!:

                  @jasim said in MMM-Hue-Lights - new module for your Philips Hue lights!:

                  I updated the module and tested it for several hours. The module fails after 45 - 60 minutes (API ERROR) and no longer works.
                  And not only that, the entire mirror no longer works.
                  After removing the module from the mirror, the mirror works again.

                  Can you try running your mirror in dev mode and post some logs?

                  Would you tell me what to do, I am a layperson and not a professional.

                  michael5rM 1 Reply Last reply Reply Quote 0
                  • michael5rM Offline
                    michael5r Module Developer @jasim
                    last edited by

                    @jasim said in MMM-Hue-Lights - new module for your Philips Hue lights!:

                    @michael5r said in MMM-Hue-Lights - new module for your Philips Hue lights!:

                    @jasim said in MMM-Hue-Lights - new module for your Philips Hue lights!:

                    I updated the module and tested it for several hours. The module fails after 45 - 60 minutes (API ERROR) and no longer works.
                    And not only that, the entire mirror no longer works.
                    After removing the module from the mirror, the mirror works again.

                    Can you try running your mirror in dev mode and post some logs?

                    Would you tell me what to do, I am a layperson and not a professional.

                    Instead of running npm run start in your Magic Mirror folder to start the mirror, try running npm start dev which will open a browser console next to your mirror instance. Then look for any errors (marked in red) in there.

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      jasim
                      last edited by

                      @michael5r said in MMM-Hue-Lights - new module for your Philips Hue lights!:

                      npm start dev

                      Screenshot 2020-05-21 17.30.37.png

                      michael5rM 1 Reply Last reply Reply Quote 0
                      • michael5rM Offline
                        michael5r Module Developer @jasim
                        last edited by

                        @jasim You need to be in the folder of your Magic Mirror installation when you run these commands.

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          jasim
                          last edited by

                          @michael5r said in MMM-Hue-Lights - new module for your Philips Hue lights!:

                          npm start dev

                          Screenshot 2020-05-21 18.43.39.png

                          michael5rM 1 Reply Last reply Reply Quote 0
                          • michael5rM Offline
                            michael5r Module Developer @jasim
                            last edited by

                            @jasim You already have another instance of Magic Mirror running (that’s the EADDRINUSE error) - you’ll need to stop that before running npm start dev. How do you normally start/stop your mirror?

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              jasim
                              last edited by jasim

                              Ich starte den Spiegel automatisch wenn der pi hochfährt.
                              Wie stoppe ich EADDRINUSE Fehler.

                              michael5rM 1 Reply Last reply Reply Quote 0
                              • michael5rM Offline
                                michael5r Module Developer @jasim
                                last edited by

                                @jasim Yeah, but you must have set it up at some time - for instance, I use pm2 on my mirrors, so I can do pm2 stop mm to stop my magic mirror instance.

                                1 Reply Last reply Reply Quote 0
                                • J Offline
                                  jasim
                                  last edited by

                                  Was soll ich machen ?

                                  michael5rM 1 Reply Last reply Reply Quote 0
                                  • michael5rM Offline
                                    michael5r Module Developer @jasim
                                    last edited by

                                    @jasim Sorry, I don’t speak German - can you please post in english?

                                    1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      jasim
                                      last edited by

                                      @jasim said in MMM-Hue-Lights - new module for your Philips Hue lights!:

                                      Was soll ich machen?

                                      Sorry, what should I do?

                                      1 Reply Last reply Reply Quote 0
                                      • F Offline
                                        fordi @michael5r
                                        last edited by

                                        @michael5r You have just made my day. After messing about for the best part of a day trying to get the module working, your post has made this module spring to life! I installed via Magic Mirror Package Manager and the folder name had upper and lower case naming. Im going to get a beer now!! lol…

                                        1 Reply Last reply Reply Quote 0
                                        • Feedy88F Offline
                                          Feedy88
                                          last edited by Feedy88

                                          Hey guys,

                                          first off, great module @michael5r, thanks a lot. Unfortunately I have issues getting it to work as soon as I use the displayFilter attribute. Using the default works perfectly fine and shows all my lights. As soon as I only have one specific light in the displayFilter-array, I can only see “Loading…” on my mirror. Config looks fine (below) and logs are identical with default and specified.

                                          Side Note: The light I am calling is “Kugel” which is not an original Hue but Ikea Tradfri. Additionally I have other lights called “Kugel 30er” “Kugel 40er” and “Kugel 60er”. Could this be the source of failure?

                                          Works:
                                          hue_lights_all.jpg

                                          Doesn’t work:
                                          hue_lights_kugel.jpg

                                          Thanks for help in advance.

                                          1 Reply Last reply Reply Quote 0
                                          • N Offline
                                            nick95cookie
                                            last edited by

                                            I set this up and everything was working wonderfully. I shut down my pi and installed it into my frame with the same screen and now this module is not working but nothing has changed. It loads but I cannot see the module on my MM screen

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 1 / 5
                                            • 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