ruby_home 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 295a2fbbf4c858d6a72b0fded4bd051d2820a9892d1bd66145a2184fd2464720
4
- data.tar.gz: cc9fd121510cefaebd8b01112017ae353edd0e12adb5160b7523257eb80881c6
3
+ metadata.gz: 61dfd393cebfe26630d824d57c5ed1b2942038c362ceddfee56791ae9c7cbff0
4
+ data.tar.gz: c4d611ea594ba1ec79487dfcfad2b919c2299def89d79faa610fcc100a4ab056
5
5
  SHA512:
6
- metadata.gz: 55cd692b8e8d0ea893a43e8e9b98084a34f0fa4fe16b884b949f9d16ad9a67b92375f282a0e325f7a8a1c1a78ddea665b34df822ac859d11eae81fa3a0beabda
7
- data.tar.gz: e0280695c0bdb55b71663550a9bc85c0e9566a1724812e7c3ca563e0ad18cf7df2e20e0d8e7e4dcc0f6e1f9dd52744b29e05a3185c276284d844e09aae0ee038
6
+ metadata.gz: 254986caeb5b4de9d340e0eb9f32c8ed68b277484de64e6512a5a9c7f0778ed1f627599b86f3bccaf7244f0c2e5767ac3890ec14c260399f8d26275ad7497e65
7
+ data.tar.gz: 744dede6bf50c7ca501fa8a8e84f5141cd1d275b2ca5a2aedb78340056ca2d7088566c2bb7312c0500c556014be05361b1184f45701387aeadad789565811c81
@@ -25,6 +25,7 @@
25
25
  - read
26
26
  - write
27
27
  - cnotify
28
+ - uncnotify
28
29
  :constraints:
29
30
  ValidValues:
30
31
  '0': Inactive
@@ -41,6 +42,7 @@
41
42
  - read
42
43
  - write
43
44
  - cnotify
45
+ - uncnotify
44
46
  :constraints:
45
47
  - :name: :air_particulate_density
46
48
  :description: Air Particulate Density
@@ -52,6 +54,7 @@
52
54
  :properties:
53
55
  - read
54
56
  - cnotify
57
+ - uncnotify
55
58
  :constraints:
56
59
  MaximumValue: 1000
57
60
  MinimumValue: 0
@@ -66,6 +69,7 @@
66
69
  :properties:
67
70
  - read
68
71
  - cnotify
72
+ - uncnotify
69
73
  :constraints:
70
74
  ValidValues:
71
75
  '0': 2.5 μm
@@ -101,6 +105,7 @@
101
105
  - read
102
106
  - write
103
107
  - cnotify
108
+ - uncnotify
104
109
  :constraints:
105
110
  - :name: :battery_level
106
111
  :description: Battery Level
@@ -112,6 +117,7 @@
112
117
  :properties:
113
118
  - read
114
119
  - cnotify
120
+ - uncnotify
115
121
  :constraints:
116
122
  MaximumValue: 100
117
123
  MinimumValue: 0
@@ -128,6 +134,7 @@
128
134
  - read
129
135
  - write
130
136
  - cnotify
137
+ - uncnotify
131
138
  :constraints:
132
139
  MaximumValue: 100
133
140
  MinimumValue: 0
@@ -157,6 +164,7 @@
157
164
  :properties:
158
165
  - read
159
166
  - cnotify
167
+ - uncnotify
160
168
  :constraints:
161
169
  MaximumValue: 100000
162
170
  MinimumValue: 0
@@ -170,6 +178,7 @@
170
178
  :properties:
171
179
  - read
172
180
  - cnotify
181
+ - uncnotify
173
182
  :constraints:
174
183
  MaximumValue: 100000
175
184
  MinimumValue: 0
@@ -198,6 +207,7 @@
198
207
  :properties:
199
208
  - read
200
209
  - cnotify
210
+ - uncnotify
201
211
  :constraints:
202
212
  MaximumValue: 100
203
213
  MinimumValue: 0
@@ -211,6 +221,7 @@
211
221
  :properties:
212
222
  - read
213
223
  - cnotify
224
+ - uncnotify
214
225
  :constraints:
215
226
  MaximumValue: 100
216
227
  MinimumValue: 0
@@ -224,6 +235,7 @@
224
235
  :properties:
225
236
  - read
226
237
  - cnotify
238
+ - uncnotify
227
239
  :constraints:
228
240
  ValidValues:
229
241
  '0': Not Charging
@@ -241,6 +253,7 @@
241
253
  - read
242
254
  - write
243
255
  - cnotify
