ansible4ozw 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Ansible
2
- VERSION = "0.0.6".freeze
2
+ VERSION = "0.0.7".freeze
3
3
  end
@@ -3,7 +3,6 @@
3
3
  #
4
4
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  #
6
-
7
6
  require 'ansible/zwave/openzwave/ozw_types'
8
7
 
9
8
  module OpenZWave
@@ -9,12 +9,12 @@ module OpenZWave
9
9
  class Client
10
10
  include ::Thrift::Client
11
11
 
12
- def WriteConfig(_homeId)
12
+ def WriteConfig(_homeId=HomeID)
13
13
  send_WriteConfig(_homeId)
14
14
  recv_WriteConfig()
15
15
  end
16
16
 
17
- def send_WriteConfig(_homeId)
17
+ def send_WriteConfig(_homeId=HomeID)
18
18
  send_message('WriteConfig', WriteConfig_args, :_homeId => _homeId)
19
19
  end
20
20
 
@@ -23,12 +23,12 @@ module OpenZWave
23
23
  return
24
24
  end
25
25
 
26
- def GetControllerNodeId(_homeId)
26
+ def GetControllerNodeId(_homeId=HomeID)
27
27
  send_GetControllerNodeId(_homeId)
28
28
  return recv_GetControllerNodeId()
29
29
  end
30
30
 
31
- def send_GetControllerNodeId(_homeId)
31
+ def send_GetControllerNodeId(_homeId=HomeID)
32
32
  send_message('GetControllerNodeId', GetControllerNodeId_args, :_homeId => _homeId)
33
33
  end
34
34
 
@@ -38,12 +38,12 @@ module OpenZWave
38
38
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetControllerNodeId failed: unknown result')
39
39
  end
40
40
 
41
- def IsPrimaryController(_homeId)
41
+ def IsPrimaryController(_homeId=HomeID)
42
42
  send_IsPrimaryController(_homeId)
43
43
  return recv_IsPrimaryController()
44
44
  end
45
45
 
46
- def send_IsPrimaryController(_homeId)
46
+ def send_IsPrimaryController(_homeId=HomeID)
47
47
  send_message('IsPrimaryController', IsPrimaryController_args, :_homeId => _homeId)
48
48
  end
49
49
 
@@ -53,12 +53,12 @@ module OpenZWave
53
53
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'IsPrimaryController failed: unknown result')
54
54
  end
55
55
 
56
- def IsStaticUpdateController(_homeId)
56
+ def IsStaticUpdateController(_homeId=HomeID)
57
57
  send_IsStaticUpdateController(_homeId)
58
58
  return recv_IsStaticUpdateController()
59
59
  end
60
60
 
61
- def send_IsStaticUpdateController(_homeId)
61
+ def send_IsStaticUpdateController(_homeId=HomeID)
62
62
  send_message('IsStaticUpdateController', IsStaticUpdateController_args, :_homeId => _homeId)
63
63
  end
64
64
 
@@ -68,12 +68,12 @@ module OpenZWave
68
68
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'IsStaticUpdateController failed: unknown result')
69
69
  end
70
70
 
71
- def IsBridgeController(_homeId)
71
+ def IsBridgeController(_homeId=HomeID)
72
72
  send_IsBridgeController(_homeId)
73
73
  return recv_IsBridgeController()
74
74
  end
75
75
 
76
- def send_IsBridgeController(_homeId)
76
+ def send_IsBridgeController(_homeId=HomeID)
77
77
  send_message('IsBridgeController', IsBridgeController_args, :_homeId => _homeId)
78
78
  end
79
79
 
@@ -83,12 +83,12 @@ module OpenZWave
83
83
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'IsBridgeController failed: unknown result')
84
84
  end
85
85
 
86
- def GetLibraryVersion(_homeId)
86
+ def GetLibraryVersion(_homeId=HomeID)
87
87
  send_GetLibraryVersion(_homeId)
88
88
  return recv_GetLibraryVersion()
89
89
  end
90
90
 
91
- def send_GetLibraryVersion(_homeId)
91
+ def send_GetLibraryVersion(_homeId=HomeID)
92
92
  send_message('GetLibraryVersion', GetLibraryVersion_args, :_homeId => _homeId)
93
93
  end
94
94
 
@@ -98,12 +98,12 @@ module OpenZWave
98
98
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetLibraryVersion failed: unknown result')
99
99
  end
100
100
 
101
- def GetLibraryTypeName(_homeId)
101
+ def GetLibraryTypeName(_homeId=HomeID)
102
102
  send_GetLibraryTypeName(_homeId)
103
103
  return recv_GetLibraryTypeName()
104
104
  end
105
105
 
106
- def send_GetLibraryTypeName(_homeId)
106
+ def send_GetLibraryTypeName(_homeId=HomeID)
107
107
  send_message('GetLibraryTypeName', GetLibraryTypeName_args, :_homeId => _homeId)
108
108
  end
109
109
 
@@ -113,12 +113,12 @@ module OpenZWave
113
113
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetLibraryTypeName failed: unknown result')
114
114
  end
115
115
 
116
- def GetSendQueueCount(_homeId)
116
+ def GetSendQueueCount(_homeId=HomeID)
117
117
  send_GetSendQueueCount(_homeId)
118
118
  return recv_GetSendQueueCount()
119
119
  end
120
120
 
121
- def send_GetSendQueueCount(_homeId)
121
+ def send_GetSendQueueCount(_homeId=HomeID)
122
122
  send_message('GetSendQueueCount', GetSendQueueCount_args, :_homeId => _homeId)
123
123
  end
124
124
 
@@ -128,12 +128,12 @@ module OpenZWave
128
128
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetSendQueueCount failed: unknown result')
129
129
  end
130
130
 
131
- def LogDriverStatistics(_homeId)
131
+ def LogDriverStatistics(_homeId=HomeID)
132
132
  send_LogDriverStatistics(_homeId)
133
133
  recv_LogDriverStatistics()
134
134
  end
135
135
 
136
- def send_LogDriverStatistics(_homeId)
136
+ def send_LogDriverStatistics(_homeId=HomeID)
137
137
  send_message('LogDriverStatistics', LogDriverStatistics_args, :_homeId => _homeId)
138
138
  end
139
139
 
@@ -230,12 +230,12 @@ module OpenZWave
230
230
  return
231
231
  end
232
232
 
233
- def RefreshNodeInfo(_homeId, _nodeId)
234
- send_RefreshNodeInfo(_homeId, _nodeId)
233
+ def RefreshNodeInfo(_nodeId, _homeId=HomeID)
234
+ send_RefreshNodeInfo(_nodeId, _homeId)
235
235
  return recv_RefreshNodeInfo()
236
236
  end
237
237
 
238
- def send_RefreshNodeInfo(_homeId, _nodeId)
238
+ def send_RefreshNodeInfo(_nodeId, _homeId=HomeID)
239
239
  send_message('RefreshNodeInfo', RefreshNodeInfo_args, :_homeId => _homeId, :_nodeId => _nodeId)
240
240
  end
241
241
 
@@ -245,12 +245,12 @@ module OpenZWave
245
245
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'RefreshNodeInfo failed: unknown result')
246
246
  end
247
247
 
248
- def RequestNodeState(_homeId, _nodeId)
249
- send_RequestNodeState(_homeId, _nodeId)
248
+ def RequestNodeState(_nodeId, _homeId=HomeID)
249
+ send_RequestNodeState(_nodeId, _homeId=HomeID)
250
250
  return recv_RequestNodeState()
251
251
  end
252
252
 
253
- def send_RequestNodeState(_homeId, _nodeId)
253
+ def send_RequestNodeState(_nodeId, _homeId=HomeID)
254
254
  send_message('RequestNodeState', RequestNodeState_args, :_homeId => _homeId, :_nodeId => _nodeId)
255
255
  end
256
256
 
@@ -260,12 +260,12 @@ module OpenZWave
260
260
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'RequestNodeState failed: unknown result')
261
261
  end
262
262
 
263
- def RequestNodeDynamic(_homeId, _nodeId)
264
- send_RequestNodeDynamic(_homeId, _nodeId)
263
+ def RequestNodeDynamic(_nodeId, _homeId=HomeID)
264
+ send_RequestNodeDynamic(_nodeId, _homeId)
265
265
  return recv_RequestNodeDynamic()
266
266
  end
267
267
 
