Ha 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.DS_Store +0 -0
- data/.byebug_history +11 -0
- data/.gitignore +8 -0
- data/.vscode/launch.json +22 -0
- data/.vscode/settings.json +2 -0
- data/.vscode/tasks.json +44 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +40 -0
- data/Rakefile +10 -0
- data/Readme.md +58 -0
- data/bin/bundle +105 -0
- data/bin/byebug +29 -0
- data/bin/coderay +29 -0
- data/bin/gdb_wrapper +29 -0
- data/bin/ha +28 -0
- data/bin/pry +29 -0
- data/bin/rake +29 -0
- data/bin/rdebug-ide +29 -0
- data/bin/thor +29 -0
- data/exe/ha +4 -0
- data/ha.gemspec +30 -0
- data/lib/ha.rb +22 -0
- data/lib/ha/cli_table.rb +49 -0
- data/lib/ha/context.rb +20 -0
- data/lib/ha/deleteme.rb +12 -0
- data/lib/ha/group.rb +19 -0
- data/lib/ha/hue.rb +78 -0
- data/lib/ha/hue_command.rb +34 -0
- data/lib/ha/hue_resource.rb +13 -0
- data/lib/ha/light.rb +24 -0
- data/lib/ha/rule.rb +19 -0
- data/lib/ha/sensor.rb +33 -0
- data/lib/ha/version.rb +3 -0
- data/test/cli_table_test.rb +32 -0
- data/test/fixtures/state1.json +99 -0
- data/test/fixtures/state2.json +423 -0
- data/test/fixtures/state3.json +938 -0
- data/test/ha_test.rb +11 -0
- data/test/hue_test.rb +18 -0
- data/test/rule_test.rb +24 -0
- data/test/sensor_test.rb +22 -0
- data/test/test_helper.rb +8 -0
- metadata +183 -0
@@ -0,0 +1,938 @@
|
|
1
|
+
{
|
2
|
+
"lights": {
|
3
|
+
"1": {
|
4
|
+
"state": {
|
5
|
+
"on": true,
|
6
|
+
"bri": 144,
|
7
|
+
"alert": "none",
|
8
|
+
"mode": "homeautomation",
|
9
|
+
"reachable": true
|
10
|
+
},
|
11
|
+
"swupdate": {
|
12
|
+
"state": "noupdates",
|
13
|
+
"lastinstall": null
|
14
|
+
},
|
15
|
+
"type": "Dimmable light",
|
16
|
+
"name": "Steps left",
|
17
|
+
"modelid": "LWB014",
|
18
|
+
"manufacturername": "Philips",
|
19
|
+
"productname": "Hue white lamp",
|
20
|
+
"capabilities": {
|
21
|
+
"certified": true,
|
22
|
+
"control": {
|
23
|
+
"mindimlevel": 5000,
|
24
|
+
"maxlumen": 840
|
25
|
+
},
|
26
|
+
"streaming": {
|
27
|
+
"renderer": false,
|
28
|
+
"proxy": false
|
29
|
+
}
|
30
|
+
},
|
31
|
+
"config": {
|
32
|
+
"archetype": "classicbulb",
|
33
|
+
"function": "functional",
|
34
|
+
"direction": "omnidirectional"
|
35
|
+
},
|
36
|
+
"uniqueid": "00:17:88:01:02:8d:81:73-0b",
|
37
|
+
"swversion": "1.29.0_r21169",
|
38
|
+
"swconfigid": "75D50777",
|
39
|
+
"productid": "Philips-LWB014-1-A19DLv3"
|
40
|
+
},
|
41
|
+
"2": {
|
42
|
+
"state": {
|
43
|
+
"on": true,
|
44
|
+
"bri": 148,
|
45
|
+
"alert": "select",
|
46
|
+
"mode": "homeautomation",
|
47
|
+
"reachable": true
|
48
|
+
},
|
49
|
+
"swupdate": {
|
50
|
+
"state": "noupdates",
|
51
|
+
"lastinstall": null
|
52
|
+
},
|
53
|
+
"type": "Dimmable light",
|
54
|
+
"name": "Streps right",
|
55
|
+
"modelid": "LWB014",
|
56
|
+
"manufacturername": "Philips",
|
57
|
+
"productname": "Hue white lamp",
|
58
|
+
"capabilities": {
|
59
|
+
"certified": true,
|
60
|
+
"control": {
|
61
|
+
"mindimlevel": 5000,
|
62
|
+
"maxlumen": 840
|
63
|
+
},
|
64
|
+
"streaming": {
|
65
|
+
"renderer": false,
|
66
|
+
"proxy": false
|
67
|
+
}
|
68
|
+
},
|
69
|
+
"config": {
|
70
|
+
"archetype": "classicbulb",
|
71
|
+
"function": "functional",
|
72
|
+
"direction": "omnidirectional"
|
73
|
+
},
|
74
|
+
"uniqueid": "00:17:88:01:02:f0:09:0e-0b",
|
75
|
+
"swversion": "1.29.0_r21169",
|
76
|
+
"swconfigid": "75D50777",
|
77
|
+
"productid": "Philips-LWB014-1-A19DLv3"
|
78
|
+
},
|
79
|
+
"3": {
|
80
|
+
"state": {
|
81
|
+
"on": true,
|
82
|
+
"bri": 254,
|
83
|
+
"alert": "none",
|
84
|
+
"mode": "homeautomation",
|
85
|
+
"reachable": true
|
86
|
+
},
|
87
|
+
"swupdate": {
|
88
|
+
"state": "noupdates",
|
89
|
+
"lastinstall": null
|
90
|
+
},
|
91
|
+
"type": "Dimmable light",
|
92
|
+
"name": "Mantel left",
|
93
|
+
"modelid": "LWB014",
|
94
|
+
"manufacturername": "Philips",
|
95
|
+
"productname": "Hue white lamp",
|
96
|
+
"capabilities": {
|
97
|
+
"certified": true,
|
98
|
+
"control": {
|
99
|
+
"mindimlevel": 5000,
|
100
|
+
"maxlumen": 840
|
101
|
+
},
|
102
|
+
"streaming": {
|
103
|
+
"renderer": false,
|
104
|
+
"proxy": false
|
105
|
+
}
|
106
|
+
},
|
107
|
+
"config": {
|
108
|
+
"archetype": "classicbulb",
|
109
|
+
"function": "functional",
|
110
|
+
"direction": "omnidirectional"
|
111
|
+
},
|
112
|
+
"uniqueid": "00:17:88:01:03:39:24:99-0b",
|
113
|
+
"swversion": "1.29.0_r21169",
|
114
|
+
"swconfigid": "321D79EA",
|
115
|
+
"productid": "Philips-LWB014-1-A19DLv4"
|
116
|
+
},
|
117
|
+
"4": {
|
118
|
+
"state": {
|
119
|
+
"on": true,
|
120
|
+
"bri": 254,
|
121
|
+
"alert": "select",
|
122
|
+
"mode": "homeautomation",
|
123
|
+
"reachable": true
|
124
|
+
},
|
125
|
+
"swupdate": {
|
126
|
+
"state": "noupdates",
|
127
|
+
"lastinstall": null
|
128
|
+
},
|
129
|
+
"type": "Dimmable light",
|
130
|
+
"name": "Stairs",
|
131
|
+
"modelid": "LWB014",
|
132
|
+
"manufacturername": "Philips",
|
133
|
+
"productname": "Hue white lamp",
|
134
|
+
"capabilities": {
|
135
|
+
"certified": true,
|
136
|
+
"control": {
|
137
|
+
"mindimlevel": 5000,
|
138
|
+
"maxlumen": 840
|
139
|
+
},
|
140
|
+
"streaming": {
|
141
|
+
"renderer": false,
|
142
|
+
"proxy": false
|
143
|
+
}
|
144
|
+
},
|
145
|
+
"config": {
|
146
|
+
"archetype": "classicbulb",
|
147
|
+
"function": "functional",
|
148
|
+
"direction": "omnidirectional"
|
149
|
+
},
|
150
|
+
"uniqueid": "00:17:88:01:03:15:3d:0a-0b",
|
151
|
+
"swversion": "1.29.0_r21169",
|
152
|
+
"swconfigid": "321D79EA",
|
153
|
+
"productid": "Philips-LWB014-1-A19DLv4"
|
154
|
+
},
|
155
|
+
"5": {
|
156
|
+
"state": {
|
157
|
+
"on": true,
|
158
|
+
"bri": 254,
|
159
|
+
"alert": "select",
|
160
|
+
"mode": "homeautomation",
|
161
|
+
"reachable": true
|
162
|
+
},
|
163
|
+
"swupdate": {
|
164
|
+
"state": "noupdates",
|
165
|
+
"lastinstall": null
|
166
|
+
},
|
167
|
+
"type": "Dimmable light",
|
168
|
+
"name": "Mantel right",
|
169
|
+
"modelid": "LWB014",
|
170
|
+
"manufacturername": "Philips",
|
171
|
+
"productname": "Hue white lamp",
|
172
|
+
"capabilities": {
|
173
|
+
"certified": true,
|
174
|
+
"control": {
|
175
|
+
"mindimlevel": 5000,
|
176
|
+
"maxlumen": 840
|
177
|
+
},
|
178
|
+
"streaming": {
|
179
|
+
"renderer": false,
|
180
|
+
"proxy": false
|
181
|
+
}
|
182
|
+
},
|
183
|
+
"config": {
|
184
|
+
"archetype": "classicbulb",
|
185
|
+
"function": "functional",
|
186
|
+
"direction": "omnidirectional"
|
187
|
+
},
|
188
|
+
"uniqueid": "00:17:88:01:03:3d:c8:e5-0b",
|
189
|
+
"swversion": "1.29.0_r21169",
|
190
|
+
"swconfigid": "321D79EA",
|
191
|
+
"productid": "Philips-LWB014-1-A19DLv4"
|
192
|
+
},
|
193
|
+
"6": {
|
194
|
+
"state": {
|
195
|
+
"on": true,
|
196
|
+
"bri": 254,
|
197
|
+
"alert": "select",
|
198
|
+
"mode": "homeautomation",
|
199
|
+
"reachable": true
|
200
|
+
},
|
201
|
+
"swupdate": {
|
202
|
+
"state": "noupdates",
|
203
|
+
"lastinstall": null
|
204
|
+
},
|
205
|
+
"type": "Dimmable light",
|
206
|
+
"name": "Sofa",
|
207
|
+
"modelid": "LWB014",
|
208
|
+
"manufacturername": "Philips",
|
209
|
+
"productname": "Hue white lamp",
|
210
|
+
"capabilities": {
|
211
|
+
"certified": true,
|
212
|
+
"control": {
|
213
|
+
"mindimlevel": 5000,
|
214
|
+
"maxlumen": 840
|
215
|
+
},
|
216
|
+
"streaming": {
|
217
|
+
"renderer": false,
|
218
|
+
"proxy": false
|
219
|
+
}
|
220
|
+
},
|
221
|
+
"config": {
|
222
|
+
"archetype": "classicbulb",
|
223
|
+
"function": "functional",
|
224
|
+
"direction": "omnidirectional"
|
225
|
+
},
|
226
|
+
"uniqueid": "00:17:88:01:03:3d:c8:ec-0b",
|
227
|
+
"swversion": "1.29.0_r21169",
|
228
|
+
"swconfigid": "321D79EA",
|
229
|
+
"productid": "Philips-LWB014-1-A19DLv4"
|
230
|
+
}
|
231
|
+
},
|
232
|
+
"groups": {
|
233
|
+
"1": {
|
234
|
+
"name": "Livingroom",
|
235
|
+
"lights": [
|
236
|
+
"4",
|
237
|
+
"5",
|
238
|
+
"6",
|
239
|
+
"3"
|
240
|
+
],
|
241
|
+
"sensors": [],
|
242
|
+
"type": "Room",
|
243
|
+
"state": {
|
244
|
+
"all_on": true,
|
245
|
+
"any_on": true
|
246
|
+
},
|
247
|
+
"recycle": false,
|
248
|
+
"class": "Living room",
|
249
|
+
"action": {
|
250
|
+
"on": true,
|
251
|
+
"bri": 254,
|
252
|
+
"alert": "none"
|
253
|
+
}
|
254
|
+
},
|
255
|
+
"2": {
|
256
|
+
"name": "Front",
|
257
|
+
"lights": [
|
258
|
+
"2",
|
259
|
+
"1"
|
260
|
+
],
|
261
|
+
"sensors": [],
|
262
|
+
"type": "Room",
|
263
|
+
"state": {
|
264
|
+
"all_on": true,
|
265
|
+
"any_on": true
|
266
|
+
},
|
267
|
+
"recycle": false,
|
268
|
+
"class": "Living room",
|
269
|
+
"action": {
|
270
|
+
"on": true,
|
271
|
+
"bri": 144,
|
272
|
+
"alert": "none"
|
273
|
+
}
|
274
|
+
}
|
275
|
+
},
|
276
|
+
"config": {
|
277
|
+
"name": "Philips hue",
|
278
|
+
"zigbeechannel": 15,
|
279
|
+
"bridgeid": "001788FFFE71C27D",
|
280
|
+
"mac": "00:17:88:71:c2:7d",
|
281
|
+
"dhcp": true,
|
282
|
+
"ipaddress": "10.0.0.89",
|
283
|
+
"netmask": "255.255.255.0",
|
284
|
+
"gateway": "10.0.0.1",
|
285
|
+
"proxyaddress": "none",
|
286
|
+
"proxyport": 0,
|
287
|
+
"UTC": "2018-10-23T00:54:19",
|
288
|
+
"localtime": "2018-10-22T20:54:19",
|
289
|
+
"timezone": "America/New_York",
|
290
|
+
"modelid": "BSB002",
|
291
|
+
"datastoreversion": "73",
|
292
|
+
"swversion": "1809121051",
|
293
|
+
"apiversion": "1.27.0",
|
294
|
+
"swupdate": {
|
295
|
+
"updatestate": 0,
|
296
|
+
"checkforupdate": false,
|
297
|
+
"devicetypes": {
|
298
|
+
"bridge": false,
|
299
|
+
"lights": [],
|
300
|
+
"sensors": []
|
301
|
+
},
|
302
|
+
"url": "",
|
303
|
+
"text": "",
|
304
|
+
"notify": false
|
305
|
+
},
|
306
|
+
"swupdate2": {
|
307
|
+
"checkforupdate": false,
|
308
|
+
"lastchange": "2018-10-21T01:44:18",
|
309
|
+
"bridge": {
|
310
|
+
"state": "noupdates",
|
311
|
+
"lastinstall": null
|
312
|
+
},
|
313
|
+
"state": "noupdates",
|
314
|
+
"autoinstall": {
|
315
|
+
"updatetime": "T14:00:00",
|
316
|
+
"on": false
|
317
|
+
}
|
318
|
+
},
|
319
|
+
"linkbutton": false,
|
320
|
+
"portalservices": true,
|
321
|
+
"portalconnection": "connected",
|
322
|
+
"portalstate": {
|
323
|
+
"signedon": true,
|
324
|
+
"incoming": false,
|
325
|
+
"outgoing": true,
|
326
|
+
"communication": "disconnected"
|
327
|
+
},
|
328
|
+
"internetservices": {
|
329
|
+
"internet": "connected",
|
330
|
+
"remoteaccess": "connected",
|
331
|
+
"time": "connected",
|
332
|
+
"swupdate": "connected"
|
333
|
+
},
|
334
|
+
"factorynew": false,
|
335
|
+
"replacesbridgeid": null,
|
336
|
+
"backup": {
|
337
|
+
"status": "idle",
|
338
|
+
"errorcode": 0
|
339
|
+
},
|
340
|
+
"starterkitid": "",
|
341
|
+
"whitelist": {
|
342
|
+
"78UEGUotX3otmWxbhiucELCLiiKmaD9E2O5YW-d1": {
|
343
|
+
"last use date": "2018-10-23T00:54:19",
|
344
|
+
"create date": "2018-10-20T17:54:35",
|
345
|
+
"name": "my_hue_app#iphone peter"
|
346
|
+
},
|
347
|
+
"oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp": {
|
348
|
+
"last use date": "2018-10-22T23:46:40",
|
349
|
+
"create date": "2018-10-20T18:22:50",
|
350
|
+
"name": "Hue 3#RpsIphone"
|
351
|
+
},
|
352
|
+
"rjV6OXFntA0widLQZpidsPQg65cj4bGBgfbAHiww": {
|
353
|
+
"last use date": "2018-10-22T19:01:40",
|
354
|
+
"create date": "2018-10-21T03:00:40",
|
355
|
+
"name": "Echo"
|
356
|
+
},
|
357
|
+
"nlHr5n2Ea1Waf-9yTrxRVLzOpR0P2dciNDOW6DL7": {
|
358
|
+
"last use date": "2018-10-22T20:01:40",
|
359
|
+
"create date": "2018-10-21T13:41:09",
|
360
|
+
"name": "HueNest#WebService"
|
361
|
+
},
|
362
|
+
"HC0XoXbNiWeeKhrXjti6tMt8a-Q0a2NUwKIutJZA": {
|
363
|
+
"last use date": "2018-10-22T23:46:40",
|
364
|
+
"create date": "2018-10-21T18:24:43",
|
365
|
+
"name": "hue-alexa-smarthome-skill-v1"
|
366
|
+
}
|
367
|
+
}
|
368
|
+
},
|
369
|
+
"schedules": {
|
370
|
+
"1": {
|
371
|
+
"name": "Go to sleep start",
|
372
|
+
"description": "Trigger go to sleep start",
|
373
|
+
"command": {
|
374
|
+
"address": "/api/oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY/sensors/5/state",
|
375
|
+
"body": {
|
376
|
+
"flag": true
|
377
|
+
},
|
378
|
+
"method": "PUT"
|
379
|
+
},
|
380
|
+
"localtime": "W127/T22:00:00",
|
381
|
+
"time": "W127/T02:00:00",
|
382
|
+
"created": "2018-10-21T01:44:18",
|
383
|
+
"status": "enabled",
|
384
|
+
"recycle": true
|
385
|
+
},
|
386
|
+
"2": {
|
387
|
+
"name": "nest-morning-off",
|
388
|
+
"description": "By hue Nest",
|
389
|
+
"command": {
|
390
|
+
"address": "/api/nlHr5n2Ea1Waf-9yTrxRVLzOpR0P2dciNDOW6DL7/groups/0/action",
|
391
|
+
"body": {
|
392
|
+
"on": false
|
393
|
+
},
|
394
|
+
"method": "PUT"
|
395
|
+
},
|
396
|
+
"localtime": "W127/T09:00:00A00:30:00",
|
397
|
+
"time": "W127/T13:00:00A00:30:00",
|
398
|
+
"created": "2018-10-21T13:52:50",
|
399
|
+
"status": "disabled",
|
400
|
+
"recycle": false
|
401
|
+
},
|
402
|
+
"3": {
|
403
|
+
"name": "nest-evening-on",
|
404
|
+
"description": "By hue Nest",
|
405
|
+
"command": {
|
406
|
+
"address": "/api/nlHr5n2Ea1Waf-9yTrxRVLzOpR0P2dciNDOW6DL7/groups/0/action",
|
407
|
+
"body": {
|
408
|
+
"on": true
|
409
|
+
},
|
410
|
+
"method": "PUT"
|
411
|
+
},
|
412
|
+
"localtime": "W127/T18:00:00A00:30:00",
|
413
|
+
"time": "W127/T22:00:00A00:30:00",
|
414
|
+
"created": "2018-10-21T13:52:50",
|
415
|
+
"status": "disabled",
|
416
|
+
"recycle": false
|
417
|
+
},
|
418
|
+
"4": {
|
419
|
+
"name": "nest-evening-off",
|
420
|
+
"description": "By hue Nest",
|
421
|
+
"command": {
|
422
|
+
"address": "/api/nlHr5n2Ea1Waf-9yTrxRVLzOpR0P2dciNDOW6DL7/groups/0/action",
|
423
|
+
"body": {
|
424
|
+
"on": false
|
425
|
+
},
|
426
|
+
"method": "PUT"
|
427
|
+
},
|
428
|
+
"localtime": "W127/T23:00:00A00:30:00",
|
429
|
+
"time": "W127/T03:00:00A00:30:00",
|
430
|
+
"created": "2018-10-21T13:52:50",
|
431
|
+
"status": "disabled",
|
432
|
+
"recycle": false
|
433
|
+
},
|
434
|
+
"5": {
|
435
|
+
"name": "nest-morning-on",
|
436
|
+
"description": "By hue Nest",
|
437
|
+
"command": {
|
438
|
+
"address": "/api/nlHr5n2Ea1Waf-9yTrxRVLzOpR0P2dciNDOW6DL7/groups/0/action",
|
439
|
+
"body": {
|
440
|
+
"on": true
|
441
|
+
},
|
442
|
+
"method": "PUT"
|
443
|
+
},
|
444
|
+
"localtime": "W127/T07:00:00A00:30:00",
|
445
|
+
"time": "W127/T11:00:00A00:30:00",
|
446
|
+
"created": "2018-10-21T13:52:51",
|
447
|
+
"status": "disabled",
|
448
|
+
"recycle": false
|
449
|
+
}
|
450
|
+
},
|
451
|
+
"scenes": {
|
452
|
+
"GX9QiSrGsRJMM92": {
|
453
|
+
"name": "Bright",
|
454
|
+
"lights": [
|
455
|
+
"3",
|
456
|
+
"4",
|
457
|
+
"5",
|
458
|
+
"6"
|
459
|
+
],
|
460
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
461
|
+
"recycle": false,
|
462
|
+
"locked": false,
|
463
|
+
"appdata": {
|
464
|
+
"version": 1,
|
465
|
+
"data": "o5OXm_r01_d05"
|
466
|
+
},
|
467
|
+
"picture": "",
|
468
|
+
"lastupdated": "2018-10-21T01:40:55",
|
469
|
+
"version": 2
|
470
|
+
},
|
471
|
+
"1DNM5cm3sR83OgR": {
|
472
|
+
"name": "Dimmed",
|
473
|
+
"lights": [
|
474
|
+
"3",
|
475
|
+
"4",
|
476
|
+
"5",
|
477
|
+
"6"
|
478
|
+
],
|
479
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
480
|
+
"recycle": false,
|
481
|
+
"locked": false,
|
482
|
+
"appdata": {
|
483
|
+
"version": 1,
|
484
|
+
"data": "sHxcP_r01_d06"
|
485
|
+
},
|
486
|
+
"picture": "",
|
487
|
+
"lastupdated": "2018-10-21T01:40:55",
|
488
|
+
"version": 2
|
489
|
+
},
|
490
|
+
"CSiArHPJWaD0XIW": {
|
491
|
+
"name": "Nightlight",
|
492
|
+
"lights": [
|
493
|
+
"3",
|
494
|
+
"4",
|
495
|
+
"5",
|
496
|
+
"6"
|
497
|
+
],
|
498
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
499
|
+
"recycle": false,
|
500
|
+
"locked": false,
|
501
|
+
"appdata": {
|
502
|
+
"version": 1,
|
503
|
+
"data": "gHofY_r01_d07"
|
504
|
+
},
|
505
|
+
"picture": "",
|
506
|
+
"lastupdated": "2018-10-21T01:40:55",
|
507
|
+
"version": 2
|
508
|
+
},
|
509
|
+
"xhUiyn3IrYVkJD0": {
|
510
|
+
"name": "Bright",
|
511
|
+
"lights": [
|
512
|
+
"1",
|
513
|
+
"2"
|
514
|
+
],
|
515
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
516
|
+
"recycle": false,
|
517
|
+
"locked": false,
|
518
|
+
"appdata": {
|
519
|
+
"version": 1,
|
520
|
+
"data": "AFmiJ_r02_d05"
|
521
|
+
},
|
522
|
+
"picture": "",
|
523
|
+
"lastupdated": "2018-10-21T01:40:55",
|
524
|
+
"version": 2
|
525
|
+
},
|
526
|
+
"P2ekfnjJf2C8UX6": {
|
527
|
+
"name": "Dimmed",
|
528
|
+
"lights": [
|
529
|
+
"1",
|
530
|
+
"2"
|
531
|
+
],
|
532
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
533
|
+
"recycle": false,
|
534
|
+
"locked": false,
|
535
|
+
"appdata": {
|
536
|
+
"version": 1,
|
537
|
+
"data": "5kBj1_r02_d06"
|
538
|
+
},
|
539
|
+
"picture": "",
|
540
|
+
"lastupdated": "2018-10-21T01:40:56",
|
541
|
+
"version": 2
|
542
|
+
},
|
543
|
+
"hJhoGiizjJ6IOpa": {
|
544
|
+
"name": "Nightlight",
|
545
|
+
"lights": [
|
546
|
+
"1",
|
547
|
+
"2"
|
548
|
+
],
|
549
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
550
|
+
"recycle": false,
|
551
|
+
"locked": false,
|
552
|
+
"appdata": {
|
553
|
+
"version": 1,
|
554
|
+
"data": "LeM0a_r02_d07"
|
555
|
+
},
|
556
|
+
"picture": "",
|
557
|
+
"lastupdated": "2018-10-21T01:40:56",
|
558
|
+
"version": 2
|
559
|
+
},
|
560
|
+
"Wrz0KzWoCt0P-8A": {
|
561
|
+
"name": "Go to sleep start",
|
562
|
+
"lights": [
|
563
|
+
"3",
|
564
|
+
"4",
|
565
|
+
"5",
|
566
|
+
"6"
|
567
|
+
],
|
568
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
569
|
+
"recycle": true,
|
570
|
+
"locked": true,
|
571
|
+
"appdata": {
|
572
|
+
"version": 1,
|
573
|
+
"data": "4si3V_r00"
|
574
|
+
},
|
575
|
+
"picture": "",
|
576
|
+
"lastupdated": "2018-10-21T01:44:18",
|
577
|
+
"version": 2
|
578
|
+
},
|
579
|
+
"C5MoOCaA6WeLiSC": {
|
580
|
+
"name": "Go to sleep end",
|
581
|
+
"lights": [
|
582
|
+
"3",
|
583
|
+
"4",
|
584
|
+
"5",
|
585
|
+
"6"
|
586
|
+
],
|
587
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
588
|
+
"recycle": true,
|
589
|
+
"locked": true,
|
590
|
+
"appdata": {
|
591
|
+
"version": 1,
|
592
|
+
"data": "owBm7_r00"
|
593
|
+
},
|
594
|
+
"picture": "",
|
595
|
+
"lastupdated": "2018-10-21T01:44:18",
|
596
|
+
"version": 2
|
597
|
+
},
|
598
|
+
"tomdYwJj7BJAtlK": {
|
599
|
+
"name": "Scene myScene huelabs/sunset-t",
|
600
|
+
"lights": [
|
601
|
+
"1",
|
602
|
+
"2"
|
603
|
+
],
|
604
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
605
|
+
"recycle": true,
|
606
|
+
"locked": false,
|
607
|
+
"appdata": {},
|
608
|
+
"picture": "",
|
609
|
+
"lastupdated": "2018-10-22T23:33:06",
|
610
|
+
"version": 2
|
611
|
+
},
|
612
|
+
"h52ObSN-WX71Uc6": {
|
613
|
+
"name": "50",
|
614
|
+
"lights": [
|
615
|
+
"1",
|
616
|
+
"2"
|
617
|
+
],
|
618
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
619
|
+
"recycle": false,
|
620
|
+
"locked": false,
|
621
|
+
"appdata": {
|
622
|
+
"version": 1,
|
623
|
+
"data": "r8U8a_r02_d99"
|
624
|
+
},
|
625
|
+
"picture": "",
|
626
|
+
"lastupdated": "2018-10-22T23:34:55",
|
627
|
+
"version": 2
|
628
|
+
},
|
629
|
+
"OzUGvczbksBKkAp": {
|
630
|
+
"name": "Scene myScene huelabs/sunset-t",
|
631
|
+
"lights": [
|
632
|
+
"1",
|
633
|
+
"2"
|
634
|
+
],
|
635
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
636
|
+
"recycle": true,
|
637
|
+
"locked": true,
|
638
|
+
"appdata": {},
|
639
|
+
"picture": "",
|
640
|
+
"lastupdated": "2018-10-22T23:35:17",
|
641
|
+
"version": 2
|
642
|
+
}
|
643
|
+
},
|
644
|
+
"rules": {
|
645
|
+
"1": {
|
646
|
+
"name": "RpsIphone",
|
647
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
648
|
+
"created": "2018-10-21T01:41:51",
|
649
|
+
"lasttriggered": "2018-10-22T22:38:26",
|
650
|
+
"timestriggered": 3,
|
651
|
+
"status": "enabled",
|
652
|
+
"recycle": false,
|
653
|
+
"conditions": [
|
654
|
+
{
|
655
|
+
"address": "/sensors/2/state/lastupdated",
|
656
|
+
"operator": "dx"
|
657
|
+
},
|
658
|
+
{
|
659
|
+
"address": "/sensors/2/state/presence",
|
660
|
+
"operator": "eq",
|
661
|
+
"value": "true"
|
662
|
+
}
|
663
|
+
],
|
664
|
+
"actions": [
|
665
|
+
{
|
666
|
+
"address": "/sensors/3/state",
|
667
|
+
"method": "PUT",
|
668
|
+
"body": {
|
669
|
+
"presence": true
|
670
|
+
}
|
671
|
+
}
|
672
|
+
]
|
673
|
+
},
|
674
|
+
"2": {
|
675
|
+
"name": "RpsIphone",
|
676
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
677
|
+
"created": "2018-10-21T01:41:51",
|
678
|
+
"lasttriggered": "2018-10-22T14:05:55",
|
679
|
+
"timestriggered": 2,
|
680
|
+
"status": "enabled",
|
681
|
+
"recycle": false,
|
682
|
+
"conditions": [
|
683
|
+
{
|
684
|
+
"address": "/sensors/2/state/lastupdated",
|
685
|
+
"operator": "dx"
|
686
|
+
},
|
687
|
+
{
|
688
|
+
"address": "/sensors/2/state/presence",
|
689
|
+
"operator": "eq",
|
690
|
+
"value": "false"
|
691
|
+
}
|
692
|
+
],
|
693
|
+
"actions": [
|
694
|
+
{
|
695
|
+
"address": "/sensors/3/state",
|
696
|
+
"method": "PUT",
|
697
|
+
"body": {
|
698
|
+
"presence": false
|
699
|
+
}
|
700
|
+
}
|
701
|
+
]
|
702
|
+
},
|
703
|
+
"3": {
|
704
|
+
"name": "Go to sleep start",
|
705
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
706
|
+
"created": "2018-10-21T01:44:18",
|
707
|
+
"lasttriggered": "2018-10-22T02:00:00",
|
708
|
+
"timestriggered": 2,
|
709
|
+
"status": "enabled",
|
710
|
+
"recycle": true,
|
711
|
+
"conditions": [
|
712
|
+
{
|
713
|
+
"address": "/sensors/5/state/flag",
|
714
|
+
"operator": "eq",
|
715
|
+
"value": "true"
|
716
|
+
}
|
717
|
+
],
|
718
|
+
"actions": [
|
719
|
+
{
|
720
|
+
"address": "/groups/0/action",
|
721
|
+
"method": "PUT",
|
722
|
+
"body": {
|
723
|
+
"scene": "Wrz0KzWoCt0P-8A"
|
724
|
+
}
|
725
|
+
}
|
726
|
+
]
|
727
|
+
},
|
728
|
+
"4": {
|
729
|
+
"name": "Go to sleep fade",
|
730
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
731
|
+
"created": "2018-10-21T01:44:18",
|
732
|
+
"lasttriggered": "2018-10-22T02:01:00",
|
733
|
+
"timestriggered": 2,
|
734
|
+
"status": "enabled",
|
735
|
+
"recycle": true,
|
736
|
+
"conditions": [
|
737
|
+
{
|
738
|
+
"address": "/sensors/5/state/flag",
|
739
|
+
"operator": "eq",
|
740
|
+
"value": "true"
|
741
|
+
},
|
742
|
+
{
|
743
|
+
"address": "/sensors/5/state/flag",
|
744
|
+
"operator": "ddx",
|
745
|
+
"value": "PT00:01:00"
|
746
|
+
}
|
747
|
+
],
|
748
|
+
"actions": [
|
749
|
+
{
|
750
|
+
"address": "/groups/0/action",
|
751
|
+
"method": "PUT",
|
752
|
+
"body": {
|
753
|
+
"scene": "C5MoOCaA6WeLiSC"
|
754
|
+
}
|
755
|
+
},
|
756
|
+
{
|
757
|
+
"address": "/sensors/5/state",
|
758
|
+
"method": "PUT",
|
759
|
+
"body": {
|
760
|
+
"flag": false
|
761
|
+
}
|
762
|
+
}
|
763
|
+
]
|
764
|
+
},
|
765
|
+
"7": {
|
766
|
+
"name": "5:huelabs/sunset-timer",
|
767
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
768
|
+
"created": "2018-10-22T23:35:17",
|
769
|
+
"lasttriggered": "none",
|
770
|
+
"timestriggered": 0,
|
771
|
+
"status": "enabled",
|
772
|
+
"recycle": true,
|
773
|
+
"conditions": [
|
774
|
+
{
|
775
|
+
"address": "/sensors/1/state/daylight",
|
776
|
+
"operator": "eq",
|
777
|
+
"value": "false"
|
778
|
+
},
|
779
|
+
{
|
780
|
+
"address": "/sensors/1/state/daylight",
|
781
|
+
"operator": "dx"
|
782
|
+
}
|
783
|
+
],
|
784
|
+
"actions": [
|
785
|
+
{
|
786
|
+
"address": "/groups/2/action",
|
787
|
+
"method": "PUT",
|
788
|
+
"body": {
|
789
|
+
"scene": "OzUGvczbksBKkAp"
|
790
|
+
}
|
791
|
+
}
|
792
|
+
]
|
793
|
+
},
|
794
|
+
"8": {
|
795
|
+
"name": "5:huelabs/sunset-timer",
|
796
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
797
|
+
"created": "2018-10-22T23:35:17",
|
798
|
+
"lasttriggered": "none",
|
799
|
+
"timestriggered": 0,
|
800
|
+
"status": "enabled",
|
801
|
+
"recycle": true,
|
802
|
+
"conditions": [
|
803
|
+
{
|
804
|
+
"address": "/sensors/1/state/daylight",
|
805
|
+
"operator": "eq",
|
806
|
+
"value": "true"
|
807
|
+
},
|
808
|
+
{
|
809
|
+
"address": "/sensors/1/state/daylight",
|
810
|
+
"operator": "dx"
|
811
|
+
}
|
812
|
+
],
|
813
|
+
"actions": [
|
814
|
+
{
|
815
|
+
"address": "/groups/2/action",
|
816
|
+
"method": "PUT",
|
817
|
+
"body": {
|
818
|
+
"on": false,
|
819
|
+
"transitiontime": 6000
|
820
|
+
}
|
821
|
+
}
|
822
|
+
]
|
823
|
+
}
|
824
|
+
},
|
825
|
+
"sensors": {
|
826
|
+
"1": {
|
827
|
+
"state": {
|
828
|
+
"daylight": false,
|
829
|
+
"lastupdated": "2018-10-22T21:22:00"
|
830
|
+
},
|
831
|
+
"config": {
|
832
|
+
"on": true,
|
833
|
+
"configured": true,
|
834
|
+
"sunriseoffset": 30,
|
835
|
+
"sunsetoffset": -30
|
836
|
+
},
|
837
|
+
"name": "Daylight",
|
838
|
+
"type": "Daylight",
|
839
|
+
"modelid": "PHDL00",
|
840
|
+
"manufacturername": "Philips",
|
841
|
+
"swversion": "1.0"
|
842
|
+
},
|
843
|
+
"2": {
|
844
|
+
"state": {
|
845
|
+
"presence": true,
|
846
|
+
"lastupdated": "2018-10-22T22:38:26"
|
847
|
+
},
|
848
|
+
"config": {
|
849
|
+
"on": true,
|
850
|
+
"reachable": true
|
851
|
+
},
|
852
|
+
"name": "RpsIphone",
|
853
|
+
"type": "Geofence",
|
854
|
+
"modelid": "HA_GEOFENCE",
|
855
|
+
"manufacturername": "Philips",
|
856
|
+
"swversion": "1.0",
|
857
|
+
"uniqueid": "L_02_9jWPz",
|
858
|
+
"recycle": false
|
859
|
+
},
|
860
|
+
"3": {
|
861
|
+
"state": {
|
862
|
+
"presence": true,
|
863
|
+
"lastupdated": "2018-10-22T22:38:26"
|
864
|
+
},
|
865
|
+
"config": {
|
866
|
+
"on": true,
|
867
|
+
"reachable": true
|
868
|
+
},
|
869
|
+
"name": "HomeAway",
|
870
|
+
"type": "CLIPPresence",
|
871
|
+
"modelid": "HOMEAWAY",
|
872
|
+
"manufacturername": "Philips",
|
873
|
+
"swversion": "1.0",
|
874
|
+
"uniqueid": "L_01_YQDm7",
|
875
|
+
"recycle": false
|
876
|
+
},
|
877
|
+
"5": {
|
878
|
+
"state": {
|
879
|
+
"flag": false,
|
880
|
+
"lastupdated": "2018-10-22T02:01:00"
|
881
|
+
},
|
882
|
+
"config": {
|
883
|
+
"on": true,
|
884
|
+
"reachable": true
|
885
|
+
},
|
886
|
+
"name": "Go to sleep",
|
887
|
+
"type": "CLIPGenericFlag",
|
888
|
+
"modelid": "GOTOSLEEP",
|
889
|
+
"manufacturername": "Philips",
|
890
|
+
"swversion": "A_1",
|
891
|
+
"uniqueid": "L_05_sAlcD",
|
892
|
+
"recycle": true
|
893
|
+
}
|
894
|
+
},
|
895
|
+
"resourcelinks": {
|
896
|
+
"29561": {
|
897
|
+
"name": "Night",
|
898
|
+
"description": "Go to sleep behaviour",
|
899
|
+
"type": "Link",
|
900
|
+
"classid": 20010,
|
901
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
902
|
+
"recycle": false,
|
903
|
+
"links": [
|
904
|
+
"/sensors/5",
|
905
|
+
"/schedules/1",
|
906
|
+
"/groups/1",
|
907
|
+
"/rules/3",
|
908
|
+
"/rules/4",
|
909
|
+
"/scenes/C5MoOCaA6WeLiSC",
|
910
|
+
"/scenes/Wrz0KzWoCt0P-8A"
|
911
|
+
]
|
912
|
+
},
|
913
|
+
"38798": {
|
914
|
+
"name": "HueLabs 2.0",
|
915
|
+
"description": "All installed formulas",
|
916
|
+
"type": "Link",
|
917
|
+
"classid": 1,
|
918
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
919
|
+
"recycle": false,
|
920
|
+
"links": [
|
921
|
+
"/resourcelinks/4805"
|
922
|
+
]
|
923
|
+
},
|
924
|
+
"4805": {
|
925
|
+
"name": "Sunset to sunrise",
|
926
|
+
"description": "664127eec7cc19b6b7635e8811b3669d:0:6b592a8cdb65e9c80cc429d33b17",
|
927
|
+
"type": "Link",
|
928
|
+
"classid": 2,
|
929
|
+
"owner": "oOkEqFnel2ahz8CngoVzQVUQWqrgrtDY3h3uwxjp",
|
930
|
+
"recycle": true,
|
931
|
+
"links": [
|
932
|
+
"/scenes/OzUGvczbksBKkAp",
|
933
|
+
"/rules/7",
|
934
|
+
"/rules/8"
|
935
|
+
]
|
936
|
+
}
|
937
|
+
}
|
938
|
+
}
|