256
+ - uncnotify
244
257
  :constraints:
245
258
  MaximumValue: 500
246
259
  MinimumValue: 140
@@ -272,6 +285,7 @@
272
285
  - read
273
286
  - write
274
287
  - cnotify
288
+ - uncnotify
275
289
  :constraints:
276
290
  MaximumValue: 35
277
291
  MinimumValue: 10
@@ -286,6 +300,7 @@
286
300
  :properties:
287
301
  - read
288
302
  - cnotify
303
+ - uncnotify
289
304
  :constraints:
290
305
  ValidValues:
291
306
  '0': Inactive
@@ -301,6 +316,7 @@
301
316
  :properties:
302
317
  - read
303
318
  - cnotify
319
+ - uncnotify
304
320
  :constraints:
305
321
  MaximumValue: 100000
306
322
  MinimumValue: 0.0001
@@ -332,6 +348,7 @@
332
348
  :properties:
333
349
  - read
334
350
  - cnotify
351
+ - uncnotify
335
352
  :constraints:
336
353
  ValidValues:
337
354
  '0': Inactive
@@ -347,6 +364,7 @@
347
364
  :properties:
348
365
  - read
349
366
  - cnotify
367
+ - uncnotify
350
368
  :constraints:
351
369
  ValidValues:
352
370
  '0': Inactive
@@ -379,6 +397,7 @@
379
397
  :properties:
380
398
  - read
381
399
  - cnotify
400
+ - uncnotify
382
401
  :constraints:
383
402
  MaximumValue: 90
384
403
  MinimumValue: -90
@@ -393,6 +412,7 @@
393
412
  :properties:
394
413
  - read
395
414
  - cnotify
415
+ - uncnotify
396
416
  :constraints:
397
417
  ValidValues:
398
418
  '0': Inactive
@@ -409,6 +429,7 @@
409
429
  :properties:
410
430
  - read
411
431
  - cnotify
432
+ - uncnotify
412
433
  :constraints:
413
434
  MaximumValue: 100
414
435
  MinimumValue: 0
@@ -423,6 +444,7 @@
423
444
  :properties:
424
445
  - read
425
446
  - cnotify
447
+ - uncnotify
426
448
  :constraints:
427
449
  MaximumValue: 100
428
450
  MinimumValue: 0
@@ -437,6 +459,7 @@
437
459
  :properties:
438
460
  - read
439
461
  - cnotify
462
+ - uncnotify
440
463
  :constraints:
441
464
  ValidValues:
442
465
  '0': Fixed
@@ -452,6 +475,7 @@
452
475
  :properties:
453
476
  - read
454
477
  - cnotify
478
+ - uncnotify
455
479
  :constraints:
456
480
  MaximumValue: 100
457
481
  MinimumValue: 0
@@ -466,6 +490,7 @@
466
490
  :properties:
467
491
  - read
468
492
  - cnotify
493
+ - uncnotify
469
494
  :constraints:
470
495
  MaximumValue: 90
471
496
  MinimumValue: -90
@@ -480,6 +505,7 @@
480
505
  :properties:
481
506
  - read
482
507
  - cnotify
508
+ - uncnotify
483
509
  :constraints:
484
510
  MaximumValue: 90
485
511
  MinimumValue: -90
@@ -496,6 +522,7 @@
496
522
  - read
497
523
  - write
498
524
  - cnotify
525
+ - uncnotify
499
526
  :constraints:
500
527
  - :name: :filter_change_indication
501
528
  :description: Filter Change Indication
@@ -507,6 +534,7 @@
507
534
  :properties:
508
535
  - read
509
536
  - cnotify
537
+ - uncnotify
510
538
  :constraints:
511
539
  ValidValues:
512
540
  '0': Filter OK
@@ -521,6 +549,7 @@
521
549
  :properties:
522
550
  - read
523
551
  - cnotify
552
+ - uncnotify
524
553
  :constraints:
525
554
  MaximumValue: 100
526
555
  MinimumValue: 0
@@ -557,6 +586,7 @@
557
586
  - read
558
587
  - write
559
588
  - cnotify
589
+ - uncnotify
560
590
  :constraints:
561
591
  MaximumValue: 25
562
592
  MinimumValue: 0
@@ -583,6 +613,7 @@
583
613
  - read
584
614
  - write
585
615
  - cnotify
616
+ - uncnotify
586
617
  :constraints:
587
618
  MaximumValue: 360
588
619
  MinimumValue: 0
@@ -609,6 +640,7 @@
609
640
  - read
610
641
  - write