268
- def send_RequestNodeDynamic(_homeId, _nodeId)
268
+ def send_RequestNodeDynamic(_nodeId, _homeId=HomeID)
269
269
  send_message('RequestNodeDynamic', RequestNodeDynamic_args, :_homeId => _homeId, :_nodeId => _nodeId)
270
270
  end
271
271
 
@@ -275,12 +275,12 @@ module OpenZWave
275
275
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'RequestNodeDynamic failed: unknown result')
276
276
  end
277
277
 
278
- def IsNodeListeningDevice(_homeId, _nodeId)
279
- send_IsNodeListeningDevice(_homeId, _nodeId)
278
+ def IsNodeListeningDevice(_nodeId, _homeId=HomeID)
279
+ send_IsNodeListeningDevice(_nodeId, _homeId)
280
280
  return recv_IsNodeListeningDevice()
281
281
  end
282
282
 
283
- def send_IsNodeListeningDevice(_homeId, _nodeId)
283
+ def send_IsNodeListeningDevice(_nodeId, _homeId=HomeID)
284
284
  send_message('IsNodeListeningDevice', IsNodeListeningDevice_args, :_homeId => _homeId, :_nodeId => _nodeId)
285
285
  end
286
286
 
@@ -290,12 +290,12 @@ module OpenZWave
290
290
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'IsNodeListeningDevice failed: unknown result')
291
291
  end
292
292
 
293
- def IsNodeFrequentListeningDevice(_homeId, _nodeId)
294
- send_IsNodeFrequentListeningDevice(_homeId, _nodeId)
293
+ def IsNodeFrequentListeningDevice(_nodeId, _homeId=HomeID)
294
+ send_IsNodeFrequentListeningDevice(_nodeId, _homeId)
295
295
  return recv_IsNodeFrequentListeningDevice()
296
296
  end
297
297
 
298
- def send_IsNodeFrequentListeningDevice(_homeId, _nodeId)
298
+ def send_IsNodeFrequentListeningDevice(_nodeId, _homeId=HomeID)
299
299
  send_message('IsNodeFrequentListeningDevice', IsNodeFrequentListeningDevice_args, :_homeId => _homeId, :_nodeId => _nodeId)
300
300
  end
301
301
 
@@ -305,12 +305,12 @@ module OpenZWave
305
305
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'IsNodeFrequentListeningDevice failed: unknown result')
306
306
  end
307
307
 
308
- def IsNodeBeamingDevice(_homeId, _nodeId)
309
- send_IsNodeBeamingDevice(_homeId, _nodeId)
308
+ def IsNodeBeamingDevice(_nodeId, _homeId=HomeID)
309
+ send_IsNodeBeamingDevice(_nodeId, _homeId)
310
310
  return recv_IsNodeBeamingDevice()
311
311
  end
312
312
 
313
- def send_IsNodeBeamingDevice(_homeId, _nodeId)
313
+ def send_IsNodeBeamingDevice(_nodeId, _homeId=HomeID)
314
314
  send_message('IsNodeBeamingDevice', IsNodeBeamingDevice_args, :_homeId => _homeId, :_nodeId => _nodeId)
315
315
  end
316
316
 
@@ -320,12 +320,12 @@ module OpenZWave
320
320
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'IsNodeBeamingDevice failed: unknown result')
321
321
  end
322
322
 
323
- def IsNodeRoutingDevice(_homeId, _nodeId)
324
- send_IsNodeRoutingDevice(_homeId, _nodeId)
323
+ def IsNodeRoutingDevice(_nodeId, _homeId=HomeID)
324
+ send_IsNodeRoutingDevice(_nodeId, _homeId)
325
325
  return recv_IsNodeRoutingDevice()
326
326
  end
327
327
 
328
- def send_IsNodeRoutingDevice(_homeId, _nodeId)
328
+ def send_IsNodeRoutingDevice(_nodeId, _homeId=HomeID)
329
329
  send_message('IsNodeRoutingDevice', IsNodeRoutingDevice_args, :_homeId => _homeId, :_nodeId => _nodeId)
330
330
  end
331
331
 
@@ -335,12 +335,12 @@ module OpenZWave
335
335
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'IsNodeRoutingDevice failed: unknown result')
336
336
  end
337
337
 
338
- def IsNodeSecurityDevice(_homeId, _nodeId)
339
- send_IsNodeSecurityDevice(_homeId, _nodeId)
338
+ def IsNodeSecurityDevice(_nodeId, _homeId=HomeID)
339
+ send_IsNodeSecurityDevice(_nodeId, _homeId)
340
340
  return recv_IsNodeSecurityDevice()
341
341
  end
342
342
 
343
- def send_IsNodeSecurityDevice(_homeId, _nodeId)
343
+ def send_IsNodeSecurityDevice(_nodeId, _homeId=HomeID)
344
344
  send_message('IsNodeSecurityDevice', IsNodeSecurityDevice_args, :_homeId => _homeId, :_nodeId => _nodeId)
345
345
  end
346
346
 
@@ -350,12 +350,12 @@ module OpenZWave
350
350
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'IsNodeSecurityDevice failed: unknown result')
351
351
  end
352
352
 
353
- def GetNodeMaxBaudRate(_homeId, _nodeId)
354
- send_GetNodeMaxBaudRate(_homeId, _nodeId)
353
+ def GetNodeMaxBaudRate(_nodeId, _homeId=HomeID)
354
+ send_GetNodeMaxBaudRate(_nodeId, _homeId)
355
355
  return recv_GetNodeMaxBaudRate()
356
356
  end
357
357
 
358
- def send_GetNodeMaxBaudRate(_homeId, _nodeId)
358
+ def send_GetNodeMaxBaudRate(_nodeId, _homeId=HomeID)
359
359
  send_message('GetNodeMaxBaudRate', GetNodeMaxBaudRate_args, :_homeId => _homeId, :_nodeId => _nodeId)
360
360
  end
361
361
 
@@ -365,12 +365,12 @@ module OpenZWave
365
365
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetNodeMaxBaudRate failed: unknown result')
366
366
  end
367
367
 
368
- def GetNodeVersion(_homeId, _nodeId)
369
- send_GetNodeVersion(_homeId, _nodeId)
368
+ def GetNodeVersion(_nodeId, _homeId=HomeID)
369
+ send_GetNodeVersion(_nodeId, _homeId)
370
370
  return recv_GetNodeVersion()
371
371
  end
372
372
 
373
- def send_GetNodeVersion(_homeId, _nodeId)
373
+ def send_GetNodeVersion(_nodeId, _homeId=HomeID)
374
374
  send_message('GetNodeVersion', GetNodeVersion_args, :_homeId => _homeId, :_nodeId => _nodeId)
375
375
  end
376
376
 
@@ -380,12 +380,12 @@ module OpenZWave
380
380
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetNodeVersion failed: unknown result')
381
381
  end
382
382
 
383
- def GetNodeSecurity(_homeId, _nodeId)
384
- send_GetNodeSecurity(_homeId, _nodeId)
383
+ def GetNodeSecurity(_nodeId, _homeId=HomeID)
384
+ send_GetNodeSecurity(_nodeId, _homeId)
385
385
  return recv_GetNodeSecurity()
386
386
  end
387
387
 
388
- def send_GetNodeSecurity(_homeId, _nodeId)
388
+ def send_GetNodeSecurity(_nodeId, _homeId=HomeID)
389
389
  send_message('GetNodeSecurity', GetNodeSecurity_args, :_homeId => _homeId, :_nodeId => _nodeId)
390
390
  end
391
391
 
@@ -395,12 +395,12 @@ module OpenZWave
395
395
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetNodeSecurity failed: unknown result')
396
396
  end
397
397
 
398
- def GetNodeBasic(_homeId, _nodeId)
399
- send_GetNodeBasic(_homeId, _nodeId)
398
+ def GetNodeBasic(_nodeId, _homeId=HomeID)
399
+ send_GetNodeBasic(_nodeId, _homeId)
400
400
  return recv_GetNodeBasic()
401
401
  end
402
402
 
403
- def send_GetNodeBasic(_homeId, _nodeId)
403
+ def send_GetNodeBasic(_nodeId, _homeId=HomeID)
404
404
  send_message('GetNodeBasic', GetNodeBasic_args, :_homeId => _homeId, :_nodeId => _nodeId)
405
405
  end
406
406
 
