node-red-contrib-homekit-bridged 2.0.0-dev.0 → 2.0.0-dev.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.
Files changed (45) hide show
  1. package/build/lib/HAPHostNode.js +59 -64
  2. package/build/lib/HAPServiceNode.js +91 -95
  3. package/build/lib/HAPServiceNode2.js +93 -97
  4. package/build/lib/Storage.d.ts +3 -3
  5. package/build/lib/Storage.js +2 -2
  6. package/build/lib/api.js +26 -29
  7. package/build/lib/hap/HAPCharacteristic.d.ts +1 -1
  8. package/build/lib/hap/HAPService.d.ts +1 -1
  9. package/build/lib/hap/eve-app/EveCharacteristics.d.ts +1 -1
  10. package/build/lib/hap/eve-app/EveCharacteristics.js +10 -10
  11. package/build/lib/types/CustomCharacteristicType.d.ts +1 -1
  12. package/build/lib/types/HAPHostConfigType.d.ts +4 -4
  13. package/build/lib/types/HAPHostNodeType.d.ts +4 -4
  14. package/build/lib/types/HAPService2ConfigType.d.ts +2 -2
  15. package/build/lib/types/HAPService2NodeType.d.ts +3 -3
  16. package/build/lib/types/HAPServiceConfigType.d.ts +3 -3
  17. package/build/lib/types/HAPServiceNodeType.d.ts +10 -10
  18. package/build/lib/types/HAPStatusConfigType.d.ts +1 -1
  19. package/build/lib/types/HAPStatusNodeType.d.ts +5 -5
  20. package/build/lib/types/NodeType.d.ts +1 -1
  21. package/build/lib/types/storage/SerializedHostType.d.ts +2 -2
  22. package/build/lib/utils/AccessoryUtils.js +15 -15
  23. package/build/lib/utils/BridgeUtils.js +5 -5
  24. package/build/lib/utils/CharacteristicUtils.js +6 -6
  25. package/build/lib/utils/CharacteristicUtils2.js +6 -6
  26. package/build/lib/utils/NodeStatusUtils.d.ts +2 -2
  27. package/build/lib/utils/NodeStatusUtils.js +2 -2
  28. package/build/lib/utils/ServiceUtils.js +39 -38
  29. package/build/lib/utils/ServiceUtils2.js +39 -37
  30. package/build/lib/utils/index.js +2 -2
  31. package/build/nodes/nrchkb.js +2 -2
  32. package/build/nodes/status.js +15 -16
  33. package/examples/demo/01 - ALL Demos single import.json +64 -318
  34. package/examples/demo/02 - Air Purifier.json +279 -328
  35. package/examples/demo/03 - Air Quality sensor with Battery.json +254 -282
  36. package/examples/demo/04 - Dimmable Bulb.json +172 -189
  37. package/examples/demo/05 - Color Bulb (HSV).json +195 -216
  38. package/examples/demo/06 - Fan (simple, 3 speeds).json +240 -265
  39. package/examples/demo/07 - Fan (with speed, oscillate, rotation direction).json +175 -192
  40. package/examples/demo/08 - CO2 detector.json +224 -255
  41. package/examples/demo/09 - CO (carbon monoxide) example.json +255 -290
  42. package/examples/demo/10 - Door window contact sensor.json +234 -265
  43. package/examples/demos (advanced)/01 - Television with inputs and speaker.json +541 -607
  44. package/examples/switch/01 - Plain Switch.json +7 -27
  45. package/package.json +83 -81