611
642
  - cnotify
643
+ - uncnotify
612
644
  :constraints:
613
645
  - :name: :image_rotation
614
646
  :description: Image Rotation
@@ -622,10 +654,43 @@
622
654
  - read
623
655
  - write
624
656
  - cnotify
657
+ - uncnotify
625
658
  :constraints:
626
659
  MaximumValue: 270
627
660
  MinimumValue: 0
628
661
  StepValue: 90
662
+ - :name: :in_use
663
+ :description: In Use
664
+ :uuid: 000000D2-0000-1000-8000-0026BB765291
665
+ :format: uint8
666
+ :unit: nil
667
+ :permissions:
668
+ - securedRead
669
+ :properties:
670
+ - read
671
+ - cnotify
672
+ - uncnotify
673
+ :constraints:
674
+ ValidValues:
675
+ '0': Not in use
676
+ '1': In use
677
+ - :name: :is_configured
678
+ :description: Is Configured
679
+ :uuid: 000000D6-0000-1000-8000-0026BB765291
680
+ :format: uint8
681
+ :unit: nil
682
+ :permissions:
683
+ - securedRead
684
+ - securedWrite
685
+ :properties:
686
+ - read
687
+ - write
688
+ - cnotify
689
+ - uncnotify
690
+ :constraints:
691
+ ValidValues:
692
+ '0': Not Configured
693
+ '1': Configured
629
694
  - :name: :leak_detected
630
695
  :description: Leak Detected
631
696
  :uuid: 00000070-0000-1000-8000-0026BB765291
@@ -678,6 +743,7 @@
678
743
  :properties:
679
744
  - read
680
745
  - cnotify
746
+ - uncnotify
681
747
  :constraints:
682
748
  ValidValues:
683
749
  '0': Secured Physically, Interior
@@ -701,6 +767,7 @@
701
767
  - read
702
768
  - write
703
769
  - cnotify
770
+ - uncnotify
704
771
  :constraints:
705
772
  - :name: :lock_physical_controls
706
773
  :description: Lock Physical Controls
@@ -714,6 +781,7 @@
714
781
  - read
715
782
  - write
716
783
  - cnotify
784
+ - uncnotify
717
785
  :constraints:
718
786
  ValidValues:
719
787
  '0': Control Lock Disabled
@@ -745,6 +813,7 @@
745
813
  :properties:
746
814
  - read
747
815
  - cnotify
816
+ - uncnotify
748
817
  :constraints:
749
818
  - :name: :manufacturer
750
819
  :description: Manufacturer
@@ -790,6 +859,7 @@
790
859
  - read
791
860
  - write
792
861
  - cnotify
862
+ - uncnotify
793
863
  :constraints:
794
864
  - :name: :name
795
865
  :description: Name
@@ -813,6 +883,7 @@
813
883
  - read
814
884
  - write
815
885
  - cnotify
886
+ - uncnotify
816
887
  :constraints:
817
888
  - :name: :nitrogen_dioxide_density
818
889
  :description: Nitrogen Dioxide Density
@@ -868,6 +939,7 @@
868
939
  - read
869
940
  - write
870
941
  - cnotify
942
+ - uncnotify
871
943
  :constraints:
872
944
  - :name: :optical_zoom
873
945
  :description: Optical Zoom
@@ -881,6 +953,7 @@
881
953
  - read
882
954
  - write
883
955
  - cnotify
956
+ - uncnotify
884
957
  :constraints:
885
958
  - :name: :outlet_in_use
886
959
  :description: Outlet In Use
@@ -892,6 +965,7 @@
892
965
  :properties:
893
966
  - read
894
967
  - cnotify
968
+ - uncnotify
895
969
  :constraints:
896
970
  - :name: :ozone_density
897
971
  :description: Ozone Density
@@ -994,11 +1068,28 @@
994
1068
  :properties:
995
1069
  - read
996
1070
  - cnotify
1071
+ - uncnotify
997
1072
  :constraints:
998
1073
  ValidValues:
999
1074
  '0': Decreasing
1000
1075
  '1': Increasing
1001
1076
  '2': Stopped
1077
+ - :name: :program_mode
1078
+ :description: Program Mode
1079
+ :uuid: 000000D1-0000-1000-8000-0026BB765291
1080
+ :format: uint8
1081
+ :unit: nil
1082
+ :permissions:
1083
+ - securedRead
1084
+ :properties:
1085
+ - read
1086
+ - cnotify
1087
+ - uncnotify
1088
+ :constraints:
1089
+ ValidValues:
1090
+ '0': No program scheduled
1091
+ '1': Program scheduled
1092
+ '2': Program scheduled (Manual Mode)
1002
1093
  - :name: :programmable_switch_event