@@ -410,12 +410,12 @@ module OpenZWave
410
410
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetNodeBasic failed: unknown result')
411
411
  end
412
412
 
413
- def GetNodeGeneric(_homeId, _nodeId)
414
- send_GetNodeGeneric(_homeId, _nodeId)
413
+ def GetNodeGeneric(_nodeId, _homeId=HomeID)
414
+ send_GetNodeGeneric(_nodeId, _homeId)
415
415
  return recv_GetNodeGeneric()
416
416
  end
417
417
 
418
- def send_GetNodeGeneric(_homeId, _nodeId)
418
+ def send_GetNodeGeneric(_nodeId, _homeId=HomeID)
419
419
  send_message('GetNodeGeneric', GetNodeGeneric_args, :_homeId => _homeId, :_nodeId => _nodeId)
420
420
  end
421
421
 
@@ -425,12 +425,12 @@ module OpenZWave
425
425
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetNodeGeneric failed: unknown result')
426
426
  end
427
427
 
428
- def GetNodeSpecific(_homeId, _nodeId)
429
- send_GetNodeSpecific(_homeId, _nodeId)
428
+ def GetNodeSpecific(_nodeId, _homeId=HomeID)
429
+ send_GetNodeSpecific(_nodeId, _homeId)
430
430
  return recv_GetNodeSpecific()
431
431
  end
432
432
 
433
- def send_GetNodeSpecific(_homeId, _nodeId)
433
+ def send_GetNodeSpecific(_nodeId, _homeId=HomeID)
434
434
  send_message('GetNodeSpecific', GetNodeSpecific_args, :_homeId => _homeId, :_nodeId => _nodeId)
435
435
  end
436
436
 
@@ -440,12 +440,12 @@ module OpenZWave
440
440
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetNodeSpecific failed: unknown result')
441
441
  end
442
442
 
443
- def GetNodeType(_homeId, _nodeId)
444
- send_GetNodeType(_homeId, _nodeId)
443
+ def GetNodeType(_nodeId, _homeId=HomeID)
444
+ send_GetNodeType(_nodeId, _homeId)
445
445
  return recv_GetNodeType()
446
446
  end
447
447
 
448
- def send_GetNodeType(_homeId, _nodeId)
448
+ def send_GetNodeType(_nodeId, _homeId=HomeID)
449
449
  send_message('GetNodeType', GetNodeType_args, :_homeId => _homeId, :_nodeId => _nodeId)
450
450
  end
451
451
 
@@ -455,12 +455,12 @@ module OpenZWave
455
455
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetNodeType failed: unknown result')
456
456
  end
457
457
 
458
- def GetNodeNeighbors(_homeId, _nodeId)
459
- send_GetNodeNeighbors(_homeId, _nodeId)
458
+ def GetNodeNeighbors(_nodeId, _homeId=HomeID)
459
+ send_GetNodeNeighbors(_nodeId, _homeId)
460
460
  return recv_GetNodeNeighbors()
461
461
  end
462
462
 
463
- def send_GetNodeNeighbors(_homeId, _nodeId)
463
+ def send_GetNodeNeighbors(_nodeId, _homeId=HomeID)
464
464
  send_message('GetNodeNeighbors', GetNodeNeighbors_args, :_homeId => _homeId, :_nodeId => _nodeId)
465
465
  end
466
466
 
@@ -470,12 +470,12 @@ module OpenZWave
470
470
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetNodeNeighbors failed: unknown result')
471
471
  end
472
472
 
473
- def GetNodeManufacturerName(_homeId, _nodeId)
474
- send_GetNodeManufacturerName(_homeId, _nodeId)
473
+ def GetNodeManufacturerName(_nodeId, _homeId=HomeID)
474
+ send_GetNodeManufacturerName(_nodeId, _homeId)
475
475
  return recv_GetNodeManufacturerName()
476
476
  end
477
477
 
478
- def send_GetNodeManufacturerName(_homeId, _nodeId)
478
+ def send_GetNodeManufacturerName(_nodeId, _homeId=HomeID)
479
479
  send_message('GetNodeManufacturerName', GetNodeManufacturerName_args, :_homeId => _homeId, :_nodeId => _nodeId)
480
480
  end
481
481
 
@@ -485,12 +485,12 @@ module OpenZWave
485
485
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetNodeManufacturerName failed: unknown result')
486
486
  end
487
487
 
488
- def GetNodeProductName(_homeId, _nodeId)
489
- send_GetNodeProductName(_homeId, _nodeId)
488
+ def GetNodeProductName(_nodeId, _homeId=HomeID)
489
+ send_GetNodeProductName(_nodeId, _homeId)
490
490
  return recv_GetNodeProductName()
491
491
  end
492
492
 
493
- def send_GetNodeProductName(_homeId, _nodeId)
493
+ def send_GetNodeProductName(_nodeId, _homeId=HomeID)
494
494
  send_message('GetNodeProductName', GetNodeProductName_args, :_homeId => _homeId, :_nodeId => _nodeId)
495
495
  end
496
496
 
@@ -500,12 +500,12 @@ module OpenZWave
500
500
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetNodeProductName failed: unknown result')
501
501
  end
502
502
 
503
- def GetNodeName(_homeId, _nodeId)
504
- send_GetNodeName(_homeId, _nodeId)
503
+ def GetNodeName(_nodeId, _homeId=HomeID)
504
+ send_GetNodeName(_nodeId, _homeId)
505
505
  return recv_GetNodeName()
506
506
  end
507
507
 
508
- def send_GetNodeName(_homeId, _nodeId)
508
+ def send_GetNodeName(_nodeId, _homeId=HomeID)
509
509
  send_message('GetNodeName', GetNodeName_args, :_homeId => _homeId, :_nodeId => _nodeId)
510
510
  end
511
511
 
@@ -515,12 +515,12 @@ module OpenZWave
515
515
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetNodeName failed: unknown result')
516
516
  end
517
517
 
518
- def GetNodeLocation(_homeId, _nodeId)
519
- send_GetNodeLocation(_homeId, _nodeId)
518
+ def GetNodeLocation(_nodeId, _homeId=HomeID)
519
+ send_GetNodeLocation(_nodeId, _homeId)
520
520
  return recv_GetNodeLocation()
521
521
  end
522
522
 
523
- def send_GetNodeLocation(_homeId, _nodeId)
523
+ def send_GetNodeLocation(_nodeId, _homeId=HomeID)
524
524
  send_message('GetNodeLocation', GetNodeLocation_args, :_homeId => _homeId, :_nodeId => _nodeId)
525
525
  end
526
526
 
@@ -530,12 +530,12 @@ module OpenZWave
530
530
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetNodeLocation failed: unknown result')
531
531
  end
532
532
 
533
- def GetNodeManufacturerId(_homeId, _nodeId)
534
- send_GetNodeManufacturerId(_homeId, _nodeId)
533
+ def GetNodeManufacturerId(_nodeId, _homeId=HomeID)
534
+ send_GetNodeManufacturerId(_nodeId, _homeId)
535
535
  return recv_GetNodeManufacturerId()
536
536
  end
537
537
 
538
- def send_GetNodeManufacturerId(_homeId, _nodeId)
538
+ def send_GetNodeManufacturerId(_nodeId, _homeId=HomeID)
539
539
  send_message('GetNodeManufacturerId', GetNodeManufacturerId_args, :_homeId => _homeId, :_nodeId => _nodeId)
540
540
  end
541
541
 
@@ -545,12 +545,12 @@ module OpenZWave
545
545
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetNodeManufacturerId failed: unknown result')
546
546
  end
547
547
 
548
- def GetNodeProductType(_homeId, _nodeId)
549
- send_GetNodeProductType(_homeId, _nodeId)
548
+ def GetNodeProductType(_nodeId, _homeId=HomeID)
549
+ send_GetNodeProductType(_nodeId, _homeId)
550
550
  return recv_GetNodeProductType()
551
551
  end
552
552
 
553
- def send_GetNodeProductType(_homeId, _nodeId)
553
+ def send_GetNodeProductType(_nodeId, _homeId=HomeID)
554
554
  send_message('GetNodeProductType', GetNodeProductType_args, :_homeId => _homeId, :_nodeId => _nodeId)
555
555
  end
556
556
 
@@ -560,12 +560,12 @@ module OpenZWave
560
560
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetNodeProductType failed: unknown result')
561
561
  end
562
562
 
