-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhue_debug
152 lines (148 loc) · 6.32 KB
/
hue_debug
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
#!/bin/bash
. hue_settings
characteristic_values() {
echo -e '\n'
echo "######################################"
echo ">>>>>> Manufacturer Name String <<<<<<"
echo "######################################"
echo "/service000a/char000b"
for lamp in ${array_lamps[@]}
do
dbus-send --print-reply --system --dest=org.bluez /org/bluez/hci0/dev_${lamp}/service000a/char000b org.bluez.GattCharacteristic1.ReadValue dict:string:variant:
done
echo -e '\n'
echo "######################################"
echo ">>>>>>> Model Number String <<<<<<<<< "
echo "######################################"
echo "/service000a/char000d"
for lamp in ${array_lamps[@]}
do
dbus-send --print-reply --system --dest=org.bluez /org/bluez/hci0/dev_${lamp}/service000a/char000d org.bluez.GattCharacteristic1.ReadValue dict:string:variant:
done
echo -e '\n'
echo "######################################"
echo ">>>>> Software Revision String <<<<<<<"
echo "######################################"
echo "/service000a/char000f"
for lamp in ${array_lamps[@]}
do
dbus-send --print-reply --system --dest=org.bluez /org/bluez/hci0/dev_${lamp}/service000a/char000f org.bluez.GattCharacteristic1.ReadValue dict:string:variant:
done
echo -e '\n'
echo "######################################"
echo ">>>>>>>>> Lamp Name, alias <<<<<<<<<<<"
echo "######################################"
echo "/service0011/char0014"
for lamp in ${array_lamps[@]}
do
dbus-send --print-reply --system --dest=org.bluez /org/bluez/hci0/dev_${lamp}/service0011/char0014 org.bluez.GattCharacteristic1.ReadValue dict:string:variant:
done
echo -e '\n'
echo "########################################################################################"
echo "> i guess Pairable state after AC-ON. After AC-ON the value changes to 02 for a while. <"
echo "########################################################################################"
echo "/service0011/char001b"
for lamp in ${array_lamps[@]}
do
dbus-send --print-reply --system --dest=org.bluez /org/bluez/hci0/dev_${lamp}/service0011/char001b org.bluez.GattCharacteristic1.ReadValue dict:string:variant:
done
echo -e '\n'
echo "######################################"
echo ">>>>>>> read posible but ??? <<<<<<<<<"
echo "######################################"
echo "/service0023/char0024"
for lamp in ${array_lamps[@]}
do
dbus-send --print-reply --system --dest=org.bluez /org/bluez/hci0/dev_${lamp}/service0023/char0024 org.bluez.GattCharacteristic1.ReadValue dict:string:variant:
done
echo -e '\n'
echo "######################################"
echo ">>>>>>>>>>>>> on/off <<<<<<<<<<<<<<<<<"
echo "######################################"
echo "/service0023/char0026"
for lamp in ${array_lamps[@]}
do
dbus-send --print-reply --system --dest=org.bluez /org/bluez/hci0/dev_${lamp}/service0023/char0026 org.bluez.GattCharacteristic1.ReadValue dict:string:variant:
done
echo -e '\n'
echo "######################################"
echo ">>>>>>>>>>> brightness <<<<<<<<<<<<<<<"
echo "######################################"
echo "/service0023/char0029"
for lamp in ${array_lamps[@]}
do
dbus-send --print-reply --system --dest=org.bluez /org/bluez/hci0/dev_${lamp}/service0023/char0029 org.bluez.GattCharacteristic1.ReadValue dict:string:variant:
done
echo -e '\n'
echo "######################################"
echo ">>>>>>>>>>>>> mired <<<<<<<<<<<<<<<<<<"
echo "######################################"
echo "/service0023/char002c"
for lamp in ${array_lamps[@]}
do
dbus-send --print-reply --system --dest=org.bluez /org/bluez/hci0/dev_${lamp}/service0023/char002c org.bluez.GattCharacteristic1.ReadValue dict:string:variant:
done
echo -e '\n'
echo "######################################"
echo ">>>>>>>>>>>>>> color <<<<<<<<<<<<<<<<<"
echo "######################################"
echo "/service0023/char002f"
for lamp in ${array_lamps[@]}
do
dbus-send --print-reply --system --dest=org.bluez /org/bluez/hci0/dev_${lamp}/service0023/char002f org.bluez.GattCharacteristic1.ReadValue dict:string:variant:
done
echo -e '\n'
echo "######################################"
echo ">> on/off, brightness, mired, color <<"
echo "######################################"
echo "/service0023/char0034"
for lamp in ${array_lamps[@]}
do
dbus-send --print-reply --system --dest=org.bluez /org/bluez/hci0/dev_${lamp}/service0023/char0034 org.bluez.GattCharacteristic1.ReadValue dict:string:variant:
done
echo -e '\n'
echo "######################################"
echo ">>>>>>>>> transitiontime <<<<<<<<<<<<<"
echo "######################################"
echo "/service0023/char0037"
for lamp in ${array_lamps[@]}
do
dbus-send --print-reply --system --dest=org.bluez /org/bluez/hci0/dev_${lamp}/service0023/char0037 org.bluez.GattCharacteristic1.ReadValue dict:string:variant:
done
echo -e '\n'
echo "###################################################"
echo "> AC_ON values : on/off, brightness, mired, color <"
echo "###################################################"
echo "/service0023/char0039"
for lamp in ${array_lamps[@]}
do
dbus-send --print-reply --system --dest=org.bluez /org/bluez/hci0/dev_${lamp}/service0023/char0039 org.bluez.GattCharacteristic1.ReadValue dict:string:variant:
done
echo -e '\n'
echo "######################################"
echo ">>>>>>>>>>> ??? ??? <<<<<<<<<<<<<<<<<"
echo "######################################"
echo "/service003b/char003c"
for lamp in ${array_lamps[@]}
do
dbus-send --print-reply --system --dest=org.bluez /org/bluez/hci0/dev_${lamp}/service003b/char003c org.bluez.GattCharacteristic1.ReadValue dict:string:variant:
done
echo -e '\n'
echo "######################################"
echo ">>>>>> send 02 00 posible <<<<<<<<<<<<"
echo "######################################"
echo "/service003b/char003e/desc0040"
for lamp in ${array_lamps[@]}
do
dbus-send --print-reply --system --dest=org.bluez /org/bluez/hci0/dev_${lamp}/service003b/char003e/desc0040 org.bluez.GattDescriptor1.ReadValue dict:string:variant:
done
echo -e '\n'
echo "######################################"
echo ">>>>>>>>>>>> ??? ??? <<<<<<<<<<<<<<<<"
echo "######################################"
echo "/service003b/char0043"
for lamp in ${array_lamps[@]}
do
dbus-send --print-reply --system --dest=org.bluez /org/bluez/hci0/dev_${lamp}/service003b/char0043 org.bluez.GattCharacteristic1.ReadValue dict:string:variant:
done
}