1003
1094
  :description: Programmable Switch Event
1004
1095
  :uuid: 00000073-0000-1000-8000-0026BB765291
@@ -1009,6 +1100,7 @@
1009
1100
  :properties:
1010
1101
  - read
1011
1102
  - cnotify
1103
+ - uncnotify
1012
1104
  :constraints:
1013
1105
  ValidValues:
1014
1106
  '0': Single Press
@@ -1018,7 +1110,7 @@
1018
1110
  :description: Relative Humidity Dehumidifier Threshold
1019
1111
  :uuid: 000000C9-0000-1000-8000-0026BB765291
1020
1112
  :format: float
1021
- :unit: nil
1113
+ :unit: '"percentage"'
1022
1114
  :permissions:
1023
1115
  - securedRead
1024
1116
  - securedWrite
@@ -1026,6 +1118,7 @@
1026
1118
  - read
1027
1119
  - write
1028
1120
  - cnotify
1121
+ - uncnotify
1029
1122
  :constraints:
1030
1123
  MaximumValue: 100
1031
1124
  MinimumValue: 0
@@ -1034,7 +1127,7 @@
1034
1127
  :description: Relative Humidity Humidifier Threshold
1035
1128
  :uuid: 000000CA-0000-1000-8000-0026BB765291
1036
1129
  :format: float
1037
- :unit: nil
1130
+ :unit: '"percentage"'
1038
1131
  :permissions:
1039
1132
  - securedRead
1040
1133
  - securedWrite
@@ -1042,10 +1135,26 @@
1042
1135
  - read
1043
1136
  - write
1044
1137
  - cnotify
1138
+ - uncnotify
1045
1139
  :constraints:
1046
1140
  MaximumValue: 100
1047
1141
  MinimumValue: 0
1048
1142
  StepValue: 1
1143
+ - :name: :remaining_duration
1144
+ :description: Remaining Duration
1145
+ :uuid: 000000D4-0000-1000-8000-0026BB765291
1146
+ :format: uint32
1147
+ :unit: nil
1148
+ :permissions:
1149
+ - securedRead
1150
+ :properties:
1151
+ - read
1152
+ - cnotify
1153
+ - uncnotify
1154
+ :constraints:
1155
+ MaximumValue: 3600
1156
+ MinimumValue: 0
1157
+ StepValue: 1
1049
1158
  - :name: :reset_filter_indication
1050
1159
  :description: Reset Filter Indication
1051
1160
  :uuid: 000000AD-0000-1000-8000-0026BB765291
@@ -1071,6 +1180,7 @@
1071
1180
  - read
1072
1181
  - write
1073
1182
  - cnotify
1183
+ - uncnotify
1074
1184
  :constraints:
1075
1185
  ValidValues:
1076
1186
  '0': Clockwise
@@ -1087,6 +1197,7 @@
1087
1197
  - read
1088
1198
  - write
1089
1199
  - cnotify
1200
+ - uncnotify
1090
1201
  :constraints:
1091
1202
  MaximumValue: 100
1092
1203
  MinimumValue: 0
@@ -1103,6 +1214,7 @@
1103
1214
  - read
1104
1215
  - write
1105
1216
  - cnotify
1217
+ - uncnotify
1106
1218
  :constraints:
1107
1219
  MaximumValue: 100
1108
1220
  MinimumValue: 0
@@ -1117,6 +1229,7 @@
1117
1229
  :properties:
1118
1230
  - read
1119
1231
  - cnotify
1232
+ - uncnotify
1120
1233
  :constraints:
1121
1234
  MaximumValue: 1
1122
1235
  MinimumValue: 0
@@ -1151,6 +1264,7 @@
1151
1264
  - read
1152
1265
  - write
1153
1266
  - cnotify
1267
+ - uncnotify
1154
1268
  :constraints:
1155
1269
  ValidValues:
1156
1270
  '0': Stay Arm
@@ -1206,6 +1320,23 @@
1206
1320
  ValidValues:
1207
1321
  '0': Dots
1208
1322
  '1': Arabic Numerals
1323
+ - :name: :set_duration
1324
+ :description: Set Duration
1325
+ :uuid: 000000D3-0000-1000-8000-0026BB765291
1326
+ :format: uint32
1327
+ :unit: nil
1328
+ :permissions:
1329
+ - securedRead
1330
+ - securedWrite
1331
+ :properties:
1332
+ - read
1333
+ - write
1334
+ - cnotify
1335
+ - uncnotify
1336
+ :constraints:
1337
+ MaximumValue: 3600
1338
+ MinimumValue: 0
1339
+ StepValue: 1
1209
1340
  - :name: :setup_endpoints