563
- def GetNodeProductId(_homeId, _nodeId)
564
- send_GetNodeProductId(_homeId, _nodeId)
563
+ def GetNodeProductId(_nodeId, _homeId=HomeID)
564
+ send_GetNodeProductId(_nodeId, _homeId)
565
565
  return recv_GetNodeProductId()
566
566
  end
567
567
 
568
- def send_GetNodeProductId(_homeId, _nodeId)
568
+ def send_GetNodeProductId(_nodeId, _homeId=HomeID)
569
569
  send_message('GetNodeProductId', GetNodeProductId_args, :_homeId => _homeId, :_nodeId => _nodeId)
570
570
  end
571
571
 
@@ -575,12 +575,12 @@ module OpenZWave
575
575
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetNodeProductId failed: unknown result')
576
576
  end
577
577
 
578
- def SetNodeManufacturerName(_homeId, _nodeId, _manufacturerName)
579
- send_SetNodeManufacturerName(_homeId, _nodeId, _manufacturerName)
578
+ def SetNodeManufacturerName(_nodeId, _manufacturerName, _homeId=HomeID)
579
+ send_SetNodeManufacturerName(_nodeId, _manufacturerName, _homeId)
580
580
  recv_SetNodeManufacturerName()
581
581
  end
582
582
 
583
- def send_SetNodeManufacturerName(_homeId, _nodeId, _manufacturerName)
583
+ def send_SetNodeManufacturerName(_nodeId, _manufacturerName, _homeId=HomeID)
584
584
  send_message('SetNodeManufacturerName', SetNodeManufacturerName_args, :_homeId => _homeId, :_nodeId => _nodeId, :_manufacturerName => _manufacturerName)
585
585
  end
586
586
 
@@ -589,12 +589,12 @@ module OpenZWave
589
589
  return
590
590
  end
591
591
 
592
- def SetNodeProductName(_homeId, _nodeId, _productName)
593
- send_SetNodeProductName(_homeId, _nodeId, _productName)
592
+ def SetNodeProductName(_nodeId, _productName, _homeId=HomeID)
593
+ send_SetNodeProductName(_nodeId, _productName, _homeId)
594
594
  recv_SetNodeProductName()
595
595
  end
596
596
 
597
- def send_SetNodeProductName(_homeId, _nodeId, _productName)
597
+ def send_SetNodeProductName(_nodeId, _productName, _homeId=HomeID)
598
598
  send_message('SetNodeProductName', SetNodeProductName_args, :_homeId => _homeId, :_nodeId => _nodeId, :_productName => _productName)
599
599
  end
600
600
 
@@ -603,12 +603,12 @@ module OpenZWave
603
603
  return
604
604
  end
605
605
 
606
- def SetNodeName(_homeId, _nodeId, _nodeName)
607
- send_SetNodeName(_homeId, _nodeId, _nodeName)
606
+ def SetNodeName(_nodeId, _nodeName, _homeId=HomeID)
607
+ send_SetNodeName(_nodeId, _nodeName, _homeId)
608
608
  recv_SetNodeName()
609
609
  end
610
610
 
611
- def send_SetNodeName(_homeId, _nodeId, _nodeName)
611
+ def send_SetNodeName(_nodeId, _nodeName, _homeId=HomeID)
612
612
  send_message('SetNodeName', SetNodeName_args, :_homeId => _homeId, :_nodeId => _nodeId, :_nodeName => _nodeName)
613
613
  end
614
614
 
@@ -617,12 +617,12 @@ module OpenZWave
617
617
  return
618
618
  end
619
619
 
620
- def SetNodeLocation(_homeId, _nodeId, _location)
621
- send_SetNodeLocation(_homeId, _nodeId, _location)
620
+ def SetNodeLocation(_nodeId, _location, _homeId=HomeID)
621
+ send_SetNodeLocation(_nodeId, _location, _homeId)
622
622
  recv_SetNodeLocation()
623
623
  end
624
624
 
625
- def send_SetNodeLocation(_homeId, _nodeId, _location)
625
+ def send_SetNodeLocation(_nodeId, _location, _homeId=HomeID)
626
626
  send_message('SetNodeLocation', SetNodeLocation_args, :_homeId => _homeId, :_nodeId => _nodeId, :_location => _location)
627
627
  end
628
628
 
@@ -631,12 +631,12 @@ module OpenZWave
631
631
  return
632
632
  end
633
633
 
634
- def SetNodeOn(_homeId, _nodeId)
635
- send_SetNodeOn(_homeId, _nodeId)
634
+ def SetNodeOn(_nodeId, _homeId=HomeID)
635
+ send_SetNodeOn(_nodeId, _homeId)
636
636
  recv_SetNodeOn()
637
637
  end
638
638
 
639
- def send_SetNodeOn(_homeId, _nodeId)
639
+ def send_SetNodeOn(_nodeId, _homeId=HomeID)
640
640
  send_message('SetNodeOn', SetNodeOn_args, :_homeId => _homeId, :_nodeId => _nodeId)
641
641
  end
642
642
 
@@ -645,12 +645,12 @@ module OpenZWave
645
645
  return
646
646
  end
647
647
 
648
- def SetNodeOff(_homeId, _nodeId)
649
- send_SetNodeOff(_homeId, _nodeId)
648
+ def SetNodeOff(_nodeId, _homeId=HomeID)
649
+ send_SetNodeOff(_nodeId, _homeId)
650
650
  recv_SetNodeOff()
651
651
  end
652
652
 
653
- def send_SetNodeOff(_homeId, _nodeId)
653
+ def send_SetNodeOff(_nodeId, _homeId=HomeID)
654
654
  send_message('SetNodeOff', SetNodeOff_args, :_homeId => _homeId, :_nodeId => _nodeId)
655
655
  end
656
656
 
@@ -659,12 +659,12 @@ module OpenZWave
659
659
  return
660
660
  end
661
661
 
662
- def SetNodeLevel(_homeId, _nodeId, _level)
663
- send_SetNodeLevel(_homeId, _nodeId, _level)
662
+ def SetNodeLevel(_nodeId, _level, _homeId=HomeID)
663
+ send_SetNodeLevel(_nodeId, _level, _homeId)
664
664
  recv_SetNodeLevel()
665
665
  end
666
666
 
667
- def send_SetNodeLevel(_homeId, _nodeId, _level)
667
+ def send_SetNodeLevel(_nodeId, _level, _homeId=HomeID)
668
668
  send_message('SetNodeLevel', SetNodeLevel_args, :_homeId => _homeId, :_nodeId => _nodeId, :_level => _level)
669
669
  end
670
670
 
@@ -673,12 +673,12 @@ module OpenZWave
673
673
  return
674
674
  end
675
675
 
676
- def IsNodeInfoReceived(_homeId, _nodeId)
677
- send_IsNodeInfoReceived(_homeId, _nodeId)
676
+ def IsNodeInfoReceived(_nodeId, _homeId=HomeID)
677
+ send_IsNodeInfoReceived(_nodeId, _homeId)
678
678
  return recv_IsNodeInfoReceived()
679
679
  end
680
680
 
681
- def send_IsNodeInfoReceived(_homeId, _nodeId)
681
+ def send_IsNodeInfoReceived(_nodeId, _homeId=HomeID)
682
682
  send_message('IsNodeInfoReceived', IsNodeInfoReceived_args, :_homeId => _homeId, :_nodeId => _nodeId)
683
683
  end
684
684
 
@@ -688,12 +688,12 @@ module OpenZWave
688
688
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'IsNodeInfoReceived failed: unknown result')
689
689
  end
690
690
 
691
- def GetNodeClassInformation(_homeId, _nodeId, _commandClassId)
692
- send_GetNodeClassInformation(_homeId, _nodeId, _commandClassId)
691
+ def GetNodeClassInformation(_nodeId, _commandClassId, _homeId=HomeID)
692
+ send_GetNodeClassInformation(_nodeId, _commandClassId, _homeId)
693
693
  return recv_GetNodeClassInformation()
694
694
  end
695
695
 
696
- def send_GetNodeClassInformation(_homeId, _nodeId, _commandClassId)
696
+ def send_GetNodeClassInformation(_nodeId, _commandClassId, _homeId=HomeID)
697
697
  send_message('GetNodeClassInformation', GetNodeClassInformation_args, :_homeId => _homeId, :_nodeId => _nodeId, :_commandClassId => _commandClassId)
