-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbron
More file actions
executable file
·37 lines (35 loc) · 949 Bytes
/
Copy pathbron
File metadata and controls
executable file
·37 lines (35 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
# | color | hue |
# |---------+-------|
# | red | 0 |
# | yellow | 12750 |
# | green | 25500 |
# | blue | 46920 |
# | magenta | 56100 |
for lamp in 7 8; do
curl -X PUT "http://$HUE_IP/api/$HUE/lights/$lamp/state" -d '{"on":true, "bri": 254, "hue": 14910, "sat": 144, "transitiontime":0}' 2>/dev/null > /dev/null
done
# With the "conce
# "11": {
# "state": {"on": true, "bri": 254, "hue": 14910, "sat": 144,
# "effect": "none",
# "xy": [
# 0.4596,
# 0.4105
# ],
# "ct": 370,
# "alert": "none",
# "colormode": "ct",
# "reachable": true
# },
# "swupdate": {
# "state": "readytoinstall",
# "lastinstall": null
# },
# "type": "Extended color light",
# "name": "Office 2",
# "modelid": "LCT007",
# "manufacturername": "Philips",
# "uniqueid": "00:17:88:01:10:4a:7b:94-0b",
# "swversion": "5.38.1.14919"
# }