1210
1341
  :description: Setup Endpoints
1211
1342
  :uuid: '00000118-0000-1000-8000-0026BB765291'
@@ -1256,6 +1387,7 @@
1256
1387
  :properties:
1257
1388
  - read
1258
1389
  - cnotify
1390
+ - uncnotify
1259
1391
  :constraints:
1260
1392
  - :name: :status_fault
1261
1393
  :description: Status Fault
@@ -1327,6 +1459,7 @@
1327
1459
  :properties:
1328
1460
  - read
1329
1461
  - cnotify
1462
+ - uncnotify
1330
1463
  :constraints:
1331
1464
  - :name: :sulphur_dioxide_density
1332
1465
  :description: Sulphur Dioxide Density
@@ -1385,6 +1518,7 @@
1385
1518
  - read
1386
1519
  - write
1387
1520
  - cnotify
1521
+ - uncnotify
1388
1522
  :constraints:
1389
1523
  ValidValues:
1390
1524
  '0': Swing Disabled
@@ -1401,6 +1535,7 @@
1401
1535
  - read
1402
1536
  - write
1403
1537
  - cnotify
1538
+ - uncnotify
1404
1539
  :constraints:
1405
1540
  ValidValues:
1406
1541
  '0': Manual
@@ -1417,6 +1552,7 @@
1417
1552
  - read
1418
1553
  - write
1419
1554
  - cnotify
1555
+ - uncnotify
1420
1556
  :constraints:
1421
1557
  ValidValues:
1422
1558
  '0': Excellent
@@ -1434,6 +1570,7 @@
1434
1570
  - read
1435
1571
  - write
1436
1572
  - cnotify
1573
+ - uncnotify
1437
1574
  :constraints:
1438
1575
  ValidValues:
1439
1576
  '0': Open
@@ -1450,6 +1587,7 @@
1450
1587
  - read
1451
1588
  - write
1452
1589
  - cnotify
1590
+ - uncnotify
1453
1591
  :constraints:
1454
1592
  ValidValues:
1455
1593
  '0': Manual
@@ -1466,6 +1604,7 @@
1466
1604
  - read
1467
1605
  - write
1468
1606
  - cnotify
1607
+ - uncnotify
1469
1608
  :constraints:
1470
1609
  ValidValues:
1471
1610
  '0': Auto
@@ -1483,6 +1622,7 @@
1483
1622
  - read
1484
1623
  - write
1485
1624
  - cnotify
1625
+ - uncnotify
1486
1626
  :constraints:
1487
1627
  ValidValues:
1488
1628
  '0': 'Off'
@@ -1501,6 +1641,7 @@
1501
1641
  - read
1502
1642
  - write
1503
1643
  - cnotify
1644
+ - uncnotify
1504
1645
  :constraints:
1505
1646
  MaximumValue: 90
1506
1647
  MinimumValue: -90
@@ -1517,6 +1658,7 @@
1517
1658
  - read
1518
1659
  - write
1519
1660
  - cnotify
1661
+ - uncnotify
1520
1662
  :constraints:
1521
1663
  ValidValues:
1522
1664
  '0': Humidifier or Dehumidifier
@@ -1534,6 +1676,7 @@
1534
1676
  - read
1535
1677
  - write
1536
1678
  - cnotify
1679
+ - uncnotify
1537
1680
  :constraints:
1538
1681
  MaximumValue: 100
1539
1682
  MinimumValue: 0
@@ -1550,6 +1693,7 @@
1550
1693
  - read
1551
1694
  - write
1552
1695
  - cnotify
1696
+ - uncnotify
1553
1697
  :constraints:
1554
1698
  MaximumValue: 100
1555
1699
  MinimumValue: 0
@@ -1566,6 +1710,7 @@
1566
1710
  - read
1567
1711
  - write
1568
1712
  - cnotify
1713
+ - uncnotify
1569
1714
  :constraints:
1570
1715
  ValidValues:
1571
1716
  '0': Manual
@@ -1582,6 +1727,7 @@
1582
1727
  - read
1583
1728
  - write
1584
1729
  - cnotify
1730
+ - uncnotify
1585
1731
  :constraints:
1586
1732
  MaximumValue: 38
1587
1733
  MinimumValue: 10
@@ -1598,6 +1744,7 @@
1598
1744
  - read
