It is pretty simple right now to implement the following:
-transition time
-colorloop
-alert
With the transition time parameter you can create a Wake Up Light.
1. Create a virtual switch.
2. Create an 'on' script like below and put it into the scripts directory (see the older Hue tutorial):
cat > hue_wake_8_on.sh
#! /bin/bash
curl -s -H "Accept: application/json" -X PUT --data '{"on":true, "bri":255, "transitiontime":600}'
http://bridge-ip-address/api/newdevelop ... ts/8/state ; \
The above script will turn on the light with number 8 and go from 0 to 255 brightness in 60 seconds.
3. chmod 0755 hue_wake_*
4. Enter this script as the 'On' script in the switch settings.
5. Create an 'off' script to turn of the light in the morning after you wake up.
cat > hue_wake_8_off.sh
#! /bin/bash
curl -s -H "Accept: application/json" -X PUT --data '{"on":false}'
http://bridge-ip-address/api/newdevelop ... ts/8/state ; \
6. chmod 0755 hue_wake_*
7. Enter a timer in this virtual switch when you want to wake up minus the transition time.
With other scripts like this you can also implement the 'alert' function which will cause the lamp to blik for a certain time.
{"alert": "lselect"} will cause 30 seconds of blinking.
{"alert": "select"} will cause a short blinking burst.
{"alert": "lselect", "hue": 20000} will cause the light to blink for 30 second with an orange color.
If you include other parameters other than alert, then the lamp will remember those settings after the blinking period is over.
If you only include the alert parameter, than the light will return to its previous state when it stops blinking.