JGrana
Very Senior Member
I have been hacking (truly hacking, lots of bits and pieces) an addon that will control Philips Hue lights/groups and scenes.
I have a version running reasonably well on an AX88U Pro. It started as a way to make one of my Hue bulbs change colors based on the results of spdmerlin. Green for speeds over 100 Mbit/sec, Yellow for 20-99 and Red for less than 20.
The base code was from Harald van der Laan on github. It was based on bash so I converted it to /bin/sh, added some "addon style" install structure - then did some major changes.
My version supports "scenes", a way to authenticate the Hue Bridge during install, better display of lights and groups and scenes and a way to convert a color to it's xy coordinates.
I am now tweaking it so you can change the actual color of the light by just specifying a color (no xy stuff).
If there is any interest, I will post the install (stolen shamelessly from @Jack Yaz ) and an early version.
Now, the tough part - I am going OOT next Tuesday. Away From Keyboard as they say. ;-)
There are no doubt a few test cases that escaped me. I will address them - in a few weeks...
If there is interest, let me know.
BTW, as an example of usage:
I am re-working the power usage to allow an extra argument after "on". You would do
$ merlinhue light 5 state on Red
I have a version running reasonably well on an AX88U Pro. It started as a way to make one of my Hue bulbs change colors based on the results of spdmerlin. Green for speeds over 100 Mbit/sec, Yellow for 20-99 and Red for less than 20.
The base code was from Harald van der Laan on github. It was based on bash so I converted it to /bin/sh, added some "addon style" install structure - then did some major changes.
My version supports "scenes", a way to authenticate the Hue Bridge during install, better display of lights and groups and scenes and a way to convert a color to it's xy coordinates.
I am now tweaking it so you can change the actual color of the light by just specifying a color (no xy stuff).
If there is any interest, I will post the install (stolen shamelessly from @Jack Yaz ) and an early version.
Now, the tough part - I am going OOT next Tuesday. Away From Keyboard as they say. ;-)
There are no doubt a few test cases that escaped me. I will address them - in a few weeks...
If there is interest, let me know.
BTW, as an example of usage:
Code:
Merlinhue Version 0.1.0
Usage: merlinhue <command> | <light|group|scene> <number|name> <action> <value> [<value>]
==========================================================================
power usage : merlinhue light|group n state <on|off>
saturation : merlinhue light|group n sat <0-255>
brightness : merlinhue light|group n bri <0-255>
hue : merlinhue light|group n hue <0-65535>
xy gamut : merlinhue light|group n xy <0.0-1.0> <0.0-1.0>
ct color temp : merlinhue light|group n ct <153-500>
color cycle : merlinhue light|group n cycle <0-65535> <0-65535>
scene : merlinhue scene scenename group
show lights/groups : merlinhue show
colors - list colors : merlinhue colors
convert - color to xy : merlinhue convert <color>
help (this screen) : merlinhue help
install : merlinhue install
uninstall : merlinhue install
==========================================================================
I am re-working the power usage to allow an extra argument after "on". You would do
$ merlinhue light 5 state on Red