1599
1745
  - write
1600
1746
  - cnotify
1747
+ - uncnotify
1601
1748
  :constraints:
1602
1749
  MaximumValue: 90
1603
1750
  MinimumValue: -90
@@ -1614,6 +1761,7 @@
1614
1761
  - read
1615
1762
  - write
1616
1763
  - cnotify
1764
+ - uncnotify
1617
1765
  :constraints:
1618
1766
  MaximumValue: 90
1619
1767
  MinimumValue: -90
@@ -1630,10 +1778,28 @@
1630
1778
  - read
1631
1779
  - write
1632
1780
  - cnotify
1781
+ - uncnotify
1633
1782
  :constraints:
1634
1783
  ValidValues:
1635
1784
  '0': Celsius
1636
1785
  '1': Fahrenheit
1786
+ - :name: :valve_type
1787
+ :description: Valve Type
1788
+ :uuid: 000000D5-0000-1000-8000-0026BB765291
1789
+ :format: uint8
1790
+ :unit: nil
1791
+ :permissions:
1792
+ - securedRead
1793
+ :properties:
1794
+ - read
1795
+ - cnotify
1796
+ - uncnotify
1797
+ :constraints:
1798
+ ValidValues:
1799
+ '0': Generic valve
1800
+ '1': Irrigation
1801
+ '2': Shower head
1802
+ '3': Water faucet
1637
1803
  - :name: :version
1638
1804
  :description: Version
1639
1805
  :uuid: 00000037-0000-1000-8000-0026BB765291
@@ -1644,6 +1810,7 @@
1644
1810
  :properties:
1645
1811
  - read
1646
1812
  - cnotify
1813
+ - uncnotify
1647
1814
  :constraints:
1648
1815
  MaximumLength: 64
1649
1816
  - :name: :voc_density
@@ -1673,6 +1840,7 @@
1673
1840
  - read
1674
1841
  - write
1675
1842
  - cnotify
1843
+ - uncnotify
1676
1844
  :constraints:
1677
1845
  MaximumValue: 100
1678
1846
  MinimumValue: 0
@@ -1681,28 +1849,13 @@
1681
1849
  :description: Water Level
1682
1850
  :uuid: 000000B5-0000-1000-8000-0026BB765291
1683
1851
  :format: float
1684
- :unit: nil
1852
+ :unit: '"percentage"'
1685
1853
  :permissions:
1686
1854
  - securedRead
1687
1855
  :properties:
1688
1856
  - read
1689
1857
  - cnotify
1858
+ - uncnotify
1690
1859
  :constraints:
1691
1860
  MaximumValue: 100
1692
1861
  MinimumValue: 0
1693
- - :name: :color_temperature
1694
- :description: Color Temperature
1695
- :uuid: 000000CE-0000-1000-8000-0026BB765291
1696
- :format: uint32
1697
- :unit: nil
1698
- :permissions:
1699
- - securedRead
1700
- - securedWrite
1701
- :properties:
1702
- - read
1703
- - write
1704
- - cnotify
1705
- :constraints:
1706
- :MaximumValue: 400
1707
- :MinimumValue: 50
1708
- :StepValue: 1
@@ -152,6 +152,14 @@
152
152
  - 00000023-0000-1000-8000-0026BB765291
153
153
  :required_characteristics_uuids:
154
154
  - 000000AC-0000-1000-8000-0026BB765291
155
+ - :name: :faucet
156
+ :description: Faucet
157
+ :uuid: 000000D7-0000-1000-8000-0026BB765291
158
+ :optional_characteristics_uuids:
159
+ - 00000023-0000-1000-8000-0026BB765291
160
+ - 00000077-0000-1000-8000-0026BB765291
161
+ :required_characteristics_uuids:
162
+ - 000000B0-0000-1000-8000-0026BB765291
155
163
  - :name: :garage_door_opener
156
164
  :description: Garage Door Opener
157
165
  :uuid: 00000041-0000-1000-8000-0026BB765291
@@ -206,6 +214,17 @@
206
214
  - 00000023-0000-1000-8000-0026BB765291
207
215
  :required_characteristics_uuids:
208
216
  - 00000010-0000-1000-8000-0026BB765291