698
698
  end
699
699
 
@@ -1268,12 +1268,12 @@ module OpenZWave
1268
1268
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetSwitchPoint failed: unknown result')
1269
1269
  end
1270
1270
 
1271
- def SwitchAllOn(_homeId)
1271
+ def SwitchAllOn(_homeId=HomeID)
1272
1272
  send_SwitchAllOn(_homeId)
1273
1273
  recv_SwitchAllOn()
1274
1274
  end
1275
1275
 
1276
- def send_SwitchAllOn(_homeId)
1276
+ def send_SwitchAllOn(_homeId=HomeID)
1277
1277
  send_message('SwitchAllOn', SwitchAllOn_args, :_homeId => _homeId)
1278
1278
  end
1279
1279
 
@@ -1282,12 +1282,12 @@ module OpenZWave
1282
1282
  return
1283
1283
  end
1284
1284
 
1285
- def SwitchAllOff(_homeId)
1285
+ def SwitchAllOff(_homeId=HomeID)
1286
1286
  send_SwitchAllOff(_homeId)
1287
1287
  recv_SwitchAllOff()
1288
1288
  end
1289
1289
 
1290
- def send_SwitchAllOff(_homeId)
1290
+ def send_SwitchAllOff(_homeId=HomeID)
1291
1291
  send_message('SwitchAllOff', SwitchAllOff_args, :_homeId => _homeId)
1292
1292
  end
1293
1293
 
@@ -1296,12 +1296,12 @@ module OpenZWave
1296
1296
  return
1297
1297
  end
1298
1298
 
1299
- def SetConfigParam(_homeId, _nodeId, _param, _value, _size)
1300
- send_SetConfigParam(_homeId, _nodeId, _param, _value, _size)
1299
+ def SetConfigParam(_nodeId, _param, _value, _size, _homeId=HomeID)
1300
+ send_SetConfigParam(_nodeId, _param, _value, _size, _homeId)
1301
1301
  return recv_SetConfigParam()
1302
1302
  end
1303
1303
 
1304
- def send_SetConfigParam(_homeId, _nodeId, _param, _value, _size)
1304
+ def send_SetConfigParam(_nodeId, _param, _value, _size, _homeId=HomeID)
1305
1305
  send_message('SetConfigParam', SetConfigParam_args, :_homeId => _homeId, :_nodeId => _nodeId, :_param => _param, :_value => _value, :_size => _size)
1306
1306
  end
1307
1307
 
@@ -1311,12 +1311,12 @@ module OpenZWave
1311
1311
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'SetConfigParam failed: unknown result')
1312
1312
  end
1313
1313
 
1314
- def RequestConfigParam(_homeId, _nodeId, _param)
1315
- send_RequestConfigParam(_homeId, _nodeId, _param)
1314
+ def RequestConfigParam(_nodeId, _param, _homeId=HomeID)
1315
+ send_RequestConfigParam(_nodeId, _param, _homeId)
1316
1316
  recv_RequestConfigParam()
1317
1317
  end
1318
1318
 
1319
- def send_RequestConfigParam(_homeId, _nodeId, _param)
1319
+ def send_RequestConfigParam(_nodeId, _param, _homeId=HomeID)
1320
1320
  send_message('RequestConfigParam', RequestConfigParam_args, :_homeId => _homeId, :_nodeId => _nodeId, :_param => _param)
1321
1321
  end
1322
1322
 
@@ -1325,12 +1325,12 @@ module OpenZWave
1325
1325
  return
1326
1326
  end
1327
1327
 
1328
- def RequestAllConfigParams(_homeId, _nodeId)
1329
- send_RequestAllConfigParams(_homeId, _nodeId)
1328
+ def RequestAllConfigParams(_nodeId, _homeId=HomeID)
1329
+ send_RequestAllConfigParams(_nodeId, _homeId)
1330
1330
  recv_RequestAllConfigParams()
1331
1331
  end
1332
1332
 
1333
- def send_RequestAllConfigParams(_homeId, _nodeId)
1333
+ def send_RequestAllConfigParams(_nodeId, _homeId=HomeID)
1334
1334
  send_message('RequestAllConfigParams', RequestAllConfigParams_args, :_homeId => _homeId, :_nodeId => _nodeId)
1335
1335
  end
1336
1336
 
@@ -1339,12 +1339,12 @@ module OpenZWave
1339
1339
  return
1340
1340
  end
1341
1341
 
1342
- def GetNumGroups(_homeId, _nodeId)
1343
- send_GetNumGroups(_homeId, _nodeId)
1342
+ def GetNumGroups(_nodeId, _homeId=HomeID)
1343
+ send_GetNumGroups(_nodeId, _homeId)
1344
1344
  return recv_GetNumGroups()
1345
1345
  end
1346
1346
 
1347
- def send_GetNumGroups(_homeId, _nodeId)
1347
+ def send_GetNumGroups(_nodeId, _homeId=HomeID)
1348
1348
  send_message('GetNumGroups', GetNumGroups_args, :_homeId => _homeId, :_nodeId => _nodeId)
1349
1349
  end
1350
1350
 
@@ -1354,12 +1354,12 @@ module OpenZWave
1354
1354
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetNumGroups failed: unknown result')
1355
1355
  end
1356
1356
 
1357
- def GetAssociations(_homeId, _nodeId, _groupIdx)
1358
- send_GetAssociations(_homeId, _nodeId, _groupIdx)
1357
+ def GetAssociations(_nodeId, _groupIdx, _homeId=HomeID)
1358
+ send_GetAssociations(_nodeId, _groupIdx, _homeId)
1359
1359
  return recv_GetAssociations()
1360
1360
  end
1361
1361
 
1362
- def send_GetAssociations(_homeId, _nodeId, _groupIdx)
1362
+ def send_GetAssociations(_nodeId, _groupIdx, _homeId=HomeID)
1363
1363
  send_message('GetAssociations', GetAssociations_args, :_homeId => _homeId, :_nodeId => _nodeId, :_groupIdx => _groupIdx)
1364
1364
  end
1365
1365
 
@@ -1369,12 +1369,12 @@ module OpenZWave
1369
1369
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetAssociations failed: unknown result')
1370
1370
  end
1371
1371
 
1372
- def GetMaxAssociations(_homeId, _nodeId, _groupIdx)
1373
- send_GetMaxAssociations(_homeId, _nodeId, _groupIdx)
1372
+ def GetMaxAssociations(_nodeId, _groupIdx, _homeId=HomeID)
1373
+ send_GetMaxAssociations(_nodeId, _groupIdx, _homeId)
1374
1374
  return recv_GetMaxAssociations()
1375
1375
  end
1376
1376
 
1377
- def send_GetMaxAssociations(_homeId, _nodeId, _groupIdx)
1377
+ def send_GetMaxAssociations(_nodeId, _groupIdx, _homeId=HomeID)
1378
1378
  send_message('GetMaxAssociations', GetMaxAssociations_args, :_homeId => _homeId, :_nodeId => _nodeId, :_groupIdx => _groupIdx)
1379
1379
  end
1380
1380
 
@@ -1384,12 +1384,12 @@ module OpenZWave
1384
1384
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetMaxAssociations failed: unknown result')
1385
1385
  end
1386
1386
 
1387
- def GetGroupLabel(_homeId, _nodeId, _groupIdx)
1388
- send_GetGroupLabel(_homeId, _nodeId, _groupIdx)
1387
+ def GetGroupLabel(_nodeId, _groupIdx, _homeId=HomeID)
1388
+ send_GetGroupLabel(_nodeId, _groupIdx, _homeId)
1389
1389
  return recv_GetGroupLabel()
1390
1390
  end
1391
1391
 
1392
- def send_GetGroupLabel(_homeId, _nodeId, _groupIdx)
1392
+ def send_GetGroupLabel(_nodeId, _groupIdx, _homeId=HomeID)
1393
1393
  send_message('GetGroupLabel', GetGroupLabel_args, :_homeId => _homeId, :_nodeId => _nodeId, :_groupIdx => _groupIdx)
1394
1394
  end
1395
1395
 
@@ -1399,12 +1399,12 @@ module OpenZWave
1399
1399
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'GetGroupLabel failed: unknown result')
1400
1400
  end
1401
1401
 
