-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[New Feature] Philips hue light Support #328
Comments
@Fraid We have to extend REST client first for this on https://github.com/mycontroller-org/mycontroller-rest-clients I will add REST API client for this. |
@jkandasa I quite understand the implementation by following the PhantIO and MQTT. Should I start the provider then, while you doing the client ? |
@Fraid Please go ahead and work on the area that you can understand. Thank you so much for your support!! |
@jkandasa Thank to you, MyController is awesome :D ! |
@Fraid I have pushed REST Client update. To use this update parent pom.xml version to
You can see the Philips hue API here Sample code to access API,
NOTE: You might get issue with |
I got the following error when trying to get list of light:
Received json:
|
@Fraid added default constructor mycontroller-org/mycontroller-rest-clients@dd871f8 |
Awesome! working now. Hue are well listed and I'm also able to turn on the light :D ! But for next part I have a few question about the code:
Both working if I set it myself, but the idea is to make it easy for end user. |
We can go with
Will check this and update you soon. |
@jkandasa I understand how to do it graphically but how about programatically, is it possible ? Also what is the best way to handle |
@jkandasa I found how to add predefined sensor type, by following "MULTIMETER", I guess setting the name and the type programatically it's same issue ? |
@jkandasa No need anymore to deal with the name, I finally found a way to set it. I'll review everything probably tomorrow night. |
Hi @jkandasa, Just to keep you updated, actually I found an issue with hue node going down and I have to restart my controller to get the node back. Everything work well on my testing environnement (with hue only) for 2 days and both with release running together. When I actived the debug log, I receive the playload. And then no more entry, look like the poller as an issue. No crash appear while at the same time on test environnement it’s working. So I added more error validation with log too and will see how everything go. |
@jkandasa My router was down for 20min around 2PM. And I got the below crash in log. I'll catch the exception, but Is it possible to get an error 500 code on the clients side ?
|
@jkandasa Thank you ;) Also I have the following crash, I'll be able to give you more detail or a fix on Saturday.
|
@Fraid Issues are fixed with mycontroller-org/mycontroller-rest-clients@b2cf5d3 and fixed NPE. Could you please test this when you get time. and update the status. How many seconds taking to pass request to end device? Is it ok? |
@jkandasa Almost good :D !, request are responsive enought (less than a second). Also when I'm on `light sensor detail page, I constantly have the following crash:
Is it linked? |
@Fraid Can you enable and check the debug log do you receive
^ There is no link for this issue. |
@jkandasa here my testing: Gateway page -> add hue bridge, here the log (added more log):
...(Here are all light Received raw)
Pool frequency it's five minute
Now all
After that I also test to update only RGB value but still nothing on first init. |
@Fraid Nice catch! I fixed this issue on this commit Hope now everything resolved on PhilipsHue. |
@jkandasa Yess all set now, for philips hue :D. One last thing, and doesn't really mater, but what the use of |
Earlier we had this field on global. Later I changed this to gateway level. Actually MySensors network needs at least 20ms delay between each Tx message. Other collision might happen. To avoid this we introduced this delay. And RFLink gateway needs some 1 second delay. However for Philis Hue, we can keep this delay as ZERO. |
I would like to be able to take control over my hue system (white and color one).
Philips hue it’s a smart plug and play light, you can change the color, turn on/off the light etc…(more info: http://www2.meethue.com/en-ca/about-hue/).
The hue come with a bridge with a web service there is also different SDK for different platform, including a java SDK (https://developers.meethue.com/tools-and-sdks).
There is no restriction according to the documentation to use it :
All we ask is that you register your apps in the whitelist and make sure to make it clear they are your creation. You may refer to hue and Philips in plain text but you are not allowed to use hue or Philips name and branding or to use hue or Philips in any logo or graphics. What you are allowed to do is to experiment and have fun with hue.
So for now the focus will be on turning on/off the light within MyController.
But after we may add a full configuration form with all functionality or light type offering by hue.
The text was updated successfully, but these errors were encountered: