12 posts / 0 new
Last post
fred_b
phpMyHue

Hello,

I invite you to visit https://github.com/FredBardin/phpMyHue.git and tell me what do you think about it.

It's a php/javascript application I wrote for my home use and I was encouraged to publish it, so I did.

 

Any comments (good or bad) will be appreciate smiley

Thanks for reading until the end wink

mjp
Fred:

Fred:

I wanted to say thank you for releasing this. I implemented it when you were at 1.1 (and upgraded to 1.2 recently) in my house as a workaround for remote API access (and setting up a simple web interface).

Please keep up the good work!

And better now, I just implemented your huecmd_api.php into my home automation without having to write my own :) Thank you!

I make calls to the php file using Elve (from CodeCoreTechnologies - free home automation software for Windows). That means I can make UPB light switches control colors, states, and brightness of the Hue bulbs without having to bother having my phone or a tablet. Makes the usability of the system that much better. And as a side effect, if a power-loss were to occur, the system can reset the light states, power them off, or change colors. I don't need to wait for Philips to implement it.

In case anyone is interested in how I have the system working with light switches. Let me know.

fred_b
Hello mjp,

Hello mjp,

I'm glad to see that you used my package even if the funny part is that you used the web service functionnality that I forgot to mention blush.
Nice job to have extracted this information from the php files yes.

I wrote it to interact with my javascript, but it can be, of course, used alone. I updated the doc to indicate this functionnality, it can be usefull to someone else too.

Else I forecast to add rules configuration in the interface (I have a hue tap). I'll certainly need to add some code in the web service to do so but it will continue to work as is for the existing wink.

 

If you have any request, don't hesitate to ask, here or in github, and thanks a lot for your comments.

mjp
Thanks, Fred!

Thanks, Fred!

I'm surprised you haven't submitted your project for inclusion on the main list of Tools and SDKs (http://www.developers.meethue.com/tools-and-sdks) - see the bottom of the page. It's definitely something you should get out there.

I contribute to projects every now and then on Github, so, I may check out your code :)

mjp
For reference - I posted up

For reference - I posted up the method I used to control the lights with the switches here:

http://cocoontech.com/forums/topic/28310-winning-combination-phpmyhue-elve-and-upb-for-philips-hue/

fred_b
New version 1.4 is available

New version 1.4 is available with brand new effects scripting capabilities. Enjoy smiley

http://fredbardin.github.io/phpMyHue/

mjp
Chance for multi-bridge integration

Hi, Fred - not sure if you're still actively developing or working on the code anymore (noticed you submitted an update in May)...

Was wondering if you'd be able to easily implement multi-bridge support. I'm setting up my parents with Hue, and due to the distance, they require two bridges... Would be great to see these accessible in a single instance of phpMyHue (instead of multiple phpMyHue instances).

fred_b
Chance for multi-bridge integration

Hello mjp, I always work on the code, but at my pace :). I currenly add sensor rules management (-> hue tape), and hope I'll publish it during July or August.

To answer your question, it's not easy to integrate multi-bridge because all the screens were coded for a unique bridge.
So, currently the only solution is multi-instances of phpMyHue, I confirm.

But it's an interresting challenge, I'll have a complete look on this subject certainly by the end of August ;).

It's possible to implement easily multi-api for several bridges as it is a class, but more complicated to use it.

--> ie : multi-lamp selection will need additional constraints for multi-bridge and it will not be possible in some cases.

I don't promise anything, but I'll give you a definitive answer (integration or not).

fred_b
Chance for multi-bridge integration

Hi mjp,

As written previously, I examined the possibility to implement several bridges in the application.
Unfortunately, as presumed, it could not be done easily and not at all with the application design.

On some screens several bridges could be mixed (effects or rules), but on lights or scenes screens you can only work with one bridge at once else several functionnalities need to be removed.

So, sorry, there's only the multi instances solution for multi bridges.

 

Else, version 1.5 is available with the addition of rules management wich extends a little the hue tap functionnalities (you can also switch on or off group of lights, not only use scenes).

mjp
Thanks for the follow up,

Thanks for the follow up, Fred!
 
Would definitely be great to see more collaboration on your code - I hope I can help contribute to it, maybe it can be used as a starting framework for a new branch that does eventually support multiple hubs. Or, maybe, better, Philips will finally allow us to link multiple hubs together to create a cluster. That would be ideal :)

fred_b
Collaboration

Hello mjp,

I'm of course opened to any proposal and even if I don't have much time to answer them, fork projects and/or pull requests are welcome (as stars too ;))

fred_b
Version 1.6 available

Still alive, with an online 1.6 version as usual at http://fredbardin.github.io/phpMyHue/ (mostly enhancements and corrections)

Any comments are always welcome wink

 

Log in or register to post comments