1402
- def AddAssociation(_homeId, _nodeId, _groupIdx, _targetNodeId)
1403
- send_AddAssociation(_homeId, _nodeId, _groupIdx, _targetNodeId)
1402
+ def AddAssociation(_nodeId, _groupIdx, _targetNodeId, _homeId=HomeID)
1403
+ send_AddAssociation(_nodeId, _groupIdx, _targetNodeId, _homeId)
1404
1404
  recv_AddAssociation()
1405
1405
  end
1406
1406
 
1407
- def send_AddAssociation(_homeId, _nodeId, _groupIdx, _targetNodeId)
1407
+ def send_AddAssociation(_nodeId, _groupIdx, _targetNodeId, _homeId=HomeID)
1408
1408
  send_message('AddAssociation', AddAssociation_args, :_homeId => _homeId, :_nodeId => _nodeId, :_groupIdx => _groupIdx, :_targetNodeId => _targetNodeId)
1409
1409
  end
1410
1410
 
@@ -1413,12 +1413,12 @@ module OpenZWave
1413
1413
  return
1414
1414
  end
1415
1415
 
1416
- def RemoveAssociation(_homeId, _nodeId, _groupIdx, _targetNodeId)
1417
- send_RemoveAssociation(_homeId, _nodeId, _groupIdx, _targetNodeId)
1416
+ def RemoveAssociation(_nodeId, _groupIdx, _targetNodeId, _homeId=HomeID)
1417
+ send_RemoveAssociation(_nodeId, _groupIdx, _targetNodeId, _homeId)
1418
1418
  recv_RemoveAssociation()
1419
1419
  end
1420
1420
 
1421
- def send_RemoveAssociation(_homeId, _nodeId, _groupIdx, _targetNodeId)
1421
+ def send_RemoveAssociation(_nodeId, _groupIdx, _targetNodeId, _homeId=HomeID)
1422
1422
  send_message('RemoveAssociation', RemoveAssociation_args, :_homeId => _homeId, :_nodeId => _nodeId, :_groupIdx => _groupIdx, :_targetNodeId => _targetNodeId)
1423
1423
  end
1424
1424
 
@@ -1427,12 +1427,12 @@ module OpenZWave
1427
1427
  return
1428
1428
  end
1429
1429
 
1430
- def ResetController(_homeId)
1430
+ def ResetController(_homeId=HomeID)
1431
1431
  send_ResetController(_homeId)
1432
1432
  recv_ResetController()
1433
1433
  end
1434
1434
 
1435
- def send_ResetController(_homeId)
1435
+ def send_ResetController(_homeId=HomeID)
1436
1436
  send_message('ResetController', ResetController_args, :_homeId => _homeId)
1437
1437
  end
1438
1438
 
@@ -1441,12 +1441,12 @@ module OpenZWave
1441
1441
  return
1442
1442
  end
1443
1443
 
1444
- def SoftReset(_homeId)
1444
+ def SoftReset(_homeId=HomeID)
1445
1445
  send_SoftReset(_homeId)
1446
1446
  recv_SoftReset()
1447
1447
  end
1448
1448
 
1449
- def send_SoftReset(_homeId)
1449
+ def send_SoftReset(_homeId=HomeID)
1450
1450
  send_message('SoftReset', SoftReset_args, :_homeId => _homeId)
1451
1451
  end
1452
1452
 
@@ -1455,12 +1455,12 @@ module OpenZWave
1455
1455
  return
1456
1456
  end
1457
1457
 
1458
- def BeginControllerCommand(_homeId, _command, _highPower, _nodeId, _arg)
1459
- send_BeginControllerCommand(_homeId, _command, _highPower, _nodeId, _arg)
1458
+ def BeginControllerCommand(_command, _highPower, _nodeId, _arg, _homeId=HomeID)
1459
+ send_BeginControllerCommand(_command, _highPower, _nodeId, _arg, _homeId)
1460
1460
  return recv_BeginControllerCommand()
1461
1461
  end
1462
1462
 
1463
- def send_BeginControllerCommand(_homeId, _command, _highPower, _nodeId, _arg)
1463
+ def send_BeginControllerCommand(_command, _highPower, _nodeId, _arg, _homeId=HomeID)
1464
1464
  send_message('BeginControllerCommand', BeginControllerCommand_args, :_homeId => _homeId, :_command => _command, :_highPower => _highPower, :_nodeId => _nodeId, :_arg => _arg)
1465
1465
  end
1466
1466
 
@@ -1470,12 +1470,12 @@ module OpenZWave
1470
1470
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'BeginControllerCommand failed: unknown result')
1471
1471
  end
1472
1472
 
1473
- def CancelControllerCommand(_homeId)
1473
+ def CancelControllerCommand(_homeId=HomeID)
1474
1474
  send_CancelControllerCommand(_homeId)
1475
1475
  return recv_CancelControllerCommand()
1476
1476
  end
1477
1477
 
1478
- def send_CancelControllerCommand(_homeId)
1478
+ def send_CancelControllerCommand(_homeId=HomeID)
1479
1479
  send_message('CancelControllerCommand', CancelControllerCommand_args, :_homeId => _homeId)
1480
1480
  end
1481
1481
 
@@ -1994,12 +1994,12 @@ module OpenZWave
1994
1994
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'ActivateScene failed: unknown result')
1995
1995
  end
1996
1996
 
1997
- def GetDriverStatistics(_homeId)
1997
+ def GetDriverStatistics(_homeId=HomeID)
1998
1998
  send_GetDriverStatistics(_homeId)
1999
1999
  return recv_GetDriverStatistics()
2000
2000
  end
2001
2001
 
2002
- def send_GetDriverStatistics(_homeId)
2002
+ def send_GetDriverStatistics(_homeId=HomeID)
2003
2003
  send_message('GetDriverStatistics', GetDriverStatistics_args, :_homeId => _homeId)
2004
2004
  end
2005
2005
 
@@ -403,4 +403,4 @@ module OpenZWave
403
403
  ::Thrift::Struct.generate_accessors self
404
404
  end
405
405
 
406
- end
406
+ end
@@ -149,6 +149,7 @@ namespace OpenZWave
149
149
  ~Notification(){}
150
150
 
151
151
  void SetHomeAndNodeIds( uint32 const _homeId, uint8 const _nodeId ){ m_valueId = ValueID( _homeId, _nodeId ); }
152
+ void SetHomeNodeIdAndInstance ( uint32 const _homeId, uint8 const _nodeId, uint32 const _instance ){ m_valueId = ValueID( _homeId, _nodeId, _instance ); }
152
153
  void SetValueId( ValueID const& _valueId ){ m_valueId = _valueId; }
153
154
  void SetGroupIdx( uint8 const _groupIdx ){ assert(Type_Group==m_type); m_byte = _groupIdx; }
154
155
  void SetEvent( uint8 const _event ){ assert(Type_NodeEvent==m_type); m_byte = _event; }
@@ -116,7 +116,7 @@ bool Basic::HandleMsg
116
116
  Log::Write( LogLevel_Info, GetNodeId(), "Received Basic set from node %d: level=%d. Sending event notification.", GetNodeId(), _data[1] );
117
117
 
118
118
  Notification* notification = new Notification( Notification::Type_NodeEvent );
119
- notification->SetHomeAndNodeIds( GetHomeId(), GetNodeId() );
119
+ notification->SetHomeNodeIdAndInstance( GetHomeId(), GetNodeId(), _instance );
120
120
  notification->SetEvent( _data[1] );
121
121
  GetDriver()->QueueNotification( notification );
122
122
  return true;
