Request: Sitemap HUE Alert and Color Loop

Is there anyone who’s share a simple example of how to use the HUE channel for alert or color loop? I’ve seen and created bash scripts for these, but I’d like to see what the HUE OH2 binding can do.

Thanks in advance.

3 Likes

I got the same problem - can’t get the hue alert channel to work. Color and toggle work just fine from inside a rule.

Did you find any solution?

No solution. I cannot say it is broken because I do not know how to configure alert or color loop.

Here is a solution (used inside a rule) for the hue alert function using the built in sendHttpPostRequest :slight_smile:

var url_light=‘http://192.168.0.34/api/username/lights/5/state’
var content=’{“alert”: “lselect”}’ // use select for one blink, lselect for many

sendHttpPutRequest(url_light, “application/x-www-form-urlendcoded”, content)

use the content {"effect":"colorloop"} for the loop

2 Likes

Hi there,

I use it this way:

demo.items

Switch hueLivingRoomEffect "Effect" <colorwheel> {
    channel="hue:0210:aaaaa:2:effect"
}
String hueLivingRoomAlert "Alert" <alarm> {
    channel="hue:0210:aaaaa:2:alert"
}

demo.sitemap

[...]
        Switch item=hueLivingRoomEffect
        Switch item=hueLivingRoomAlert mappings=[NONE="Off", SELECT="Single", LSELECT="Multi"]
[...]
2 Likes