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.
    • P Offline
      PhiDeltDexter @PhiDeltDexter
      last edited by

      I also only have 2 formulas installed in Hue Labs. 1 of them is candlelight, so that is where that one comes from. The others, I am still not sure. I also went in and changed the names of all my rooms in my SmartThings environment which didn’t change anything either.

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

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

        I also thought about that. I had 2 entertainment areas setup already. One in living room and another generic one. I removed them just to make sure, it removed one duplicate of Living Room, but not the others.

        0_1545258167601_fb9cd85e-ecf5-4baa-b98c-46fe6de8a8e4-image.png

        In addition when I disable all the filters I have a list of groups that takes up almost my entire screen. The majority of which are not in the Hue App, which is why initially I thought it had to be pulling from somewhere else besides the Hue App.

        0_1545257913567_94c5c66c-e72e-4ce5-ab71-c5c8820d0a48-image.png

        Ahhh … I think I know what this is - I think these are multisource groups and lightsources. Give me a minute to come up with a fix that ignores them from the group list.

        P 1 Reply Last reply Reply Quote 2
        • P Offline
          PhiDeltDexter @michael5r
          last edited by

          @michael5r

          Here is what it shows for Type. I didn’t even think to check. But perhaps if you are filtering out group types, you could add a category for Rooms in the future? Otherwise it shows them as a LightGroup.

          0_1545259583388_95e3f75e-8dd4-41c2-aa34-fff909c8a482-image.png

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

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

            @michael5r

            Here is what it shows for Type. I didn’t even think to check. But perhaps if you are filtering out group types, you could add a category for Rooms in the future? Otherwise it shows them as a LightGroup.

            0_1545259583388_95e3f75e-8dd4-41c2-aa34-fff909c8a482-image.png

            Yeah, that confirms my assumption.

            My intention with the groups was just to show rooms, though - I just don’t have any of these multisource groups myself, so I never realized they were also being shown.

            I pushed an update to the module that filters out anything that doesn’t have a type of room - if you pull it, your list should shrink to a more manageable size :)

            If you’d like to have the ability to filter these groups - just in case you do want to show ones marked LightGroup - just post it as an issue on GitHub and I’ll build a real filtering functionality.

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

              Just wanted to announce that there’s a new version of this module out!

              I added functionality to support Paviro’s MMM-PIR-Sensor module meaning that this module can now be suspended & resumed based on movement detected through a PIR sensor (or whatever else you’re using for motion detection).

              Check out the release notes here:
              https://github.com/michael5r/mmm-hue-lights/releases/tag/1.3.0

              D 1 Reply Last reply Reply Quote 0
              • D Offline
                dazza120 @michael5r
                last edited by dazza120

                @michael5r I’m having a issue with the hue lights and MMM-Remote-Control, when viewing it from that app the hue module comes up with an error, it says
                Hue API Error: Error: read ECONNRESET
                it still changes when you turn on a bulb but would go back to the Error shortly after. When I use VNC to view it as long as I haven’t used mmm remotre control to view it, it works perfectly any ideas?

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

                  @dazza120 That seems odd - let me check it out & see if I can replicate.

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    Christian
                    last edited by

                    Hi,

                    I installed the module today with my Deconz gateway (not Hue).
                    Everything works fine but I´m not able to use my defined groups.
                    Lights are working great but the Hue bridge uses rooms and not groups, I think thats my problem.
                    The Deconz gateway uses only lights and groups.

                    The module MMM-Hue works great with the Deconz gateway but it´s basic. The new module looks much better.
                    Is there a way to fix this problem?

                    Regards,

                    Christian

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

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

                      Hi,

                      I installed the module today with my Deconz gateway (not Hue).
                      Everything works fine but I´m not able to use my defined groups.
                      Lights are working great but the Hue bridge uses rooms and not groups, I think thats my problem.
                      The Deconz gateway uses only lights and groups.

                      The module MMM-Hue works great with the Deconz gateway but it´s basic. The new module looks much better.
                      Is there a way to fix this problem?

                      Regards,

                      Christian

                      Sure - open up the mmm-hue-lights.js file and go to line 670.

                      You’ll see a comment saying for the groups, let's immediately filter out anything that doesn't have a type of 'Room' and a code block that looks like this:

                      Object.keys(data.groups).forEach(function(key) {
                          var itemType = data.groups[key].type.toLowerCase();
                          if (itemType !== 'room') {
                              delete data.groups[key];
                           }
                      });
                      

                      If you delete or uncomment that code block, it will no longer filter out anything that isn’t a room.

                      C 1 Reply Last reply Reply Quote 0
                      • C Offline
                        Christian @michael5r
                        last edited by

                        @michael5r

                        Ok, thank you for the fast reply. That’s working for me.

                        Regards,
                        Christian

                        1 Reply Last reply Reply Quote 1
                        • C Offline
                          Christian
                          last edited by

                          Hi,

                          is there a way to get lights or groups sorted by name?

                          Regards,
                          Christian

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

                            @christian Not currently - I’m just displaying them in the order that the API spits them out.

                            C 1 Reply Last reply Reply Quote 0
                            • C Offline
                              Christian @michael5r
                              last edited by

                              @michael5r Ah, ok. But it would be a nice feature for the future.

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

                                @christian Sure - post it as an issue/feature request in the Github repo for this package and I’ll find some time to build it!

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  dhoggan
                                  last edited by

                                  Hi,

                                  I’ve recently installed this module and setup pretty painless. I am, however, having some issues in customising the display. As it’s likely me and not the module I thought here might be a better place than Github to ask.

                                  The first issue is that, despite setting the position to be middle_center it adamantly displays justified to the left. If I set it as bottom_center, bottom_right or a variety of other positions it displays as expected; but always to the left if middle_center selected.

                                  The second issue is that I can’t seem to get grid mode working. I’ve modified custom.css as advised, but it it just displays as a single column. I’ve even tried a full reboot of the RPi, but no difference.

                                  The third is more of a question as I can’t find out how to do this. One of the display examples has the left column with room groups and the right with individual lights. Can anyone point in the direction as to how to do this?

                                  Also - and I haven’t tried this yet - but has anyone tried this with two hubs?

                                  For completeness, the config.js looks like this:

                                            {
                                                       module: "mmm-hue-lights",
                                                       position: "middle_center",
                                                       config: {
                                                              bridgeIp: "w.x.y.x",
                                                              user: "12345678901234567890",
                                                              displayType: "grid",
                                                              displayMode: "groups",
                                                              displayFilter: ['all'],
                                                              hideFilter: ['Annex'],
                                                              updateInterval: "5000"
                                                  }
                                  

                                  Thanks,

                                  Dave

                                  michael5rM 1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    dhoggan
                                    last edited by

                                    Hi,

                                    Just to add that I have managed to work out why the multi-column grid wasn’t working - it was down to me adding the suggested lines between the default { } entries. Adding the lines at the very end of the file and I have columns at last! Just in case anyone else ever has the same issue the custom.css file looks like:

                                    body {

                                    }

                                    .mmm-hue-lights .grid {
                                    width: auto;
                                    display: flex;
                                    flex-flow: row wrap;
                                    margin: -10px;
                                    max-width: none;
                                    justify-content: center;
                                    }

                                    .mmm-hue-lights .grid .hue {
                                    width: calc(25% - 20px);
                                    margin: 10px;
                                    display: block;
                                    }

                                    Still puzzling over how the example had rooms in one column and lights in another - if anyone knows I’d be grateful of the help.

                                    Thanks,

                                    Dave

                                    1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      Smotx
                                      last edited by Smotx

                                      Hi,

                                      very great module. Thanks for job.

                                      It’s not possible to just see ‘your Rooms’, same as android Hue official app ?

                                      Official app :

                                      alt text

                                      MagicMirror module :

                                      alt text

                                      michael5rM 1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        Smotx
                                        last edited by Smotx

                                        I don’t understand why settings 'displaymode: “groups” does not work :(

                                        Setting ‘groups’ work only in mmm-hue-lights?js file, on config file does not work.

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

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

                                          The first issue is that, despite setting the position to be middle_center it adamantly displays justified to the left. If I set it as bottom_center, bottom_right or a variety of other positions it displays as expected; but always to the left if middle_center selected.

                                          The position has nothing to do with the internal alignment of the module - you need to add:

                                          alignment: 'center',

                                          to your config for the content to be centered.

                                          The third is more of a question as I can’t find out how to do this. One of the display examples has the left column with room groups and the right with individual lights. Can anyone point in the direction as to how to do this?

                                          Ahh … I guess I should have been more specific in the description of the examples. There’s no way to do what you describe above - in the screenshots I just wanted to show what both the lights and groups settings looked like, so I took 2 screenshots and placed them next to each other.

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

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

                                            Hi,

                                            very great module. Thanks for job.

                                            It’s not possible to just see ‘your Rooms’, same as android Hue official app ?

                                            Sure - in the config, set this:

                                            displayMode: 'groups',

                                            and then it will only show your Rooms.

                                            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
                                            • 2 / 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