@@ -292,13 +292,13 @@ bool Meter::HandleSupportedReport
292
292
  {
293
293
  if( ValueDecimal* value = static_cast<ValueDecimal*>( GetValue( _instance, baseIndex ) ) )
294
294
  {
295
- value->SetLabel( "Gas" );
295
+ value->SetLabel( c_meterTypes[MeterType_Gas] );
296
296
  value->SetUnits( c_gasUnits[i] );
297
297
  value->Release();
298
298
  }
299
299
  else
300
300
  {
301
- node->CreateValueDecimal( ValueID::ValueGenre_User, GetCommandClassId(), _instance, baseIndex, "Gas", c_gasUnits[i], true, false, "0.0", 0 );
301
+ node->CreateValueDecimal( ValueID::ValueGenre_User, GetCommandClassId(), _instance, baseIndex, c_meterTypes[meterType], c_gasUnits[i], true, false, "0.0", 0 );
302
302
  }
303
303
  if( i != 0 )
304
304
  msg += ", ";
@@ -309,13 +309,13 @@ bool Meter::HandleSupportedReport
309
309
  {
310
310
  if( ValueDecimal* value = static_cast<ValueDecimal*>( GetValue( _instance, baseIndex ) ) )
311
311
  {
312
- value->SetLabel( "Water" );
312
+ value->SetLabel( c_meterTypes[MeterType_Water] );
313
313
  value->SetUnits( c_waterUnits[i] );
314
314
  value->Release();
315
315
  }
316
316
  else
317
317
  {
318
- node->CreateValueDecimal( ValueID::ValueGenre_User, GetCommandClassId(), _instance, baseIndex, "Water", c_waterUnits[i], true, false, "0.0", 0 );
318
+ node->CreateValueDecimal( ValueID::ValueGenre_User, GetCommandClassId(), _instance, baseIndex, c_meterTypes[meterType], c_waterUnits[i], true, false, "0.0", 0 );
319
319
  }
320
320
  if( i != 0 )
321
321
  msg += ", ";
@@ -392,14 +392,14 @@ bool Meter::HandleReport
392
392
  case MeterType_Gas:
393
393
  {
394
394
  // Gas Meter
395
- label = "Gas";
395
+ label = c_meterTypes[MeterType_Gas];
396
396
  units = c_gasUnits[scale];
397
397
  break;
398
398
  }
399
399
  case MeterType_Water:
400
400
  {
401
401
  // Water Meter
402
- label = "Water";
402
+ label = c_meterTypes[MeterType_Water];
403
403
  units = c_waterUnits[scale];
404
404
  break;
405
405
  }
@@ -232,6 +232,12 @@ namespace OpenZWave
232
232
  private:
233
233
  // Construct a value id for use in notifications
234
234
  ValueID( uint32 const _homeId, uint8 const _nodeId ): m_id1( 0 ),m_homeId( _homeId ){ m_id = ((uint32)_nodeId)<<24; }
235
+ ValueID( uint32 const _homeId, uint8 const _nodeId, uint32 const _instance ):
236
+ m_homeId( _homeId )
237
+ {
238
+ m_id = (((uint32)_nodeId)<<24);
239
+ m_id1 = (((uint32)_instance)<<24);
240
+ }
235
241
 
236
242
  // Default constructor
237
243
  ValueID():m_id(0),m_id1(0),m_homeId(0){}
@@ -26,88 +26,93 @@ module OpenZWave
26
26
 
27
27
  # hashmap of ZWave's command class symbol id to byte value
28
28
  CommandClassesByName = {
29
- :COMMAND_CLASS_VERSION => 0x86,
30
- :COMMAND_CLASS_BATTERY => 0x80,
31
- :COMMAND_CLASS_WAKE_UP => 0x84,
32
- :COMMAND_CLASS_CONTROLLER_REPLICATION => 0x21,
33
- :COMMAND_CLASS_BASIC => 0x20,
34
- :COMMAND_CLASS_SWITCH_MULTILEVEL => 0x26,
35
- :COMMAND_CLASS_SWITCH_ALL => 0x27,
36
- :COMMAND_CLASS_SENSOR_BINARY => 0x30,
37
- :COMMAND_CLASS_SENSOR_MULTILEVEL => 0x31,
38
- :COMMAND_CLASS_ALARM => 0x71,
39
- :COMMAND_CLASS_MULTI_CMD => 0x8F,
40
- :COMMAND_CLASS_CLIMATE_CONTROL_SCHEDULE => 0x46,
41
- :COMMAND_CLASS_CLOCK => 0x81,
42
- :COMMAND_CLASS_ASSOCIATION => 0x85,
43
- :COMMAND_CLASS_CONFIGURATION => 0x70,
44
- :COMMAND_CLASS_MANUFACTURER_SPECIFIC => 0x72,
45
- :COMMAND_CLASS_APPLICATION_STATUS => 0x22,
46
- :COMMAND_CLASS_ASSOCIATION_COMMAND_CONFIGURATION => 0x9B,
47
- :COMMAND_CLASS_AV_CONTENT_DIRECTORY_MD => 0x95,
48
- :COMMAND_CLASS_AV_CONTENT_SEARCH_MD => 0x97,
49
- :COMMAND_CLASS_AV_RENDERER_STATUS => 0x96,
50
- :COMMAND_CLASS_AV_TAGGING_MD => 0x99,
51
- :COMMAND_CLASS_BASIC_WINDOW_COVERING => 0x50,
52
- :COMMAND_CLASS_CHIMNEY_FAN => 0x2A,
53
- :COMMAND_CLASS_COMPOSITE => 0x8D,
54
- :COMMAND_CLASS_DOOR_LOCK => 0x62,
55
- :COMMAND_CLASS_ENERGY_PRODUCTION => 0x90,
56
- :COMMAND_CLASS_FIRMWARE_UPDATE_MD => 0x7a,
57
- :COMMAND_CLASS_GEOGRAPHIC_LOCATION => 0x8C,
58
- :COMMAND_CLASS_GROUPING_NAME => 0x7B,
59
- :COMMAND_CLASS_HAIL => 0x82,
60
- :COMMAND_CLASS_INDICATOR => 0x87,
61
- :COMMAND_CLASS_IP_CONFIGURATION => 0x9A,
62
- :COMMAND_CLASS_LANGUAGE => 0x89,
63
- :COMMAND_CLASS_LOCK => 0x76,
64
- :COMMAND_CLASS_MANUFACTURER_PROPRIETARY => 0x91,
65
- :COMMAND_CLASS_METER_PULSE => 0x35,
66
- :COMMAND_CLASS_METER => 0x32,
67
- :COMMAND_CLASS_MTP_WINDOW_COVERING => 0x51,
68
- :COMMAND_CLASS_MULTI_INSTANCE_ASSOCIATION => 0x8E,
69
- :COMMAND_CLASS_MULTI_INSTANCE => 0x60,
70
- :COMMAND_CLASS_NO_OPERATION => 0x00,
71
- :COMMAND_CLASS_NODE_NAMING => 0x77,
72
- :COMMAND_CLASS_NON_INTEROPERABLE => 0xf0,
73
- :COMMAND_CLASS_POWERLEVEL => 0x73,
74
- :COMMAND_CLASS_PROPRIETARY => 0x88,
75
- :COMMAND_CLASS_PROTECTION => 0x75,
76
- :COMMAND_CLASS_REMOTE_ASSOCIATION_ACTIVATE => 0x7c,
77
- :COMMAND_CLASS_REMOTE_ASSOCIATION => 0x7d,
78
- :COMMAND_CLASS_SCENE_ACTIVATION => 0x2b,
79
- :COMMAND_CLASS_SCENE_ACTUATOR_CONF => 0x2C,
80
- :COMMAND_CLASS_SCENE_CONTROLLER_CONF => 0x2D,
81
- :COMMAND_CLASS_SCREEN_ATTRIBUTES => 0x93,
82
- :COMMAND_CLASS_SCREEN_MD => 0x92,
83
- :COMMAND_CLASS_SECURITY => 0x98,
84
- :COMMAND_CLASS_SENSOR_ALARM => 0x9C,
85
- :COMMAND_CLASS_SENSOR_CONFIGURATION => 0x9E,
86
- :COMMAND_CLASS_SILENCE_ALARM => 0x9d,
87
- :COMMAND_CLASS_SIMPLE_AV_CONTROL => 0x94,
88
- :COMMAND_CLASS_SWITCH_BINARY => 0x25,
89
- :COMMAND_CLASS_SWITCH_TOGGLE_BINARY => 0x28,
90
- :COMMAND_CLASS_SWITCH_TOGGLE_MULTILEVEL => 0x29,
91
- :COMMAND_CLASS_THERMOSTAT_FAN_MODE => 0x44,
92
- :COMMAND_CLASS_THERMOSTAT_FAN_STATE => 0x45,
93
- :COMMAND_CLASS_THERMOSTAT_HEATING => 0x38,
94
- :COMMAND_CLASS_THERMOSTAT_MODE => 0x40,
95
- :COMMAND_CLASS_THERMOSTAT_OPERATING_STATE => 0x42,
96
- :COMMAND_CLASS_THERMOSTAT_SETBACK => 0x47,
97
- :COMMAND_CLASS_THERMOSTAT_SETPOINT => 0x43,
98
- :COMMAND_CLASS_TIME_PARAMETERS => 0x8B,
99
- :COMMAND_CLASS_TIME => 0x8a,
100
- :COMMAND_CLASS_USER_CODE => 0x63,
101
- :COMMAND_CLASS_ZIP_ADV_CLIENT => 0x34,
102
- :COMMAND_CLASS_ZIP_ADV_SERVER => 0x33,
103
- :COMMAND_CLASS_ZIP_ADV_SERVICES => 0x2F,
104
- :COMMAND_CLASS_ZIP_CLIENT => 0x2e,
105
- :COMMAND_CLASS_ZIP_SERVER => 0x24,
106
- :COMMAND_CLASS_ZIP_SERVICES => 0x23
29
+ :COMMAND_CLASS_NO_OPERATION => 0x00,
30
+ :COMMAND_CLASS_BASIC => 0x20,
31
+ :COMMAND_CLASS_CONTROLLER_REPLICATION => 0x21,
32
+ :COMMAND_CLASS_APPLICATION_STATUS => 0x22,
33
+ :COMMAND_CLASS_ZIP_SERVICES => 0x23,
34
+ :COMMAND_CLASS_ZIP_SERVER => 0x24,
35
+ :COMMAND_CLASS_SWITCH_BINARY => 0x25,
36
+ :COMMAND_CLASS_SWITCH_MULTILEVEL => 0x26,
37
+ :COMMAND_CLASS_SWITCH_ALL => 0x27,
38
+ :COMMAND_CLASS_SWITCH_TOGGLE_BINARY => 0x28,
39
+ :COMMAND_CLASS_SWITCH_TOGGLE_MULTILEVEL => 0x29,
40
+ :COMMAND_CLASS_CHIMNEY_FAN => 0x2A,
41
+ :COMMAND_CLASS_SCENE_ACTIVATION => 0x2B,
42
+ :COMMAND_CLASS_SCENE_ACTUATOR_CONF => 0x2C,
43
+ :COMMAND_CLASS_SCENE_CONTROLLER_CONF => 0x2D,
44
+ :COMMAND_CLASS_ZIP_CLIENT => 0x2E,
45
+ :COMMAND_CLASS_ZIP_ADV_SERVICES => 0x2F,
46
+ :COMMAND_CLASS_SENSOR_BINARY => 0x30,
47
+ :COMMAND_CLASS_SENSOR_MULTILEVEL => 0x31,
48
+ :COMMAND_CLASS_METER => 0x32,
49
+ :COMMAND_CLASS_ZIP_ADV_SERVER => 0x33,
50
+ :COMMAND_CLASS_ZIP_ADV_CLIENT => 0x34,
51
+ :COMMAND_CLASS_METER_PULSE => 0x35,
52
+ :COMMAND_CLASS_METER_TBL_CONFIG => 0x3C,
53
+ :COMMAND_CLASS_METER_TBL_MONITOR => 0x3D,
54
+ :COMMAND_CLASS_METER_TBL_PUSH => 0x3E,
55
+ :COMMAND_CLASS_THERMOSTAT_HEATING => 0x38,
56
+ :COMMAND_CLASS_THERMOSTAT_MODE => 0x40,
57
+ :COMMAND_CLASS_THERMOSTAT_OPERATING_STATE => 0x42,
58
+ :COMMAND_CLASS_THERMOSTAT_SETPOINT => 0x43,
59
+ :COMMAND_CLASS_THERMOSTAT_FAN_MODE => 0x44,
60
+ :COMMAND_CLASS_THERMOSTAT_FAN_STATE => 0x45,
61
+ :COMMAND_CLASS_CLIMATE_CONTROL_SCHEDULE => 0x46,
62
+ :COMMAND_CLASS_THERMOSTAT_SETBACK => 0x47,
63
+ :COMMAND_CLASS_DOOR_LOCK_LOGGING => 0x4c,
64
+ :COMMAND_CLASS_SCHEDULE_ENTRY_LOCK => 0x4E,
65
+ :COMMAND_CLASS_BASIC_WINDOW_COVERING => 0x50,
66
+ :COMMAND_CLASS_MTP_WINDOW_COVERING => 0x51,
67
+ :COMMAND_CLASS_MULTI_CHANNEL_V2 => 0x60,
68
+ :COMMAND_CLASS_DOOR_LOCK => 0x62,
69
+ :COMMAND_CLASS_USER_CODE => 0x63,
70
+ :COMMAND_CLASS_CONFIGURATION => 0x70,
71
+ :COMMAND_CLASS_ALARM => 0x71,
72
+ :COMMAND_CLASS_MANUFACTURER_SPECIFIC => 0x72,
73
+ :COMMAND_CLASS_POWERLEVEL => 0x73,
74
+ :COMMAND_CLASS_PROTECTION => 0x75,
75
+ :COMMAND_CLASS_LOCK => 0x76,
76
+ :COMMAND_CLASS_NODE_NAMING => 0x77,
77
+ :COMMAND_CLASS_FIRMWARE_UPDATE_MD => 0x7A,
78
+ :COMMAND_CLASS_GROUPING_NAME => 0x7B,
79
+ :COMMAND_CLASS_REMOTE_ASSOCIATION_ACTIVATE => 0x7C,
80
+ :COMMAND_CLASS_REMOTE_ASSOCIATION => 0x7D,
81
+ :COMMAND_CLASS_BATTERY => 0x80,
82
+ :COMMAND_CLASS_CLOCK => 0x81,
83
+ :COMMAND_CLASS_HAIL => 0x82,
84
+ :COMMAND_CLASS_WAKE_UP => 0x84,
85
+ :COMMAND_CLASS_ASSOCIATION => 0x85,
86
+ :COMMAND_CLASS_VERSION => 0x86,
87
+ :COMMAND_CLASS_INDICATOR => 0x87,
88
+ :COMMAND_CLASS_PROPRIETARY => 0x88,
89
+ :COMMAND_CLASS_LANGUAGE => 0x89,
90
+ :COMMAND_CLASS_TIME => 0x8A,
91
+ :COMMAND_CLASS_TIME_PARAMETERS => 0x8B,
92
+ :COMMAND_CLASS_GEOGRAPHIC_LOCATION => 0x8C,
93
+ :COMMAND_CLASS_COMPOSITE => 0x8D,
94
+ :COMMAND_CLASS_MULTI_INSTANCE_ASSOCIATION => 0x8E,
95
+ :COMMAND_CLASS_MULTI_CMD => 0x8F,
96
+ :COMMAND_CLASS_ENERGY_PRODUCTION => 0x90,
97
+ :COMMAND_CLASS_MANUFACTURER_PROPRIETARY => 0x91,
98
+ :COMMAND_CLASS_SCREEN_MD => 0x92,
99
+ :COMMAND_CLASS_SCREEN_ATTRIBUTES => 0x93,
100
+ :COMMAND_CLASS_SIMPLE_AV_CONTROL => 0x94,
101
+ :COMMAND_CLASS_AV_CONTENT_DIRECTORY_MD => 0x95,
102
+ :COMMAND_CLASS_AV_RENDERER_STATUS => 0x96,
103
+ :COMMAND_CLASS_AV_CONTENT_SEARCH_MD => 0x97,
104
+ :COMMAND_CLASS_SECURITY => 0x98,
105
+ :COMMAND_CLASS_AV_TAGGING_MD => 0x99,
106
+ :COMMAND_CLASS_IP_CONFIGURATION => 0x9A,
107
+ :COMMAND_CLASS_ASSOCIATION_COMMAND_CONFIGURATION => 0x9B,
108
+ :COMMAND_CLASS_SENSOR_ALARM => 0x9C,
109
+ :COMMAND_CLASS_SILENCE_ALARM => 0x9D,
110
+ :COMMAND_CLASS_SENSOR_CONFIGURATION => 0x9E,
111
+ :COMMAND_CLASS_MARK => 0xEF,
112
+ :COMMAND_CLASS_NON_INTEROPERABLE => 0xF0
107
113
  }
108
114
 
109
115
  # hashmap of ZWave's command class byte to symbol
110
- CommandClassesByID = {}
111
- CommandClassesByName.each {|key, value| CommandClassesByID[value] = key }
116
+ CommandClassesByID = CommandClassesByName.invert
112
117
 
113
118
  end #module
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ansible4ozw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-10-23 00:00:00.000000000 Z
13
+ date: 2012-10-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bindata