node-red-contrib-homekit-bridged 2.0.0-dev.4 → 2.0.0-dev.7
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 +183 -141
- package/build/lib/HAPServiceNode.js +199 -172
- package/build/lib/HAPServiceNode2.js +207 -172
- package/build/lib/NRCHKBError.js +23 -2
- package/build/lib/PairingQRCode.js +62 -0
- package/build/lib/Storage.js +157 -92
- package/build/lib/api.js +654 -288
- package/build/lib/camera/CameraControl.js +125 -0
- package/build/lib/camera/CameraDelegate.js +507 -0
- package/build/lib/camera/MP4StreamingServer.js +159 -0
- package/build/lib/hap/HAPCharacteristic.js +25 -4
- package/build/lib/hap/HAPService.js +25 -4
- package/build/lib/hap/eve-app/EveCharacteristics.js +124 -81
- package/build/lib/hap/eve-app/EveServices.js +50 -17
- package/build/lib/hap/hap-nodejs.js +32 -0
- package/build/lib/migration/HomeKitService2Migration.js +34 -0
- package/build/lib/migration/NodeMigration.js +75 -0
- package/build/lib/types/AccessoryInformationType.js +15 -1
- package/build/lib/types/CameraConfigType.js +15 -1
- package/build/lib/types/CustomCharacteristicType.js +15 -1
- package/build/lib/types/HAPHostConfigType.js +15 -1
- package/build/lib/types/HAPHostNodeType.js +15 -1
- package/build/lib/types/HAPService2ConfigType.js +15 -1
- package/build/lib/types/HAPService2NodeType.js +15 -1
- package/build/lib/types/HAPServiceConfigType.js +15 -1
- package/build/lib/types/HAPServiceNodeType.js +15 -1
- package/build/lib/types/HAPStatusConfigType.js +15 -1
- package/build/lib/types/HAPStatusNodeType.js +15 -1
- package/build/lib/types/HostType.js +28 -7
- package/build/lib/types/NodeType.js +15 -1
- package/build/lib/types/PublishTimersType.js +15 -1
- package/build/lib/types/UniFiControllerConfigType.js +16 -0
- package/build/lib/types/hap-nodejs/HapAdaptiveLightingControllerMode.js +28 -7
- package/build/lib/types/hap-nodejs/HapCategories.js +64 -43
- package/build/lib/types/storage/SerializedHostType.js +15 -1
- package/build/lib/types/storage/StorageType.js +34 -10
- package/build/lib/unifi/ProtectDiscovery.js +80 -0
- package/build/lib/utils/AccessoryUtils.js +152 -110
- package/build/lib/utils/BridgeUtils.js +82 -39
- package/build/lib/utils/CharacteristicUtils.js +5 -49
- package/build/lib/utils/CharacteristicUtils2.js +5 -49
- package/build/lib/utils/CharacteristicUtilsBase.js +81 -0
- package/build/lib/utils/NodeStatusUtils.js +89 -40
- package/build/lib/utils/ServiceUtils.js +434 -373
- package/build/lib/utils/ServiceUtils2.js +514 -307
- package/build/lib/utils/index.js +10 -11
- package/build/nodes/bridge.html +184 -166
- package/build/nodes/bridge.js +27 -9
- package/build/nodes/locales/en-US/node-red-contrib-homekit-bridged.json +22 -0
- package/build/nodes/nrchkb.html +1601 -88
- package/build/nodes/nrchkb.js +66 -88
- package/build/nodes/plugin-instance.html +499 -0
- package/build/nodes/plugin-instance.js +46 -0
- package/build/nodes/service.html +517 -299
- package/build/nodes/service.js +5 -6
- package/build/nodes/service2.html +1683 -460
- package/build/nodes/service2.js +5 -8
- package/build/nodes/standalone.html +187 -174
- package/build/nodes/standalone.js +27 -9
- package/build/nodes/status.html +51 -18
- package/build/nodes/status.js +47 -40
- package/build/nodes/unifi-controller.html +92 -0
- package/build/nodes/unifi-controller.js +20 -0
- package/build/plugins/embedded/homebridge-camera-ffmpeg/index.js +479 -0
- package/build/plugins/embedded/homebridge-unifi-protect/index.js +521 -0
- package/build/plugins/embedded/index.js +58 -0
- package/build/plugins/nrchkb-homekit-plugins.js +17 -0
- package/build/plugins/registry/index.js +203 -0
- package/build/plugins/registry/types.js +16 -0
- package/build/scripts/migrate-homekit-service-flows.js +47 -0
- package/examples/demo/01 - ALL Demos single import.json +1885 -1885
- package/examples/demo/02 - Air Purifier.json +279 -279
- package/examples/demo/03 - Air Quality sensor with Battery.json +254 -254
- package/examples/demo/04 - Dimmable Bulb.json +172 -172
- package/examples/demo/05 - Color Bulb (HSV).json +195 -195
- package/examples/demo/06 - Fan (simple, 3 speeds).json +240 -240
- package/examples/demo/07 - Fan (with speed, oscillate, rotation direction).json +175 -175
- package/examples/demo/08 - CO2 detector.json +224 -224
- package/examples/demo/09 - CO (carbon monoxide) example.json +255 -255
- package/examples/demo/10 - Door window contact sensor.json +234 -234
- package/examples/demos (advanced)/01 - Television with inputs and speaker.json +541 -541
- package/examples/switch/01 - Plain Switch.json +178 -178
- package/package.json +95 -84
- package/build/lib/HAPHostNode.d.ts +0 -1
- package/build/lib/HAPServiceNode.d.ts +0 -1
- package/build/lib/HAPServiceNode2.d.ts +0 -1
- package/build/lib/NRCHKBError.d.ts +0 -3
- package/build/lib/Storage.d.ts +0 -30
- package/build/lib/api.d.ts +0 -1
- package/build/lib/hap/HAPCharacteristic.d.ts +0 -9
- package/build/lib/hap/HAPService.d.ts +0 -6
- package/build/lib/hap/eve-app/EveCharacteristics.d.ts +0 -20
- package/build/lib/hap/eve-app/EveServices.d.ts +0 -5
- package/build/lib/types/AccessoryInformationType.d.ts +0 -11
- package/build/lib/types/CameraConfigType.d.ts +0 -24
- package/build/lib/types/CustomCharacteristicType.d.ts +0 -6
- package/build/lib/types/HAPHostConfigType.d.ts +0 -22
- package/build/lib/types/HAPHostNodeType.d.ts +0 -14
- package/build/lib/types/HAPService2ConfigType.d.ts +0 -6
- package/build/lib/types/HAPService2NodeType.d.ts +0 -7
- package/build/lib/types/HAPServiceConfigType.d.ts +0 -26
- package/build/lib/types/HAPServiceNodeType.d.ts +0 -38
- package/build/lib/types/HAPStatusConfigType.d.ts +0 -5
- package/build/lib/types/HAPStatusNodeType.d.ts +0 -12
- package/build/lib/types/HostType.d.ts +0 -5
- package/build/lib/types/NodeType.d.ts +0 -3
- package/build/lib/types/PublishTimersType.d.ts +0 -4
- package/build/lib/types/hap-nodejs/HapAdaptiveLightingControllerMode.d.ts +0 -5
- package/build/lib/types/hap-nodejs/HapCategories.d.ts +0 -41
- package/build/lib/types/storage/SerializedHostType.d.ts +0 -5
- package/build/lib/types/storage/StorageType.d.ts +0 -8
- package/build/lib/utils/AccessoryUtils.d.ts +0 -1
- package/build/lib/utils/BridgeUtils.d.ts +0 -1
- package/build/lib/utils/CharacteristicUtils.d.ts +0 -1
- package/build/lib/utils/CharacteristicUtils2.d.ts +0 -1
- package/build/lib/utils/NodeStatusUtils.d.ts +0 -17
- package/build/lib/utils/ServiceUtils.d.ts +0 -1
- package/build/lib/utils/ServiceUtils2.d.ts +0 -1
- package/build/lib/utils/index.d.ts +0 -1
- package/build/nodes/bridge.d.ts +0 -1
- package/build/nodes/nrchkb.d.ts +0 -1
- package/build/nodes/service.d.ts +0 -1
- package/build/nodes/service2.d.ts +0 -1
- package/build/nodes/standalone.d.ts +0 -1
- package/build/nodes/status.d.ts +0 -1
|
@@ -1,227 +1,227 @@
|
|
|
1
1
|
[
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
{
|
|
3
|
+
"id": "ab48426e.25466",
|
|
4
|
+
"type": "group",
|
|
5
|
+
"z": "60b06629.a2ebd",
|
|
6
|
+
"name": "CO2 Sensor: input only sensor",
|
|
7
|
+
"style": {
|
|
8
|
+
"stroke": "#999999",
|
|
9
|
+
"fill": "none",
|
|
10
|
+
"label": true,
|
|
11
|
+
"label-position": "nw",
|
|
12
|
+
"color": "#a4a4a4"
|
|
13
|
+
},
|
|
14
|
+
"nodes": [
|
|
15
|
+
"88892b4.8a61bd8",
|
|
16
|
+
"3611c654.8a42f2",
|
|
17
|
+
"62cafcb0.8ade9c",
|
|
18
|
+
"a0171cdb.f209b",
|
|
19
|
+
"6f7de764.a6a688",
|
|
20
|
+
"8758b463.afb0f",
|
|
21
|
+
"69e8161b.74b7a",
|
|
22
|
+
"40010b09.c73cdc"
|
|
23
|
+
],
|
|
24
|
+
"x": 14,
|
|
25
|
+
"y": 839,
|
|
26
|
+
"w": 752,
|
|
27
|
+
"h": 202,
|
|
28
|
+
"info": "# CO2 Sensor\n\nThere are three inputs to this example, one for each level of Carbon Dioxide in the air. Options are:\n\n**0 ppm:** this will assume no CO2 <br/>\n**Safe level:** this will assume a level between 1 and 999 ppm, inclusive <br/>\n**Dangerous level:** this will assume a level between 1,000 and 100,000, inclusive; this will also trigger an alert"
|
|
13
29
|
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
192
|
-
"
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
"pinCode": "153-10-538",
|
|
212
|
-
"port": "",
|
|
213
|
-
"allowInsecureRequest": false,
|
|
214
|
-
"manufacturer": "NRCHKB",
|
|
215
|
-
"model": "Demo",
|
|
216
|
-
"serialNo": "1.1.2",
|
|
217
|
-
"customMdnsConfig": false,
|
|
218
|
-
"mdnsMulticast": true,
|
|
219
|
-
"mdnsInterface": "",
|
|
220
|
-
"mdnsPort": "",
|
|
221
|
-
"mdnsIp": "",
|
|
222
|
-
"mdnsTtl": "",
|
|
223
|
-
"mdnsLoopback": true,
|
|
224
|
-
"mdnsReuseAddr": true,
|
|
225
|
-
"allowMessagePassthrough": true
|
|
226
|
-
}
|
|
30
|
+
{
|
|
31
|
+
"id": "88892b4.8a61bd8",
|
|
32
|
+
"type": "homekit-service",
|
|
33
|
+
"z": "60b06629.a2ebd",
|
|
34
|
+
"g": "ab48426e.25466",
|
|
35
|
+
"isParent": true,
|
|
36
|
+
"bridge": "409001a1.3e7a78",
|
|
37
|
+
"parentService": "",
|
|
38
|
+
"name": "CO2 Sensor",
|
|
39
|
+
"serviceName": "CarbonDioxideSensor",
|
|
40
|
+
"topic": "",
|
|
41
|
+
"filter": false,
|
|
42
|
+
"manufacturer": "Default Manufacturer",
|
|
43
|
+
"model": "Carbon",
|
|
44
|
+
"serialNo": "Default Serial Number",
|
|
45
|
+
"firmwareRev": "22",
|
|
46
|
+
"hardwareRev": "11",
|
|
47
|
+
"cameraConfigVideoProcessor": "",
|
|
48
|
+
"cameraConfigSource": "",
|
|
49
|
+
"cameraConfigStillImageSource": "",
|
|
50
|
+
"cameraConfigMaxStreams": "",
|
|
51
|
+
"cameraConfigMaxWidth": "",
|
|
52
|
+
"cameraConfigMaxHeight": "",
|
|
53
|
+
"cameraConfigMaxFPS": "",
|
|
54
|
+
"cameraConfigMaxBitrate": "",
|
|
55
|
+
"cameraConfigVideoCodec": "",
|
|
56
|
+
"cameraConfigAudioCodec": "",
|
|
57
|
+
"cameraConfigAudio": false,
|
|
58
|
+
"cameraConfigPacketSize": "",
|
|
59
|
+
"cameraConfigVerticalFlip": false,
|
|
60
|
+
"cameraConfigHorizontalFlip": false,
|
|
61
|
+
"cameraConfigMapVideo": "",
|
|
62
|
+
"cameraConfigMapAudio": "",
|
|
63
|
+
"cameraConfigVideoFilter": "",
|
|
64
|
+
"cameraConfigAdditionalCommandLine": "",
|
|
65
|
+
"cameraConfigDebug": false,
|
|
66
|
+
"cameraConfigSnapshotOutput": "disabled",
|
|
67
|
+
"cameraConfigInterfaceName": "",
|
|
68
|
+
"characteristicProperties": "{\n \"CarbonDioxideLevel\" : true,\n \"CarbonDioxidePeakLevel\": true,\n \"StatusActive\" : true\n}",
|
|
69
|
+
"outputs": 2,
|
|
70
|
+
"x": 670,
|
|
71
|
+
"y": 880,
|
|
72
|
+
"wires": [[], []]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "3611c654.8a42f2",
|
|
76
|
+
"type": "function",
|
|
77
|
+
"z": "60b06629.a2ebd",
|
|
78
|
+
"g": "ab48426e.25466",
|
|
79
|
+
"name": "Random values, peak value",
|
|
80
|
+
"func": "// Reset all values to 0 if 0ppm input\nif(msg.payload === 0){\n context.set('lastPeak',0);\n newMsg = {\n payload: {\n \"CarbonDioxideLevel\":0,\n \"CarbonDioxidePeakLevel\":0,\n \"CarbonDioxideDetected\":0\n }\n };\n return newMsg;\n}\n\n// Initialize vars\nvar CurrentLevel = 0;\nvar lastPeak = context.get('lastPeak');\n\n// Set random safe or dangerous levels\nif(msg.payload === \"Safe\"){\n CurrentLevel = Math.floor(Math.random() * (999 - 1 + 1) + 1);\n}\nif(msg.payload === \"Danger\"){\n CurrentLevel = Math.floor(Math.random() * (100000 - 1000 + 1) + 1000);\n}\n\n// Formulate output message\nvar newMsg = {\n payload: {\n \"CarbonDioxideLevel\" : CurrentLevel,\n \"CarbonDioxideDetected\" : 0\n }\n};\n\n// Set new peak level\nif(CurrentLevel > lastPeak){\n lastPeak = CurrentLevel;\n context.set('lastPeak',CurrentLevel);\n newMsg.payload.CarbonDioxidePeakLevel = CurrentLevel;\n}\n\n// Set warning if dangerous\nif (CurrentLevel >= 1000) {\n newMsg.payload.CarbonDioxideDetected = 1;\n} \n\nreturn newMsg;",
|
|
81
|
+
"outputs": 1,
|
|
82
|
+
"noerr": 0,
|
|
83
|
+
"initialize": "// Code added here will be run once\n// whenever the node is deployed.\ncontext.set('lastPeak',0);\n",
|
|
84
|
+
"finalize": "",
|
|
85
|
+
"x": 400,
|
|
86
|
+
"y": 880,
|
|
87
|
+
"wires": [["88892b4.8a61bd8"]]
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"id": "62cafcb0.8ade9c",
|
|
91
|
+
"type": "inject",
|
|
92
|
+
"z": "60b06629.a2ebd",
|
|
93
|
+
"g": "ab48426e.25466",
|
|
94
|
+
"name": "Active",
|
|
95
|
+
"repeat": "",
|
|
96
|
+
"crontab": "",
|
|
97
|
+
"once": false,
|
|
98
|
+
"onceDelay": 0.1,
|
|
99
|
+
"topic": "",
|
|
100
|
+
"payload": "{\"StatusActive\":true}",
|
|
101
|
+
"payloadType": "json",
|
|
102
|
+
"x": 470,
|
|
103
|
+
"y": 920,
|
|
104
|
+
"wires": [["88892b4.8a61bd8"]]
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"id": "a0171cdb.f209b",
|
|
108
|
+
"type": "inject",
|
|
109
|
+
"z": "60b06629.a2ebd",
|
|
110
|
+
"g": "ab48426e.25466",
|
|
111
|
+
"name": "Inactive",
|
|
112
|
+
"repeat": "",
|
|
113
|
+
"crontab": "",
|
|
114
|
+
"once": false,
|
|
115
|
+
"onceDelay": 0.1,
|
|
116
|
+
"topic": "",
|
|
117
|
+
"payload": "{\"StatusActive\":false}",
|
|
118
|
+
"payloadType": "json",
|
|
119
|
+
"x": 470,
|
|
120
|
+
"y": 960,
|
|
121
|
+
"wires": [["88892b4.8a61bd8"]]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"id": "6f7de764.a6a688",
|
|
125
|
+
"type": "inject",
|
|
126
|
+
"z": "60b06629.a2ebd",
|
|
127
|
+
"g": "ab48426e.25466",
|
|
128
|
+
"name": "NO RESPONSE",
|
|
129
|
+
"repeat": "",
|
|
130
|
+
"crontab": "",
|
|
131
|
+
"once": false,
|
|
132
|
+
"onceDelay": 0.1,
|
|
133
|
+
"topic": "",
|
|
134
|
+
"payload": "{\"CarbonDioxideLevel\":\"NO_RESPONSE\"}",
|
|
135
|
+
"payloadType": "json",
|
|
136
|
+
"x": 440,
|
|
137
|
+
"y": 1000,
|
|
138
|
+
"wires": [["88892b4.8a61bd8"]]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"id": "8758b463.afb0f",
|
|
142
|
+
"type": "inject",
|
|
143
|
+
"z": "60b06629.a2ebd",
|
|
144
|
+
"g": "ab48426e.25466",
|
|
145
|
+
"name": "0 ppm",
|
|
146
|
+
"props": [
|
|
147
|
+
{
|
|
148
|
+
"p": "payload"
|
|
149
|
+
}
|
|
150
|
+
],
|
|
151
|
+
"repeat": "",
|
|
152
|
+
"crontab": "",
|
|
153
|
+
"once": false,
|
|
154
|
+
"onceDelay": 0.1,
|
|
155
|
+
"topic": "",
|
|
156
|
+
"payload": "0",
|
|
157
|
+
"payloadType": "num",
|
|
158
|
+
"x": 110,
|
|
159
|
+
"y": 880,
|
|
160
|
+
"wires": [["3611c654.8a42f2"]]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"id": "69e8161b.74b7a",
|
|
164
|
+
"type": "inject",
|
|
165
|
+
"z": "60b06629.a2ebd",
|
|
166
|
+
"g": "ab48426e.25466",
|
|
167
|
+
"name": "Safe Level",
|
|
168
|
+
"props": [
|
|
169
|
+
{
|
|
170
|
+
"p": "payload"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"repeat": "",
|
|
174
|
+
"crontab": "",
|
|
175
|
+
"once": false,
|
|
176
|
+
"onceDelay": 0.1,
|
|
177
|
+
"topic": "",
|
|
178
|
+
"payload": "Safe",
|
|
179
|
+
"payloadType": "str",
|
|
180
|
+
"x": 120,
|
|
181
|
+
"y": 920,
|
|
182
|
+
"wires": [["3611c654.8a42f2"]]
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"id": "40010b09.c73cdc",
|
|
186
|
+
"type": "inject",
|
|
187
|
+
"z": "60b06629.a2ebd",
|
|
188
|
+
"g": "ab48426e.25466",
|
|
189
|
+
"name": "Dangerous level",
|
|
190
|
+
"props": [
|
|
191
|
+
{
|
|
192
|
+
"p": "payload"
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
"repeat": "",
|
|
196
|
+
"crontab": "",
|
|
197
|
+
"once": false,
|
|
198
|
+
"onceDelay": 0.1,
|
|
199
|
+
"topic": "",
|
|
200
|
+
"payload": "Danger",
|
|
201
|
+
"payloadType": "str",
|
|
202
|
+
"x": 140,
|
|
203
|
+
"y": 960,
|
|
204
|
+
"wires": [["3611c654.8a42f2"]]
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"id": "409001a1.3e7a78",
|
|
208
|
+
"type": "homekit-bridge",
|
|
209
|
+
"z": "",
|
|
210
|
+
"bridgeName": "Demo 1",
|
|
211
|
+
"pinCode": "153-10-538",
|
|
212
|
+
"port": "",
|
|
213
|
+
"allowInsecureRequest": false,
|
|
214
|
+
"manufacturer": "NRCHKB",
|
|
215
|
+
"model": "Demo",
|
|
216
|
+
"serialNo": "1.1.2",
|
|
217
|
+
"customMdnsConfig": false,
|
|
218
|
+
"mdnsMulticast": true,
|
|
219
|
+
"mdnsInterface": "",
|
|
220
|
+
"mdnsPort": "",
|
|
221
|
+
"mdnsIp": "",
|
|
222
|
+
"mdnsTtl": "",
|
|
223
|
+
"mdnsLoopback": true,
|
|
224
|
+
"mdnsReuseAddr": true,
|
|
225
|
+
"allowMessagePassthrough": true
|
|
226
|
+
}
|
|
227
227
|
]
|