217
+ - :name: :irrigation_system
218
+ :description: Irrigation System
219
+ :uuid: 000000CF-0000-1000-8000-0026BB765291
220
+ :optional_characteristics_uuids:
221
+ - 00000023-0000-1000-8000-0026BB765291
222
+ - 000000D4-0000-1000-8000-0026BB765291
223
+ - 00000077-0000-1000-8000-0026BB765291
224
+ :required_characteristics_uuids:
225
+ - 000000B0-0000-1000-8000-0026BB765291
226
+ - 000000D1-0000-1000-8000-0026BB765291
227
+ - 000000D2-0000-1000-8000-0026BB765291
209
228
  - :name: :leak_sensor
210
229
  :description: Leak Sensor
211
230
  :uuid: '00000083-0000-1000-8000-0026BB765291'
@@ -221,11 +240,11 @@
221
240
  :description: Light Sensor
222
241
  :uuid: '00000084-0000-1000-8000-0026BB765291'
223
242
  :optional_characteristics_uuids:
243
+ - 00000023-0000-1000-8000-0026BB765291
224
244
  - 00000075-0000-1000-8000-0026BB765291
225
245
  - 00000077-0000-1000-8000-0026BB765291
226
246
  - 0000007A-0000-1000-8000-0026BB765291
227
247
  - '00000079-0000-1000-8000-0026BB765291'
228
- - 00000023-0000-1000-8000-0026BB765291
229
248
  :required_characteristics_uuids:
230
249
  - 0000006B-0000-1000-8000-0026BB765291
231
250
  - :name: :lightbulb
@@ -266,9 +285,9 @@
266
285
  :description: Microphone
267
286
  :uuid: 00000112-0000-1000-8000-0026BB765291
268
287
  :optional_characteristics_uuids:
269
- - '00000119-0000-1000-8000-0026BB765291'
270
288
  - 00000023-0000-1000-8000-0026BB765291
271
289
  :required_characteristics_uuids:
290
+ - '00000119-0000-1000-8000-0026BB765291'
272
291
  - 0000011A-0000-1000-8000-0026BB765291
273
292
  - :name: :motion_sensor
274
293
  :description: Motion Sensor
@@ -285,11 +304,11 @@
285
304
  :description: Occupancy Sensor
286
305
  :uuid: '00000086-0000-1000-8000-0026BB765291'
287
306
  :optional_characteristics_uuids:
307
+ - 00000023-0000-1000-8000-0026BB765291
288
308
  - 00000075-0000-1000-8000-0026BB765291
289
309
  - 00000077-0000-1000-8000-0026BB765291
290
310
  - 0000007A-0000-1000-8000-0026BB765291
291
311
  - '00000079-0000-1000-8000-0026BB765291'
292
- - 00000023-0000-1000-8000-0026BB765291
293
312
  :required_characteristics_uuids:
294
313
  - 00000071-0000-1000-8000-0026BB765291
295
314
  - :name: :outlet
@@ -344,8 +363,8 @@
344
363
  :description: Speaker
345
364
  :uuid: 00000113-0000-1000-8000-0026BB765291
346
365
  :optional_characteristics_uuids:
347
- - '00000119-0000-1000-8000-0026BB765291'
348
366
  - 00000023-0000-1000-8000-0026BB765291
367
+ - '00000119-0000-1000-8000-0026BB765291'
349
368
  :required_characteristics_uuids:
350
369
  - 0000011A-0000-1000-8000-0026BB765291
351
370
  - :name: :stateless_programmable_switch
@@ -389,6 +408,20 @@
389
408
  - 00000011-0000-1000-8000-0026BB765291
390
409
  - 00000035-0000-1000-8000-0026BB765291
391
410
  - 00000036-0000-1000-8000-0026BB765291
411
+ - :name: :valve
412
+ :description: Valve
413
+ :uuid: 000000D0-0000-1000-8000-0026BB765291
414
+ :optional_characteristics_uuids:
415
+ - 000000D3-0000-1000-8000-0026BB765291
416
+ - 000000D4-0000-1000-8000-0026BB765291
417
+ - 000000D6-0000-1000-8000-0026BB765291
418
+ - 000000CB-0000-1000-8000-0026BB765291
419
+ - 00000077-0000-1000-8000-0026BB765291
420
+ - 00000023-0000-1000-8000-0026BB765291
421
+ :required_characteristics_uuids:
422
+ - 000000B0-0000-1000-8000-0026BB765291
423
+ - 000000D2-0000-1000-8000-0026BB765291
424
+ - 000000D5-0000-1000-8000-0026BB765291
392
425
  - :name: :window
393
426
  :description: Window
394
427
  :uuid: '0000008B-0000-1000-8000-0026BB765291'
@@ -23,20 +23,10 @@ module RubyHome
23
23
  end
24
24
 
25
25
  def read
