homebridge-cmd4 7.1.0 → 8.0.0-beta.2
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.
- package/CHANGELOG.md +10 -4
- package/Cmd4Accessory.js +11 -9
- package/Cmd4Platform.js +2 -1
- package/Extras/Cmd4Scripts/State.js +8 -1
- package/RUNNING_CHANGELOG.md +20 -0
- package/docs/Developers.md +2 -42
- package/index.js +2 -2
- package/lib/CMD4_ACC_TYPE_ENUM.js +1108 -835
- package/lib/CMD4_CHAR_TYPE_ENUMS.js +28 -28
- package/package.json +3 -3
|
@@ -50,7 +50,7 @@ var CMD4_CHAR_TYPE_ENUMS =
|
|
|
50
50
|
// Export both the init function and the uninitialized data for unit testing
|
|
51
51
|
module.exports =
|
|
52
52
|
{
|
|
53
|
-
init: function (
|
|
53
|
+
init: function ( hapFormats, hapUnits, hapPerms )
|
|
54
54
|
{
|
|
55
55
|
|
|
56
56
|
// Fill in the properties of all possible characteristics
|
|
@@ -58,67 +58,67 @@ module.exports =
|
|
|
58
58
|
// the characteristic in by default. This costs some lines, but is advantageous.
|
|
59
59
|
CMD4_CHAR_TYPE_ENUMS.CMD4_FORMAT_TYPE_ENUM.properties =
|
|
60
60
|
{
|
|
61
|
-
0: { type:
|
|
61
|
+
0: { type: hapFormats.BOOL // "bool"
|
|
62
62
|
},
|
|
63
|
-
1: { type:
|
|
63
|
+
1: { type: hapFormats.INT // "int"
|
|
64
64
|
},
|
|
65
|
-
2: { type:
|
|
65
|
+
2: { type: hapFormats.FLOAT // "float"
|
|
66
66
|
},
|
|
67
|
-
3: { type:
|
|
67
|
+
3: { type: hapFormats.STRING // "string"
|
|
68
68
|
},
|
|
69
|
-
4: { type:
|
|
69
|
+
4: { type: hapFormats.UINT8 // "uint8"
|
|
70
70
|
},
|
|
71
|
-
5: { type:
|
|
71
|
+
5: { type: hapFormats.UINT16 // "uint16"
|
|
72
72
|
},
|
|
73
|
-
6: { type:
|
|
73
|
+
6: { type: hapFormats.UINT32 // "uint32"
|
|
74
74
|
},
|
|
75
|
-
7: { type:
|
|
75
|
+
7: { type: hapFormats.UINT64 // "uint64"
|
|
76
76
|
},
|
|
77
|
-
8: { type:
|
|
77
|
+
8: { type: hapFormats.DATA // "data"
|
|
78
78
|
},
|
|
79
|
-
9: { type:
|
|
79
|
+
9: { type: hapFormats.TLV8 // "tlv8"
|
|
80
80
|
},
|
|
81
|
-
10: { type:
|
|
81
|
+
10: { type: hapFormats.ARRAY // "array"
|
|
82
82
|
},
|
|
83
|
-
11: { type:
|
|
83
|
+
11: { type: hapFormats.DICTIONARY // "dict"
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
CMD4_CHAR_TYPE_ENUMS.CMD4_UNITS_TYPE_ENUM.properties =
|
|
88
88
|
{
|
|
89
|
-
0: { type:
|
|
89
|
+
0: { type: hapUnits.CELSIUS // "celsius"
|
|
90
90
|
},
|
|
91
|
-
1: { type:
|
|
91
|
+
1: { type: hapUnits.PERCENTAGE // "percentage"
|
|
92
92
|
},
|
|
93
|
-
2: { type:
|
|
93
|
+
2: { type: hapUnits.ARC_DEGREE // "arcdegrees"
|
|
94
94
|
},
|
|
95
|
-
3: { type:
|
|
95
|
+
3: { type: hapUnits.LUX // "lux"
|
|
96
96
|
},
|
|
97
|
-
4: { type:
|
|
97
|
+
4: { type: hapUnits.SECONDS // "seconds"
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
100
|
|
|
101
101
|
CMD4_CHAR_TYPE_ENUMS.CMD4_PERMS_TYPE_ENUM.properties =
|
|
102
102
|
{
|
|
103
|
-
0: { type:
|
|
103
|
+
0: { type: hapPerms.READ // "pr"
|
|
104
104
|
},
|
|
105
|
-
1: { type:
|
|
105
|
+
1: { type: hapPerms.WRITE // "pw"
|
|
106
106
|
},
|
|
107
|
-
2: { type:
|
|
107
|
+
2: { type: hapPerms.PAIRED_READ // "pr"
|
|
108
108
|
},
|
|
109
|
-
3: { type:
|
|
109
|
+
3: { type: hapPerms.PAIRED_WRITE // "pw"
|
|
110
110
|
},
|
|
111
|
-
4: { type:
|
|
111
|
+
4: { type: hapPerms.NOTIFY // "ev"
|
|
112
112
|
},
|
|
113
|
-
5: { type:
|
|
113
|
+
5: { type: hapPerms.EVENTS // "ev"
|
|
114
114
|
},
|
|
115
|
-
6: { type:
|
|
115
|
+
6: { type: hapPerms.ADDITIONAL_AUTHORIZATION // "aa"
|
|
116
116
|
},
|
|
117
|
-
7: { type:
|
|
117
|
+
7: { type: hapPerms.TIMED_WRITE // "tw"
|
|
118
118
|
},
|
|
119
|
-
8: { type:
|
|
119
|
+
8: { type: hapPerms.HIDDEN // "hd"
|
|
120
120
|
},
|
|
121
|
-
9: { type:
|
|
121
|
+
9: { type: hapPerms.WRITE_RESPONSE // "wr"
|
|
122
122
|
}
|
|
123
123
|
};
|
|
124
124
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-cmd4",
|
|
3
3
|
"description": "Exec Plugin for Homebridge supporting all accessorys and characteristics",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "8.0.0-beta.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "John Talbot"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"docs": "docs"
|
|
48
48
|
},
|
|
49
49
|
"engines": {
|
|
50
|
-
"homebridge": ">=1.
|
|
50
|
+
"homebridge": ">=1.8.0",
|
|
51
51
|
"node": ">=10.17.0"
|
|
52
52
|
},
|
|
53
53
|
"keywords": [
|
|
@@ -114,4 +114,4 @@
|
|
|
114
114
|
"release:minor": "tools/generateChangeLog --type minor --cleanup",
|
|
115
115
|
"release:major": "tools/generateChangeLog --type major --cleanup"
|
|
116
116
|
}
|
|
117
|
-
}
|
|
117
|
+
}
|