philip1986 / pimatic-led-light

A template for creating plugins
http://pimatic.org/
GNU General Public License v2.0
7 stars 13 forks source link

Updated hue.coffee #48

Open renemathieu opened 8 years ago

renemathieu commented 8 years ago

Added Promise.resolve() to avoid "Cannot call method 'then' of undefined" error. Thanks for your work!

renemathieu commented 8 years ago

I am totally new to this kind of programming. I tried to implement your suggestion.

Like this: hue.txt

But I get an error: hue is not defined

I tried to change only SetBrightness. That works fine.

renemathieu commented 8 years ago

With your new version the errors are gone, but the color picker doesn't work anymore.

mwittig commented 8 years ago

but the color picker doesn't work anymore

Do you get any error messages?

renemathieu commented 8 years ago

No. Sometimes a blank Error message. But the color picker doesn't function anymore. Onetime I had a total crash of pimatic (I picked obviously the colors to fast)

UPDATE: I did a clean install. Now it works nearly as suspected. Thanks

Did you have some time to check if its possible to implement the status of the light (would be very handy as long the status of the light wouldn't manipulated only over/by pimatic)? See also here: http://forum.pimatic.org/topic/786/philips-hue-plugin/29

Thanks