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,192 +1,175 @@
1
1
  [
2
- {
3
- "id": "3a57bebe.a3b222",
4
- "type": "group",
5
- "z": "60b06629.a2ebd",
6
- "name": "Dimmable 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
- "459254fe.49c72c",
16
- "379657db.a99df8",
17
- "52a07047.03ce7",
18
- "253b3550.729caa",
19
- "b9bc7f3d.51acf"
20
- ],
21
- "x": 14,
22
- "y": 519,
23
- "w": 752,
24
- "h": 122,
25
- "info": "# Dimmable Bulb\n\nThis is a dimmable bulb. The Characteristic Properties enable brightness. It is a white bulb which can be adjusted from 0 to 100% brightness."
2
+ {
3
+ "id": "3a57bebe.a3b222",
4
+ "type": "group",
5
+ "z": "60b06629.a2ebd",
6
+ "name": "Dimmable 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"
26
13
  },
27
- {
28
- "id": "459254fe.49c72c",
29
- "type": "homekit-service",
30
- "z": "60b06629.a2ebd",
31
- "g": "3a57bebe.a3b222",
32
- "isParent": true,
33
- "bridge": "409001a1.3e7a78",
34
- "parentService": "",
35
- "name": "Dimmable",
36
- "serviceName": "Lightbulb",
37
- "topic": "",
38
- "filter": false,
39
- "manufacturer": "Garrett",
40
- "model": "Dummy",
41
- "serialNo": "Default Serial Number",
42
- "firmwareRev": "1.1.9",
43
- "hardwareRev": "1.0.0",
44
- "softwareRev": "1.0.0",
45
- "cameraConfigVideoProcessor": "ffmpeg",
46
- "cameraConfigSource": "",
47
- "cameraConfigStillImageSource": "",
48
- "cameraConfigMaxStreams": 2,
49
- "cameraConfigMaxWidth": 1280,
50
- "cameraConfigMaxHeight": 720,
51
- "cameraConfigMaxFPS": 10,
52
- "cameraConfigMaxBitrate": 300,
53
- "cameraConfigVideoCodec": "libx264",
54
- "cameraConfigAudioCodec": "libfdk_aac",
55
- "cameraConfigAudio": false,
56
- "cameraConfigPacketSize": 1316,
57
- "cameraConfigVerticalFlip": false,
58
- "cameraConfigHorizontalFlip": false,
59
- "cameraConfigMapVideo": "0:0",
60
- "cameraConfigMapAudio": "0:1",
61
- "cameraConfigVideoFilter": "scale=1280:720",
62
- "cameraConfigAdditionalCommandLine": "-tune zerolatency",
63
- "cameraConfigDebug": false,
64
- "cameraConfigSnapshotOutput": "disabled",
65
- "cameraConfigInterfaceName": "",
66
- "characteristicProperties": "{\n \"Brightness\":true\n}",
67
- "outputs": 2,
68
- "x": 380,
69
- "y": 600,
70
- "wires": [
71
- [
72
- "379657db.a99df8"
73
- ],
74
- []
75
- ]
76
- },
77
- {
78
- "id": "379657db.a99df8",
79
- "type": "debug",
80
- "z": "60b06629.a2ebd",
81
- "g": "3a57bebe.a3b222",
82
- "name": "Dimmable light output",
83
- "active": true,
84
- "tosidebar": true,
85
- "console": false,
86
- "tostatus": false,
87
- "complete": "payload",
88
- "targetType": "msg",
89
- "x": 620,
90
- "y": 600,
91
- "wires": []
92
- },
93
- {
94
- "id": "52a07047.03ce7",
95
- "type": "inject",
96
- "z": "60b06629.a2ebd",
97
- "g": "3a57bebe.a3b222",
98
- "name": "NO RESPONSE",
99
- "props": [
100
- {
101
- "p": "payload"
102
- }
103
- ],
104
- "repeat": "",
105
- "crontab": "",
106
- "once": false,
107
- "onceDelay": 0.1,
108
- "topic": "",
109
- "payload": "{\"On\":\"NO_RESPONSE\"}",
110
- "payloadType": "json",
111
- "x": 320,
112
- "y": 560,
113
- "wires": [
114
- [
115
- "459254fe.49c72c"
116
- ]
117
- ]
118
- },
119
- {
120
- "id": "253b3550.729caa",
121
- "type": "inject",
122
- "z": "60b06629.a2ebd",
123
- "g": "3a57bebe.a3b222",
124
- "name": "ON",
125
- "props": [
126
- {
127
- "p": "payload"
128
- }
129
- ],
130
- "repeat": "",
131
- "crontab": "",
132
- "once": false,
133
- "onceDelay": 0.1,
134
- "topic": "",
135
- "payload": "{\"On\":true}",
136
- "payloadType": "json",
137
- "x": 110,
138
- "y": 560,
139
- "wires": [
140
- [
141
- "459254fe.49c72c"
142
- ]
143
- ]
144
- },
145
- {
146
- "id": "b9bc7f3d.51acf",
147
- "type": "inject",
148
- "z": "60b06629.a2ebd",
149
- "g": "3a57bebe.a3b222",
150
- "name": "OFF",
151
- "props": [
152
- {
153
- "p": "payload"
154
- }
155
- ],
156
- "repeat": "",
157
- "crontab": "",
158
- "once": false,
159
- "onceDelay": 0.1,
160
- "topic": "",
161
- "payload": "{\"On\":false}",
162
- "payloadType": "json",
163
- "x": 110,
164
- "y": 600,
165
- "wires": [
166
- [
167
- "459254fe.49c72c"
168
- ]
169
- ]
170
- },
171
- {
172
- "id": "409001a1.3e7a78",
173
- "type": "homekit-bridge",
174
- "z": "",
175
- "bridgeName": "Demo 1",
176
- "pinCode": "153-10-538",
177
- "port": "",
178
- "allowInsecureRequest": false,
179
- "manufacturer": "NRCHKB",
180
- "model": "Demo",
181
- "serialNo": "1.1.2",
182
- "customMdnsConfig": false,
183
- "mdnsMulticast": true,
184
- "mdnsInterface": "",
185
- "mdnsPort": "",
186
- "mdnsIp": "",
187
- "mdnsTtl": "",
188
- "mdnsLoopback": true,
189
- "mdnsReuseAddr": true,
190
- "allowMessagePassthrough": true
191
- }
14
+ "nodes": [
15
+ "459254fe.49c72c",
16
+ "379657db.a99df8",
17
+ "52a07047.03ce7",
18
+ "253b3550.729caa",
19
+ "b9bc7f3d.51acf"
20
+ ],
21
+ "x": 14,
22
+ "y": 519,
23
+ "w": 752,
24
+ "h": 122,
25
+ "info": "# Dimmable Bulb\n\nThis is a dimmable bulb. The Characteristic Properties enable brightness. It is a white bulb which can be adjusted from 0 to 100% brightness."
26
+ },
27
+ {
28
+ "id": "459254fe.49c72c",
29
+ "type": "homekit-service",
30
+ "z": "60b06629.a2ebd",
31
+ "g": "3a57bebe.a3b222",
32
+ "isParent": true,
33
+ "bridge": "409001a1.3e7a78",
34
+ "parentService": "",
35
+ "name": "Dimmable",
36
+ "serviceName": "Lightbulb",
37
+ "topic": "",
38
+ "filter": false,
39
+ "manufacturer": "Garrett",
40
+ "model": "Dummy",
41
+ "serialNo": "Default Serial Number",
42
+ "firmwareRev": "1.1.9",
43
+ "hardwareRev": "1.0.0",
44
+ "softwareRev": "1.0.0",
45
+ "cameraConfigVideoProcessor": "ffmpeg",
46
+ "cameraConfigSource": "",
47
+ "cameraConfigStillImageSource": "",
48
+ "cameraConfigMaxStreams": 2,
49
+ "cameraConfigMaxWidth": 1280,
50
+ "cameraConfigMaxHeight": 720,
51
+ "cameraConfigMaxFPS": 10,
52
+ "cameraConfigMaxBitrate": 300,
53
+ "cameraConfigVideoCodec": "libx264",
54
+ "cameraConfigAudioCodec": "libfdk_aac",
55
+ "cameraConfigAudio": false,
56
+ "cameraConfigPacketSize": 1316,
57
+ "cameraConfigVerticalFlip": false,
58
+ "cameraConfigHorizontalFlip": false,
59
+ "cameraConfigMapVideo": "0:0",
60
+ "cameraConfigMapAudio": "0:1",
61
+ "cameraConfigVideoFilter": "scale=1280:720",
62
+ "cameraConfigAdditionalCommandLine": "-tune zerolatency",
63
+ "cameraConfigDebug": false,
64
+ "cameraConfigSnapshotOutput": "disabled",
65
+ "cameraConfigInterfaceName": "",
66
+ "characteristicProperties": "{\n \"Brightness\":true\n}",
67
+ "outputs": 2,
68
+ "x": 380,
69
+ "y": 600,
70
+ "wires": [["379657db.a99df8"], []]
71
+ },
72
+ {
73
+ "id": "379657db.a99df8",
74
+ "type": "debug",
75
+ "z": "60b06629.a2ebd",
76
+ "g": "3a57bebe.a3b222",
77
+ "name": "Dimmable light output",
78
+ "active": true,
79
+ "tosidebar": true,
80
+ "console": false,
81
+ "tostatus": false,
82
+ "complete": "payload",
83
+ "targetType": "msg",
84
+ "x": 620,
85
+ "y": 600,
86
+ "wires": []
87
+ },
88
+ {
89
+ "id": "52a07047.03ce7",
90
+ "type": "inject",
91
+ "z": "60b06629.a2ebd",
92
+ "g": "3a57bebe.a3b222",
93
+ "name": "NO RESPONSE",
94
+ "props": [
95
+ {
96
+ "p": "payload"
97
+ }
98
+ ],
99
+ "repeat": "",
100
+ "crontab": "",
101
+ "once": false,
102
+ "onceDelay": 0.1,
103
+ "topic": "",
104
+ "payload": "{\"On\":\"NO_RESPONSE\"}",
105
+ "payloadType": "json",
106
+ "x": 320,
107
+ "y": 560,
108
+ "wires": [["459254fe.49c72c"]]
109
+ },
110
+ {
111
+ "id": "253b3550.729caa",
112
+ "type": "inject",
113
+ "z": "60b06629.a2ebd",
114
+ "g": "3a57bebe.a3b222",
115
+ "name": "ON",
116
+ "props": [
117
+ {
118
+ "p": "payload"
119
+ }
120
+ ],
121
+ "repeat": "",
122
+ "crontab": "",
123
+ "once": false,
124
+ "onceDelay": 0.1,
125
+ "topic": "",
126
+ "payload": "{\"On\":true}",
127
+ "payloadType": "json",
128
+ "x": 110,
129
+ "y": 560,
130
+ "wires": [["459254fe.49c72c"]]
131
+ },
132
+ {
133
+ "id": "b9bc7f3d.51acf",
134
+ "type": "inject",
135
+ "z": "60b06629.a2ebd",
136
+ "g": "3a57bebe.a3b222",
137
+ "name": "OFF",
138
+ "props": [
139
+ {
140
+ "p": "payload"
141
+ }
142
+ ],
143
+ "repeat": "",
144
+ "crontab": "",
145
+ "once": false,
146
+ "onceDelay": 0.1,
147
+ "topic": "",
148
+ "payload": "{\"On\":false}",
149
+ "payloadType": "json",
150
+ "x": 110,
151
+ "y": 600,
152
+ "wires": [["459254fe.49c72c"]]
153
+ },
154
+ {
155
+ "id": "409001a1.3e7a78",
156
+ "type": "homekit-bridge",
157
+ "z": "",
158
+ "bridgeName": "Demo 1",
159
+ "pinCode": "153-10-538",
160
+ "port": "",
161
+ "allowInsecureRequest": false,
162
+ "manufacturer": "NRCHKB",
163
+ "model": "Demo",
164
+ "serialNo": "1.1.2",
165
+ "customMdnsConfig": false,
166
+ "mdnsMulticast": true,
167
+ "mdnsInterface": "",
168
+ "mdnsPort": "",
169
+ "mdnsIp": "",
170
+ "mdnsTtl": "",
171
+ "mdnsLoopback": true,
172
+ "mdnsReuseAddr": true,
173
+ "allowMessagePassthrough": true
174
+ }
192
175
  ]