26
- return false unless file_exists?
26
+ return false unless File.exists?(source)
27
27
 
28
28
  YAML.load_file(source)
29
29
  end
30
-
31
- def truncate
32
- return false unless file_exists?
33
-
34
- File.truncate(source, 0)
35
- end
36
-
37
- def file_exists?
38
- File.exists?(source)
39
- end
40
30
  end
41
31
 
42
32
  def reload
@@ -1,3 +1,3 @@
1
1
  module RubyHome
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
data/rubyhome.gemspec CHANGED
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.add_dependency 'dnssd', '~> 3.0'
31
31
  spec.add_dependency 'facets', '~> 3.1'
32
32
  spec.add_dependency 'hkdf', '~> 0.3.0'
33
- spec.add_dependency 'oj', '3.9.1'
33
+ spec.add_dependency 'oj', '3.9.2'
34
34
  spec.add_dependency 'rbnacl', '~> 7.0'
35
35
  spec.add_dependency 'ruby_home-srp', '~> 1.3'
36
36
  spec.add_dependency 'ruby_home-tlv', '~> 0.1.0'
@@ -40,6 +40,6 @@ Gem::Specification.new do |spec|
40
40
  spec.add_development_dependency 'byebug', '~> 11.0'
41
41
  spec.add_development_dependency 'plist', '~> 3.4'
42
42
  spec.add_development_dependency 'rack-test', '~> 1.1.0'
43
- spec.add_development_dependency 'rake', '~> 12.3'
43
+ spec.add_development_dependency 'rake', '~> 13.0'
44
44
  spec.add_development_dependency 'rspec', '~> 3.0'
45
45
  end
@@ -10,38 +10,16 @@ module RubyHome
10
10
  def run
11
11
  convert_binary_plist
12
12
  File.open(file_path, 'w') do |file|
13
- file.write characteristics.to_yaml
13
+ file.write generate_characteristics.to_yaml
14
14
  end
15
15
  end
16
16
 
17
- def characteristics
18
- generate_characteristics + hardcoded_characteristics
19
- end
20
-
21
17
  def generate_characteristics
22
18
  parsed_xml['Characteristics'].map do |characteristics_xml|
23
19
  new(characteristics_xml).generate_characteristic_hash
24
20
  end
25
21
  end
26
22
 
27
- def hardcoded_characteristics
28
- [
29
- # HomeKit Accessory Simulator doesnt include color temperature as a characteristic
30
- # HAP-Specification-Non-Commercial-Version lists it as a valid optional characteristic
31
- {
32
- name: :color_temperature,
33
- description: 'Color Temperature',
34
- uuid: '000000CE-0000-1000-8000-0026BB765291',
35
- format: 'uint32',
36
- unit: "nil",
37
- permissions: %w(securedRead securedWrite),
38
- properties: %w(read write cnotify),
39
- constraints: { 'MaximumValue': 400, 'MinimumValue': 50, 'StepValue': 1 }
40
- }
41
- ]
42
- end
43
-
44
-
45
23
  def convert_binary_plist
46
24
  system([
47
25
  'plutil -convert xml1 -o',
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_home
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Entwistle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-25 00:00:00.000000000 Z
11
+ date: 2019-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bindata
@@ -78,14 +78,14 @@ dependencies:
78
78
  requirements:
79
79
  - - '='
80
80
  - !ruby/object:Gem::Version
81
- version: 3.9.1
81
+ version: 3.9.2
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - '='
87
87
  - !ruby/object:Gem::Version
88
- version: 3.9.1
88
+ version: 3.9.2
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: rbnacl
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -204,14 +204,14 @@ dependencies:
204
204
  requirements:
205
205
  - - "~>"
206
206
  - !ruby/object:Gem::Version
207
- version: '12.3'
207
+ version: '13.0'
208
208
  type: :development
209
209
  prerelease: false
210
210
  version_requirements: !ruby/object:Gem::Requirement
211
211
  requirements:
212
212
  - - "~>"
213
213
  - !ruby/object:Gem::Version
214
- version: '12.3'
214
+ version: '13.0'
215
215
  - !ruby/object:Gem::Dependency
216
216
  name: rspec
217
217
  requirement: !ruby/object:Gem::Requirement
@@ -362,8 +362,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
362
362
  - !ruby/object:Gem::Version
363
363
  version: '0'
364
364
  requirements: []
365
- rubyforge_project:
366
- rubygems_version: 2.7.6.2
365
+ rubygems_version: 3.0.3
367
366
  signing_key:
368
367
  specification_version: 4
369
368
  summary: Ruby HomeKit support