Monitor your Philips Hue Lights using MMM-Hue
This is my first attempt at developing anything like this, so hopefully it helps someone
At the moment, all you need to enter is your bridge IP Address and your user ID.
The module displays the status of each room/group set up on your bridge.
MMM-Hue can be found here:
I’d also light to thank @strawberry-3-141 for their help with this!
I’ve changed the config so that the user can toggle between coloured icons or the standard font colour of the mirror.
This post is deleted!
Hi @darrene - did you manage to sort your issue?
You’re right, you have to create your account in the bridge first.
The link in the readme should take you to the correct page, which walks you through creating the account.
Give me a shout if you have any problems
Thanks @Mitchfarino - it was user-error. I visited the developer page rather than clicking on the link you provided :) I deleted my previous post in shame after I realised my error.
All sorted now. It’s fabulous. Thanks for sharing your code with the community by the way!
Hi @Mitchfarino, I was just wondering if you’d considered extending the module to control lighting schedules?
It suddenly struck me that as the mirror is always on and stays in the house, it might be very really cool (not to mention useful when you’re away) to have a capability in the module to turn on/off dim lights on a hardcoded schedule or time/day combo.
From there it could even be a short hop to link it up the the MMM-RemoteControl module, to set schedules remotely.
Do you mean you want to be able to control the lights/schedules from your mirror?
How would you interact with it to create them etc?
I think at the moment the remote control only allows you show or hide modules, I’m not sure what future developments are in the pipeline though ( @Jopyth will know more on that)
Not directly - I think it’d be a lot of work and as you say, would need a way of interfacing with the mirror. At the end of all that you could just use The Hue/Elgato Eve/Siri app to do the same thing.
What I wondered though, was if something like MMM-Schedule was installed, it’d be really easy to put a schedule in the config.js to turn specific lights on and off on certain schedules - it could send the notification schedule which MMM-Hue could react to. It’d mean you/the mirror could schedule the lighting schemes automatically to run while you were away from home.
If MMM-Hue could react to a HUE_LIGHT_ON and HUE_LIGHT_OFF notification, perhaps with a light-ID and Brightness value as the payload, that’d do the trick wouldn’t it?
A scheduling GUI would be uber-cool, but hard-coding the config.js would be enough for most, I’d have thought…
It’s on my (very long) list of things to have a go at, if I get a chance :)
Like your MMM-Hue module but will admit getting it to work was a little bit more tricky then what I had anticipated.
My version 1.0 Hue hub setup controlling a 9 individual bulbs. I did not set up the bulbs as part of a groups.
Wanted to share just a few simple findings to help others to get your module to work even better.
Inspecting your code in MMM-Hue.js I found that you had a this.lightsorgroups hardcoded to “groups”. As a result of this my Hue setup was presented as just the Home icon with ‘Lights On’ as the status.
Changing the hardcoded this.lightsorgroups to “lights” did result in a similar display as shown in your first post however all the named lights showed the X (fa-times) icon for the status even though lights were on, others off an others unreacheable.
So I made a further minor change on line 69 and changed it to:
lightstatus.classList.add("fa", this.result[lamps[i]].state.reachable ? (this.result[lamps[i]].state.on ? "fa-lightbulb-o" : "fa-adjust" ) : "fa-times");
Keep up the good work.
Thanks for your feedback, I’m sorry I haven’t been able to update the module to account for individual lights
As you have noticed it is in the code, I just didn’t expose it to the config.
I’m going to pick it up soon, and will update in this thread.
Thanks for letting me know, and for giving me the nudge I need to get it updated