@@ -1,219 +1,198 @@
1
1
  [
2
- {
3
- "id": "384e0889.1fdae",
4
- "type": "group",
5
- "z": "60b06629.a2ebd",
6
- "name": "Color Bulb: input from device, output to device",
7
- "style": {
8
- "stroke": "#999999",
9
- "fill": "none",
10
- "label": true,
11
- "label-position": "nw",
12
- "color": "#a4a4a4"
13
- },
14
- "nodes": [
15
- "d838176b.dbaf7",
16
- "7bf880d4.3cd4d",
17
- "ee1452a5.08edd",
18
- "c6ed2a2a.90a01",
19
- "8cdfae2b.2f2ce8",
20
- "1758401b.6c62e8"
21
- ],
22
- "x": 14,
23
- "y": 659,
24
- "w": 752,
25
- "h": 162,
26
- "info": "# Color Bulb\n\nThis is a color bulb. It accepts and sends out Hue, Saturation, Value, and On/off state.\n\nHue is the color\n\nSaturation is how deep the color is\n\nValue is brightness\n\nOn is power state"
2
+ {
3
+ "id": "384e0889.1fdae",
4
+ "type": "group",
5
+ "z": "60b06629.a2ebd",
6
+ "name": "Color Bulb: input from device, output to device",
7
+ "style": {
8
+ "stroke": "#999999",
9
+ "fill": "none",
10
+ "label": true,
11
+ "label-position": "nw",
12
+ "color": "#a4a4a4"
27
13
  },
28
- {
29
- "id": "d838176b.dbaf7",
30
- "type": "debug",
31
- "z": "60b06629.a2ebd",
32
- "g": "384e0889.1fdae",
33
- "name": "Color light output",
34
- "active": true,
35
- "tosidebar": true,
36
- "console": false,
37
- "tostatus": false,
38
- "complete": "payload",
39
- "targetType": "msg",
40
- "x": 630,
41
- "y": 780,
42
- "wires": []
43
- },
44
- {
45
- "id": "7bf880d4.3cd4d",
46
- "type": "homekit-service",
47
- "z": "60b06629.a2ebd",
48
- "g": "384e0889.1fdae",
49
- "isParent": true,
50
- "bridge": "409001a1.3e7a78",
51
- "parentService": "",
52
- "name": "Color",
53
- "serviceName": "Lightbulb",
54
- "topic": "",
55
- "filter": false,
56
- "manufacturer": "Garrett",
57
- "model": "Color",
58
- "serialNo": "42",
59
- "firmwareRev": "1.2",
60
- "hardwareRev": "1.0.0",
61
- "softwareRev": "1.0.0",
62
- "cameraConfigVideoProcessor": "ffmpeg",
63
- "cameraConfigSource": "",
64
- "cameraConfigStillImageSource": "",
65
- "cameraConfigMaxStreams": 2,
66
- "cameraConfigMaxWidth": 1280,
67
- "cameraConfigMaxHeight": 720,
68
- "cameraConfigMaxFPS": 10,
69
- "cameraConfigMaxBitrate": 300,
70
- "cameraConfigVideoCodec": "libx264",
71
- "cameraConfigAudioCodec": "libfdk_aac",
72
- "cameraConfigAudio": false,
73
- "cameraConfigPacketSize": 1316,
74
- "cameraConfigVerticalFlip": false,
75
- "cameraConfigHorizontalFlip": false,
76
- "cameraConfigMapVideo": "0:0",
77
- "cameraConfigMapAudio": "0:1",
78
- "cameraConfigVideoFilter": "scale=1280:720",
79
- "cameraConfigAdditionalCommandLine": "-tune zerolatency",
80
- "cameraConfigDebug": false,
81
- "cameraConfigSnapshotOutput": "disabled",
82
- "cameraConfigInterfaceName": "",
83
- "characteristicProperties": "{\n \"Brightness\":true,\n \"Hue\":true,\n \"Saturation\":true\n}",
84
- "outputs": 2,
85
- "x": 410,
86
- "y": 780,
87
- "wires": [
88
- [
89
- "d838176b.dbaf7"
90
- ],
91
- []
92
- ]
93
- },
94
- {
95
- "id": "ee1452a5.08edd",
96
- "type": "inject",
97
- "z": "60b06629.a2ebd",
98
- "g": "384e0889.1fdae",
99
- "name": "NO RESPONSE",
100
- "props": [
101
- {
102
- "p": "payload"
103
- }
104
- ],
105
- "repeat": "",
106
- "crontab": "",
107
- "once": false,
108
- "onceDelay": 0.1,
109
- "topic": "",
110
- "payload": "{\"On\":\"NO_RESPONSE\"}",
111
- "payloadType": "json",
112
- "x": 340,
113
- "y": 700,
114
- "wires": [
115
- [
116
- "7bf880d4.3cd4d"
117
- ]
118
- ]
119
- },
120
- {
121
- "id": "c6ed2a2a.90a01",
122
- "type": "inject",
123
- "z": "60b06629.a2ebd",
124
- "g": "384e0889.1fdae",
125
- "name": "ON",
126
- "props": [
127
- {
128
- "p": "payload"
129
- }
130
- ],
131
- "repeat": "",
132
- "crontab": "",
133
- "once": false,
134
- "onceDelay": 0.1,
135
- "topic": "",
136
- "payload": "{\"On\":true}",
137
- "payloadType": "json",
138
- "x": 110,
139
- "y": 700,
140
- "wires": [
141
- [
142
- "7bf880d4.3cd4d"
143
- ]
144
- ]
145
- },
146
- {
147
- "id": "8cdfae2b.2f2ce8",
148
- "type": "inject",
149
- "z": "60b06629.a2ebd",
150
- "g": "384e0889.1fdae",
151
- "name": "Reset HSV",
152
- "props": [
153
- {
154
- "p": "payload"
155
- }
156
- ],
157
- "repeat": "",
158
- "crontab": "",
159
- "once": false,
160
- "onceDelay": 0.1,
161
- "topic": "",
162
- "payload": "{\"Brightness\":50,\"Hue\":50,\"Saturation\":50}",
163
- "payloadType": "json",
164
- "x": 120,
165
- "y": 780,
166
- "wires": [
167
- [
168
- "7bf880d4.3cd4d"
169
- ]
170
- ]
171
- },
172
- {
173
- "id": "1758401b.6c62e8",
174
- "type": "inject",
175
- "z": "60b06629.a2ebd",
176
- "g": "384e0889.1fdae",
177
- "name": "OFF",
178
- "props": [
179
- {
180
- "p": "payload"
181
- }
182
- ],
183
- "repeat": "",
184
- "crontab": "",
185
- "once": false,
186
- "onceDelay": 0.1,
187
- "topic": "",
188
- "payload": "{\"On\":false}",
189
- "payloadType": "json",
190
- "x": 110,
191
- "y": 740,
192
- "wires": [
193
- [
194
- "7bf880d4.3cd4d"
195
- ]
196
- ]
197
- },
198
- {
199
- "id": "409001a1.3e7a78",
200
- "type": "homekit-bridge",
201
- "z": "",
202
- "bridgeName": "Demo 1",
203
- "pinCode": "153-10-538",
204
- "port": "",
205
- "allowInsecureRequest": false,
206
- "manufacturer": "NRCHKB",
207
- "model": "Demo",
208
- "serialNo": "1.1.2",
209
- "customMdnsConfig": false,
210
- "mdnsMulticast": true,
211
- "mdnsInterface": "",
212
- "mdnsPort": "",
213
- "mdnsIp": "",
214
- "mdnsTtl": "",
215
- "mdnsLoopback": true,
216
- "mdnsReuseAddr": true,
217
- "allowMessagePassthrough": true
218
- }
14
+ "nodes": [
15
+ "d838176b.dbaf7",
16
+ "7bf880d4.3cd4d",
17
+ "ee1452a5.08edd",
18
+ "c6ed2a2a.90a01",
19
+ "8cdfae2b.2f2ce8",
20
+ "1758401b.6c62e8"
21
+ ],
22
+ "x": 14,
23
+ "y": 659,
24
+ "w": 752,
25
+ "h": 162,
26
+ "info": "# Color Bulb\n\nThis is a color bulb. It accepts and sends out Hue, Saturation, Value, and On/off state.\n\nHue is the color\n\nSaturation is how deep the color is\n\nValue is brightness\n\nOn is power state"
27
+ },
28
+ {
29
+ "id": "d838176b.dbaf7",
30
+ "type": "debug",
31
+ "z": "60b06629.a2ebd",
32
+ "g": "384e0889.1fdae",
33
+ "name": "Color light output",
34
+ "active": true,
35
+ "tosidebar": true,
36
+ "console": false,
37
+ "tostatus": false,
38
+ "complete": "payload",
39
+ "targetType": "msg",
40
+ "x": 630,
41
+ "y": 780,
42
+ "wires": []
43
+ },
44
+ {
45
+ "id": "7bf880d4.3cd4d",
46
+ "type": "homekit-service",
47
+ "z": "60b06629.a2ebd",
48
+ "g": "384e0889.1fdae",
49
+ "isParent": true,
50
+ "bridge": "409001a1.3e7a78",
51
+ "parentService": "",
52
+ "name": "Color",
53
+ "serviceName": "Lightbulb",
54
+ "topic": "",
55
+ "filter": false,
56
+ "manufacturer": "Garrett",
57
+ "model": "Color",
58
+ "serialNo": "42",
59
+ "firmwareRev": "1.2",
60
+ "hardwareRev": "1.0.0",
61
+ "softwareRev": "1.0.0",
62
+ "cameraConfigVideoProcessor": "ffmpeg",
63
+ "cameraConfigSource": "",
64
+ "cameraConfigStillImageSource": "",
65
+ "cameraConfigMaxStreams": 2,
66
+ "cameraConfigMaxWidth": 1280,
67
+ "cameraConfigMaxHeight": 720,
68
+ "cameraConfigMaxFPS": 10,
69
+ "cameraConfigMaxBitrate": 300,
70
+ "cameraConfigVideoCodec": "libx264",
71
+ "cameraConfigAudioCodec": "libfdk_aac",
72
+ "cameraConfigAudio": false,
73
+ "cameraConfigPacketSize": 1316,
74
+ "cameraConfigVerticalFlip": false,
75
+ "cameraConfigHorizontalFlip": false,
76
+ "cameraConfigMapVideo": "0:0",
77
+ "cameraConfigMapAudio": "0:1",
78
+ "cameraConfigVideoFilter": "scale=1280:720",
79
+ "cameraConfigAdditionalCommandLine": "-tune zerolatency",
80
+ "cameraConfigDebug": false,
81
+ "cameraConfigSnapshotOutput": "disabled",
82
+ "cameraConfigInterfaceName": "",
83
+ "characteristicProperties": "{\n \"Brightness\":true,\n \"Hue\":true,\n \"Saturation\":true\n}",
84
+ "outputs": 2,
85
+ "x": 410,
86
+ "y": 780,
87
+ "wires": [["d838176b.dbaf7"], []]
88
+ },
89
+ {
90
+ "id": "ee1452a5.08edd",
91
+ "type": "inject",
92
+ "z": "60b06629.a2ebd",
93
+ "g": "384e0889.1fdae",
94
+ "name": "NO RESPONSE",
95
+ "props": [
96
+ {
97
+ "p": "payload"
98
+ }
99
+ ],
100
+ "repeat": "",
101
+ "crontab": "",
102
+ "once": false,
103
+ "onceDelay": 0.1,
104
+ "topic": "",
105
+ "payload": "{\"On\":\"NO_RESPONSE\"}",
106
+ "payloadType": "json",
107
+ "x": 340,
108
+ "y": 700,
109
+ "wires": [["7bf880d4.3cd4d"]]
110
+ },
111
+ {
112
+ "id": "c6ed2a2a.90a01",
113
+ "type": "inject",
114
+ "z": "60b06629.a2ebd",
115
+ "g": "384e0889.1fdae",
116
+ "name": "ON",
117
+ "props": [
118
+ {
119
+ "p": "payload"
120
+ }
121
+ ],
122
+ "repeat": "",
123
+ "crontab": "",
124
+ "once": false,
125
+ "onceDelay": 0.1,
126
+ "topic": "",
127
+ "payload": "{\"On\":true}",
128
+ "payloadType": "json",
129
+ "x": 110,
130
+ "y": 700,
131
+ "wires": [["7bf880d4.3cd4d"]]
132
+ },
133
+ {
134
+ "id": "8cdfae2b.2f2ce8",
135
+ "type": "inject",
136
+ "z": "60b06629.a2ebd",
137
+ "g": "384e0889.1fdae",
138
+ "name": "Reset HSV",
139
+ "props": [
140
+ {
141
+ "p": "payload"
142
+ }
143
+ ],
144
+ "repeat": "",
145
+ "crontab": "",
146
+ "once": false,
147
+ "onceDelay": 0.1,
148
+ "topic": "",
149
+ "payload": "{\"Brightness\":50,\"Hue\":50,\"Saturation\":50}",
150
+ "payloadType": "json",
151
+ "x": 120,
152
+ "y": 780,
153
+ "wires": [["7bf880d4.3cd4d"]]
154
+ },
155
+ {
156
+ "id": "1758401b.6c62e8",
157
+ "type": "inject",
158
+ "z": "60b06629.a2ebd",
159
+ "g": "384e0889.1fdae",
160
+ "name": "OFF",
161
+ "props": [
162
+ {
163
+ "p": "payload"
164
+ }
165
+ ],
166
+ "repeat": "",
167
+ "crontab": "",
168
+ "once": false,
169
+ "onceDelay": 0.1,
170
+ "topic": "",
171
+ "payload": "{\"On\":false}",
172
+ "payloadType": "json",
173
+ "x": 110,
174
+ "y": 740,
175
+ "wires": [["7bf880d4.3cd4d"]]
176
+ },
177
+ {
178
+ "id": "409001a1.3e7a78",
179
+ "type": "homekit-bridge",
180
+ "z": "",
181
+ "bridgeName": "Demo 1",
182
+ "pinCode": "153-10-538",
183
+ "port": "",
184
+ "allowInsecureRequest": false,
185
+ "manufacturer": "NRCHKB",
186
+ "model": "Demo",
187
+ "serialNo": "1.1.2",
188
+ "customMdnsConfig": false,
189
+ "mdnsMulticast": true,
190
+ "mdnsInterface": "",
191
+ "mdnsPort": "",
192
+ "mdnsIp": "",
193
+ "mdnsTtl": "",
194
+ "mdnsLoopback": true,
195
+ "mdnsReuseAddr": true,
196
+ "allowMessagePassthrough": true
197
+ }
219
198
  ]