mitchss / mmm-hue Goto Github PK
View Code? Open in Web Editor NEWPhilips Hue Module for MagicMirror2
Philips Hue Module for MagicMirror2
Hello,
I just added the MMM-Hue module and also got the userid locally of my hue bridge and added it to the config of the module. Now when I restart the MM, I don't get anything visual from the module. The only thing I see in the browser console, is this:
MMM-Hue.js:73 Wohnzimmer Oben false
MMM-Hue.js:97 Object {name: "Wohnzimmer Oben", lights: Array[0], type: "Room", state: Object, recycle: false…}
MMM-Hue.js:73 Mein Zimmer false
MMM-Hue.js:97 Object {name: "Mein Zimmer", lights: Array[2], type: "Room", state: Object, recycle: false…}action: Objectclass: "Recreation"lights: Array[2]0: "3"1: "1"length: 2__proto__: Array[0]name: "Mein Zimmer"recycle: falsestate: Objecttype: "Room"proto: Object
MMM-Hue.js:73 Group for wakeup false
MMM-Hue.js:97 Object {name: "Group for wakeup", lights: Array[1], type: "LightGroup", state: Object, recycle: true…}
MMM-Hue.js:73 Schlafzimmer false
MMM-Hue.js:97 Object {name: "Schlafzimmer", lights: Array[0], type: "Room", state: Object, recycle: false…}
MMM-Hue.js:73 Group for wakeup false
MMM-Hue.js:97 Object {name: "Group for wakeup", lights: Array[1], type: "LightGroup", state: Object, recycle: true…}action: Objectlights: Array[1]0: "1"length: 1__proto__: Array[0]name: "Group for wakeup"recycle: truestate: Objecttype: "LightGroup"proto: Object
TypeError: Cannot read property 'getElementsByClassName' of null
at updateModuleContent (http://localhost:8080/js/main.js:202:36)
at Promise (http://localhost:8080/js/main.js:139:5)
at updateDomWithContent (http://localhost:8080/js/main.js:137:10)
at newContentPromise.then (http://localhost:8080/js/main.js:119:25)
The TypeError seems to come from MMM-Hue, since when I exclude the module from the main config.js, it disappears. Still I don't really know what's wrong with this, since I get objects returned, which are correct as far as I can see.
Can you guide me somewhere to solve this? Do you need any more information? I'd gladly provide them.
Greetings,
derRAV3N
Hi, great idea for a module - just can't seem to get it to work at all, all I get is "No Data returned". Is there a password required to access the Hue Developer account?
I cannot hide multiple groups.
I have in totalt 4 groups:
Stue
Living
QuickHue: Switch Lights
QuickHue: Switch Lights
now I manage to hide for example the QuickHue which shares the name, but I can't hide those as well as one more.
How do I fix this?
Hi,
anyone know how to 'hide' more than one groups.
I want to hide hgrp + dimmer.
Thanks for help
Hi, if i change the lightsorgroups to "lights", it doesnt show the right values. It jsut shows everything is off. But if i change it to groups, then it works just fine.... do you have any idea why it doesnt work.
{ module: 'MMM-Hue', position: 'top_left', config: { bridgeip: "192.168.2.155", userid: "MYID", lightsorgroups: "groups", refreshTime: 1 * 500 } }
Hey I just installed MMM-Hue and it is working just fine expect that it doesn't update when i turn the light off/on
So it always displays the same no matter if I turned the lights off meanwhile...
Can anybody help with this?
Great module! I tried to do showOnlyOn: true
but it still lists all the groups with an x and the lights that are on. What am I doing wrong? I just want to see the lights that are on and not all the ones with the x's next to them. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.