node-red-contrib-homekit-bridged 2.0.0-dev.0 → 2.0.0-dev.1
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/build/lib/HAPHostNode.js +3 -5
- package/build/lib/HAPServiceNode.js +5 -5
- package/build/lib/HAPServiceNode2.js +5 -5
- package/build/lib/api.js +17 -18
- package/build/lib/hap/eve-app/EveCharacteristics.js +10 -10
- package/build/lib/utils/AccessoryUtils.js +7 -5
- package/build/lib/utils/BridgeUtils.js +2 -2
- package/build/lib/utils/CharacteristicUtils.js +1 -1
- package/build/lib/utils/CharacteristicUtils2.js +1 -1
- package/build/lib/utils/ServiceUtils.js +17 -20
- package/build/lib/utils/ServiceUtils2.js +13 -14
- package/build/lib/utils/index.js +1 -1
- package/build/nodes/status.js +3 -3
- package/examples/demo/01 - ALL Demos single import.json +64 -318
- package/examples/demo/02 - Air Purifier.json +279 -328
- package/examples/demo/03 - Air Quality sensor with Battery.json +254 -282
- package/examples/demo/04 - Dimmable Bulb.json +172 -189
- package/examples/demo/05 - Color Bulb (HSV).json +195 -216
- package/examples/demo/06 - Fan (simple, 3 speeds).json +240 -265
- package/examples/demo/07 - Fan (with speed, oscillate, rotation direction).json +175 -192
- package/examples/demo/08 - CO2 detector.json +224 -255
- package/examples/demo/09 - CO (carbon monoxide) example.json +255 -290
- package/examples/demo/10 - Door window contact sensor.json +234 -265
- package/examples/demos (advanced)/01 - Television with inputs and speaker.json +541 -607
- package/examples/switch/01 - Plain Switch.json +7 -27
- package/package.json +82 -81
|
@@ -1,195 +1,178 @@
|
|
|
1
1
|
[
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
"nodes": [
|
|
15
|
-
"b7778e52.220a5",
|
|
16
|
-
"fd8aff55.91d41",
|
|
17
|
-
"c717b796.0735b8",
|
|
18
|
-
"f56a2f96.509c1",
|
|
19
|
-
"d945ba75.897998"
|
|
20
|
-
],
|
|
21
|
-
"x": 14,
|
|
22
|
-
"y": 1619,
|
|
23
|
-
"w": 752,
|
|
24
|
-
"h": 182,
|
|
25
|
-
"info": "# Fan V2\n\nThis example shows a fan. The inputs from node red are to turn the fan on, off, or set \"No Response\".\n\nThe outputs going to \"Fan output\" will show:\n\nOn / off state <br/>\nRotation speed<br/>\nSwing mode on / off (oscillate) <br/>\nRotation direction (clockwise/counterclockwise)"
|
|
2
|
+
{
|
|
3
|
+
"id": "2c464315.51c50c",
|
|
4
|
+
"type": "group",
|
|
5
|
+
"z": "60b06629.a2ebd",
|
|
6
|
+
"name": "Fan Full Example: 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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
"mdnsLoopback": true,
|
|
192
|
-
"mdnsReuseAddr": true,
|
|
193
|
-
"allowMessagePassthrough": true
|
|
194
|
-
}
|
|
14
|
+
"nodes": [
|
|
15
|
+
"b7778e52.220a5",
|
|
16
|
+
"fd8aff55.91d41",
|
|
17
|
+
"c717b796.0735b8",
|
|
18
|
+
"f56a2f96.509c1",
|
|
19
|
+
"d945ba75.897998"
|
|
20
|
+
],
|
|
21
|
+
"x": 14,
|
|
22
|
+
"y": 1619,
|
|
23
|
+
"w": 752,
|
|
24
|
+
"h": 182,
|
|
25
|
+
"info": "# Fan V2\n\nThis example shows a fan. The inputs from node red are to turn the fan on, off, or set \"No Response\".\n\nThe outputs going to \"Fan output\" will show:\n\nOn / off state <br/>\nRotation speed<br/>\nSwing mode on / off (oscillate) <br/>\nRotation direction (clockwise/counterclockwise)"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"id": "b7778e52.220a5",
|
|
29
|
+
"type": "debug",
|
|
30
|
+
"z": "60b06629.a2ebd",
|
|
31
|
+
"g": "2c464315.51c50c",
|
|
32
|
+
"name": "Fan output",
|
|
33
|
+
"active": true,
|
|
34
|
+
"tosidebar": true,
|
|
35
|
+
"console": false,
|
|
36
|
+
"tostatus": false,
|
|
37
|
+
"complete": "payload",
|
|
38
|
+
"targetType": "msg",
|
|
39
|
+
"x": 650,
|
|
40
|
+
"y": 1660,
|
|
41
|
+
"wires": []
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"id": "fd8aff55.91d41",
|
|
45
|
+
"type": "homekit-service",
|
|
46
|
+
"z": "60b06629.a2ebd",
|
|
47
|
+
"g": "2c464315.51c50c",
|
|
48
|
+
"isParent": true,
|
|
49
|
+
"bridge": "409001a1.3e7a78",
|
|
50
|
+
"parentService": "",
|
|
51
|
+
"name": "Fan V2",
|
|
52
|
+
"serviceName": "Fanv2",
|
|
53
|
+
"topic": "",
|
|
54
|
+
"filter": false,
|
|
55
|
+
"manufacturer": "Default Manufacturer",
|
|
56
|
+
"model": "Default Model",
|
|
57
|
+
"serialNo": "Default Serial Number",
|
|
58
|
+
"firmwareRev": "1.0.0",
|
|
59
|
+
"hardwareRev": "1.0.0",
|
|
60
|
+
"softwareRev": "1.0.0",
|
|
61
|
+
"cameraConfigVideoProcessor": "ffmpeg",
|
|
62
|
+
"cameraConfigSource": "",
|
|
63
|
+
"cameraConfigStillImageSource": "",
|
|
64
|
+
"cameraConfigMaxStreams": 2,
|
|
65
|
+
"cameraConfigMaxWidth": 1280,
|
|
66
|
+
"cameraConfigMaxHeight": 720,
|
|
67
|
+
"cameraConfigMaxFPS": 10,
|
|
68
|
+
"cameraConfigMaxBitrate": 300,
|
|
69
|
+
"cameraConfigVideoCodec": "libx264",
|
|
70
|
+
"cameraConfigAudioCodec": "libfdk_aac",
|
|
71
|
+
"cameraConfigAudio": false,
|
|
72
|
+
"cameraConfigPacketSize": 1316,
|
|
73
|
+
"cameraConfigVerticalFlip": false,
|
|
74
|
+
"cameraConfigHorizontalFlip": false,
|
|
75
|
+
"cameraConfigMapVideo": "0:0",
|
|
76
|
+
"cameraConfigMapAudio": "0:1",
|
|
77
|
+
"cameraConfigVideoFilter": "scale=1280:720",
|
|
78
|
+
"cameraConfigAdditionalCommandLine": "-tune zerolatency",
|
|
79
|
+
"cameraConfigDebug": false,
|
|
80
|
+
"cameraConfigSnapshotOutput": "disabled",
|
|
81
|
+
"cameraConfigInterfaceName": "",
|
|
82
|
+
"characteristicProperties": "{\n \"RotationSpeed\":true,\n \"RotationDirection\":true,\n \"SwingMode\":true\n}",
|
|
83
|
+
"outputs": 2,
|
|
84
|
+
"x": 420,
|
|
85
|
+
"y": 1660,
|
|
86
|
+
"wires": [["b7778e52.220a5"], []]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"id": "c717b796.0735b8",
|
|
90
|
+
"type": "inject",
|
|
91
|
+
"z": "60b06629.a2ebd",
|
|
92
|
+
"g": "2c464315.51c50c",
|
|
93
|
+
"name": "NO RESPONSE",
|
|
94
|
+
"repeat": "",
|
|
95
|
+
"crontab": "",
|
|
96
|
+
"once": false,
|
|
97
|
+
"onceDelay": 0.1,
|
|
98
|
+
"topic": "",
|
|
99
|
+
"payload": "{\"Active\":\"NO_RESPONSE\"}",
|
|
100
|
+
"payloadType": "json",
|
|
101
|
+
"x": 140,
|
|
102
|
+
"y": 1760,
|
|
103
|
+
"wires": [["fd8aff55.91d41"]]
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"id": "f56a2f96.509c1",
|
|
107
|
+
"type": "inject",
|
|
108
|
+
"z": "60b06629.a2ebd",
|
|
109
|
+
"g": "2c464315.51c50c",
|
|
110
|
+
"name": "ON",
|
|
111
|
+
"props": [
|
|
112
|
+
{
|
|
113
|
+
"p": "payload"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"p": "topic",
|
|
117
|
+
"vt": "str"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"repeat": "",
|
|
121
|
+
"crontab": "",
|
|
122
|
+
"once": false,
|
|
123
|
+
"onceDelay": 0.1,
|
|
124
|
+
"topic": "",
|
|
125
|
+
"payload": "{\"Active\":true}",
|
|
126
|
+
"payloadType": "json",
|
|
127
|
+
"x": 120,
|
|
128
|
+
"y": 1660,
|
|
129
|
+
"wires": [["fd8aff55.91d41"]]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"id": "d945ba75.897998",
|
|
133
|
+
"type": "inject",
|
|
134
|
+
"z": "60b06629.a2ebd",
|
|
135
|
+
"g": "2c464315.51c50c",
|
|
136
|
+
"name": "OFF",
|
|
137
|
+
"props": [
|
|
138
|
+
{
|
|
139
|
+
"p": "payload"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"p": "topic",
|
|
143
|
+
"vt": "str"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"repeat": "",
|
|
147
|
+
"crontab": "",
|
|
148
|
+
"once": false,
|
|
149
|
+
"onceDelay": 0.1,
|
|
150
|
+
"topic": "",
|
|
151
|
+
"payload": "{\"Active\":false}",
|
|
152
|
+
"payloadType": "json",
|
|
153
|
+
"x": 120,
|
|
154
|
+
"y": 1700,
|
|
155
|
+
"wires": [["fd8aff55.91d41"]]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"id": "409001a1.3e7a78",
|
|
159
|
+
"type": "homekit-bridge",
|
|
160
|
+
"z": "",
|
|
161
|
+
"bridgeName": "Demo 1",
|
|
162
|
+
"pinCode": "153-10-538",
|
|
163
|
+
"port": "",
|
|
164
|
+
"allowInsecureRequest": false,
|
|
165
|
+
"manufacturer": "NRCHKB",
|
|
166
|
+
"model": "Demo",
|
|
167
|
+
"serialNo": "1.1.2",
|
|
168
|
+
"customMdnsConfig": false,
|
|
169
|
+
"mdnsMulticast": true,
|
|
170
|
+
"mdnsInterface": "",
|
|
171
|
+
"mdnsPort": "",
|
|
172
|
+
"mdnsIp": "",
|
|
173
|
+
"mdnsTtl": "",
|
|
174
|
+
"mdnsLoopback": true,
|
|
175
|
+
"mdnsReuseAddr": true,
|
|
176
|
+
"allowMessagePassthrough": true
|
|
177
|
+
}
|
|
195
178
|
]
|