-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
config.schema.json
814 lines (814 loc) · 35.9 KB
/
config.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
{
"pluginAlias": "Wemo",
"pluginType": "platform",
"customUi": true,
"customUiPath": "./lib/homebridge-ui",
"headerDisplay": "<p align=\"center\"><img width=\"60%\" src=\"https://user-images.githubusercontent.com/43026681/126868557-d0983348-d124-4247-bea9-7dcc62849cdf.png\"></p><p align=\"center\">For help and support please visit our <a href=\"https://github.com/homebridge-plugins/homebridge-wemo/wiki\">GitHub Wiki</a>. We hope you find this plugin useful!</p>",
"singular": true,
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Plugin Name",
"type": "string",
"default": "Wemo"
},
"mode": {
"type": "string",
"title": "Device Detection",
"default": "auto",
"oneOf": [
{
"title": "Auto (Discover All & Manual IP Devices)",
"enum": ["auto"]
},
{
"title": "Semi (Discover Configured & Manual IP Devices)",
"enum": ["semi"]
},
{
"title": "Manual (Discovery Only Manual IP Devices)",
"enum": ["manual"]
}
]
},
"hideConnectionErrors": {
"title": "Hide Connection Errors",
"type": "boolean"
},
"discoveryInterval": {
"type": "integer",
"title": "Discovery Interval",
"description": "An interval (in seconds) in which the plugin will broadcast on your network to initally find devices and repair connection errors. Must be 15 or more.",
"placeholder": 30,
"minimum": 15
},
"wemoClient": {
"title": "Discovery Settings",
"type": "object",
"properties": {
"callback_url": {
"type": "string",
"title": "UPNP Callback IP/Port",
"placeholder": "192.168.1.13:2021",
"description": "Override the callback IP and port that is used for UPNP subscriptions."
},
"listen_interface": {
"type": "string",
"title": "UPNP Interface",
"description": "This can be used to specify which network interface to listen on. If blank then by default the server will listen on all interfaces, however, Wemo subscription messages will only be sent to the first non-internal IPv4 address returned by os.networkInterfaces() after being sorted by compatible network which may or may not be what you want."
},
"port": {
"type": "integer",
"title": "UPNP Port",
"description": "This can be used to specify a port to bind to for listening to UPnP events. If blank or 0 then the plugin will listen on any available randomly selected port.",
"placeholder": 0
},
"discover_opts": {
"type": "object",
"properties": {
"interfaces": {
"type": "string",
"title": "Discovery Interfaces",
"description": "A comma separated list of interfaces to explicitly bind to. If blank then bind to all available interfaces."
},
"explicitSocketBind": {
"type": "boolean",
"title": "Discovery Explicit Socket Bind",
"description": "Bind sockets to each discovered interface explicitly instead of relying on the system. Might help with issues with multiple NICs."
}
}
}
}
},
"pollingInterval": {
"type": "integer",
"title": "HTTP Polling Interval",
"description": "An interval (in seconds) in which the plugin will request status updates for devices that don't support UPnP or have it manually disabled. Must be 15 or more.",
"placeholder": 30,
"minimum": 15
},
"upnpInterval": {
"type": "integer",
"title": "UPnP Subscription Interval",
"description": "An interval (in seconds) in which the plugin will resubscribe to UPnP notifications. Must be 60 or more.",
"placeholder": 300,
"minimum": 60
},
"disableUPNP": {
"type": "boolean",
"title": "Disable UPnP",
"description": "Global disable option for UPnP. HTTP polling will be used instead. This can also be overridden per accessory later in the config."
},
"disableDeviceLogging": {
"type": "boolean",
"title": "Disable Device Logging",
"description": "Global logging setting for accessory status changes. If true then accessory status changes will not be logged. This can also be set per accessory later in the config."
},
"removeByName": {
"title": "Remove By Name",
"type": "string"
},
"makerTypes": {
"title": "Wemo Makers",
"description": "Optional settings for Wemo Makers.",
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"title": "Label",
"type": "string",
"description": "This setting has no effect except to help identify this device."
},
"serialNumber": {
"type": "string",
"title": "Serial Number"
},
"ignoreDevice": {
"type": "boolean",
"title": "Hide From HomeKit",
"description": "If true, this accessory will be removed and ignored from HomeKit.",
"condition": {
"functionBody": "return (model.makerTypes && model.makerTypes[arrayIndices] && model.makerTypes[arrayIndices].serialNumber && model.makerTypes[arrayIndices].serialNumber.length > 0);"
}
},
"makerType": {
"type": "string",
"title": "Show As",
"oneOf": [
{
"title": "Garage Door",
"enum": ["garageDoor"]
},
{
"title": "Switch (with contact sensor if exists)",
"enum": ["switch"]
}
],
"condition": {
"functionBody": "return (model.makerTypes && model.makerTypes[arrayIndices] && model.makerTypes[arrayIndices].serialNumber && model.makerTypes[arrayIndices].serialNumber.length > 0 && !model.makerTypes[arrayIndices].ignoreDevice);"
}
},
"makerTimer": {
"type": "integer",
"title": "Open/Close Time",
"description": "The time in seconds for how long it takes the garage door to open/close. Must be 1 or more.",
"placeholder": 20,
"minimum": 1,
"condition": {
"functionBody": "return (model.makerTypes && model.makerTypes[arrayIndices] && model.makerTypes[arrayIndices].makerType === 'garageDoor' && !model.makerTypes[arrayIndices].ignoreDevice);"
}
},
"reversePolarity": {
"type": "boolean",
"title": "Reverse Polarity",
"description": "If true, the plugin will reverse the 'Open' and 'Closed' HomeKit states.",
"condition": {
"functionBody": "return (model.makerTypes && model.makerTypes[arrayIndices] && model.makerTypes[arrayIndices].makerType === 'switch' && !model.makerTypes[arrayIndices].ignoreDevice);"
}
},
"manualIP": {
"type": "string",
"title": "Manual IP/URL",
"placeholder": "192.168.1.20",
"description": "If the plugin cannot discover this device you can specify its IP and the plugin will try to determine the correct port. You can also specify a full address to specify both the IP and the port, e.g. http://192.168.1.1:49153/setup.xml.",
"condition": {
"functionBody": "return (model.makerTypes && model.makerTypes[arrayIndices] && model.makerTypes[arrayIndices].serialNumber && model.makerTypes[arrayIndices].serialNumber.length > 0 && !model.makerTypes[arrayIndices].ignoreDevice);"
}
},
"listenerType": {
"type": "string",
"title": "Listener Type",
"oneOf": [
{
"title": "UPnP (Default)",
"enum": ["default"]
},
{
"title": "HTTP Polling",
"enum": ["http"]
}
],
"description": "UPnP allows for real-time notifications when your device is controlled, but can be problematic if your device is on a different IP network/VLAN to Homebridge. In this case you should use HTTP polling.",
"condition": {
"functionBody": "return (model.makerTypes && model.makerTypes[arrayIndices] && model.makerTypes[arrayIndices].serialNumber && model.makerTypes[arrayIndices].serialNumber.length > 0 && !model.makerTypes[arrayIndices].ignoreDevice);"
}
}
}
}
},
"wemoInsights": {
"title": "Wemo Insights",
"description": "Optional settings for Wemo Insights.",
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"title": "Label",
"type": "string",
"description": "This setting has no effect except to help identify this device."
},
"serialNumber": {
"type": "string",
"title": "Serial Number"
},
"ignoreDevice": {
"type": "boolean",
"title": "Hide From HomeKit",
"description": "If true, this accessory will be removed and ignored from HomeKit.",
"condition": {
"functionBody": "return (model.wemoInsights && model.wemoInsights[arrayIndices] && model.wemoInsights[arrayIndices].serialNumber && model.wemoInsights[arrayIndices].serialNumber.length > 0);"
}
},
"showTodayTC": {
"type": "boolean",
"title": "Show Today's Consumption",
"description": "If true, today's consumption will show in the Eve app's Total Consumption field instead of the cumulative value.",
"condition": {
"functionBody": "return (model.wemoInsights && model.wemoInsights[arrayIndices] && model.wemoInsights[arrayIndices].serialNumber && model.wemoInsights[arrayIndices].serialNumber.length > 0 && !model.wemoInsights[arrayIndices].ignoreDevice);"
}
},
"wattDiff": {
"type": "integer",
"title": "Limit Wattage Logging (by wattage)",
"description": "The plugin will not log device wattage if the difference from the previous value is less than this number. Must be 1 or more.",
"placeholder": 1,
"minimum": 1,
"condition": {
"functionBody": "return (model.wemoInsights && model.wemoInsights[arrayIndices] && model.wemoInsights[arrayIndices].serialNumber && model.wemoInsights[arrayIndices].serialNumber.length > 0 && !model.wemoInsights[arrayIndices].ignoreDevice);"
}
},
"timeDiff": {
"type": "integer",
"title": "Limit Wattage Logging (by time)",
"description": "The plugin will not log device wattage if the time difference (in seconds) from the previous value is less than this number. Must be 1 or more.",
"placeholder": 1,
"minimum": 1,
"condition": {
"functionBody": "return (model.wemoInsights && model.wemoInsights[arrayIndices] && model.wemoInsights[arrayIndices].serialNumber && model.wemoInsights[arrayIndices].serialNumber.length > 0 && !model.wemoInsights[arrayIndices].ignoreDevice);"
}
},
"showAs": {
"type": "string",
"title": "Show As",
"oneOf": [
{
"title": "Outlet (Default)",
"enum": ["default"]
},
{
"title": "Switch",
"enum": ["switch"]
},
{
"title": "Air Purifier",
"enum": ["purifier"]
}
],
"condition": {
"functionBody": "return (model.wemoInsights && model.wemoInsights[arrayIndices] && model.wemoInsights[arrayIndices].serialNumber && model.wemoInsights[arrayIndices].serialNumber.length > 0 && !model.wemoInsights[arrayIndices].ignoreDevice);"
}
},
"outletInUseTrue": {
"type": "boolean",
"title": "Outlet In Use - Force True",
"description": "When enabled, the plugin will always report the outlet as in use.",
"condition": {
"functionBody": "return (model.wemoInsights && model.wemoInsights[arrayIndices] && model.wemoInsights[arrayIndices].serialNumber && model.wemoInsights[arrayIndices].serialNumber.length > 0 && !model.wemoInsights[arrayIndices].ignoreDevice) && (!model.wemoInsights[arrayIndices].showAs || (model.wemoInsights[arrayIndices].showAs && !['switch','purifier'].includes(model.wemoInsights[arrayIndices].showAs)));"
}
},
"manualIP": {
"type": "string",
"title": "Manual IP/URL",
"placeholder": "192.168.1.20",
"description": "If the plugin cannot discover this device you can specify its IP and the plugin will try to determine the correct port. You can also specify a full address to specify both the IP and the port, e.g. http://192.168.1.1:49153/setup.xml.",
"condition": {
"functionBody": "return (model.wemoInsights && model.wemoInsights[arrayIndices] && model.wemoInsights[arrayIndices].serialNumber && model.wemoInsights[arrayIndices].serialNumber.length > 0 && !model.wemoInsights[arrayIndices].ignoreDevice);"
}
},
"listenerType": {
"type": "string",
"title": "Listener Type",
"oneOf": [
{
"title": "UPnP (Default)",
"enum": ["default"]
},
{
"title": "HTTP Polling",
"enum": ["http"]
}
],
"description": "UPnP allows for real-time notifications when your device is controlled, but can be problematic if your device is on a different IP network/VLAN to Homebridge. In this case you should use HTTP polling.",
"condition": {
"functionBody": "return (model.wemoInsights && model.wemoInsights[arrayIndices] && model.wemoInsights[arrayIndices].serialNumber && model.wemoInsights[arrayIndices].serialNumber.length > 0 && !model.wemoInsights[arrayIndices].ignoreDevice);"
}
}
}
}
},
"wemoLights": {
"title": "Wemo Lights",
"description": "Optional settings for Wemo Light Switches, Dimmers and Bulbs.",
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"title": "Label",
"type": "string",
"description": "This setting has no effect except to help identify this device."
},
"serialNumber": {
"type": "string",
"title": "Serial Number",
"description": "In the case of a Wemo Bulb (via Link) please use the device ID of the bulb, not the serial number of the Link."
},
"ignoreDevice": {
"type": "boolean",
"title": "Hide From HomeKit",
"description": "If true, this accessory will be removed and ignored from HomeKit.",
"condition": {
"functionBody": "return (model.wemoLights && model.wemoLights[arrayIndices] && model.wemoLights[arrayIndices].serialNumber && model.wemoLights[arrayIndices].serialNumber.length > 0);"
}
},
"brightnessStep": {
"title": "Brightness Step",
"type": "integer",
"description": "A minimum step for the brightness slider in the Home app. Must be 1 or more.",
"placeholder": 1,
"minimum": 1,
"condition": {
"functionBody": "return (model.wemoLights && model.wemoLights[arrayIndices] && model.wemoLights[arrayIndices].serialNumber && model.wemoLights[arrayIndices].serialNumber.length > 0 && !model.wemoLights[arrayIndices].ignoreDevice);"
}
},
"enableColourControl": {
"title": "Enable Colour Control",
"type": "boolean",
"description": "If true, colour control (separate from colour temperature control) will be enabled if the bulb supports it.",
"condition": {
"functionBody": "return (model.wemoLights && model.wemoLights[arrayIndices] && model.wemoLights[arrayIndices].serialNumber && model.wemoLights[arrayIndices].serialNumber.length > 0 && !model.wemoLights[arrayIndices].ignoreDevice);"
}
},
"adaptiveLightingShift": {
"title": "Adaptive Lighting Shift",
"type": "integer",
"description": "The mired for each Adaptive Lighting update will be increased by this value, making the light appear warmer. Set to -1 to remove Adaptive Lighting feature. Must be -1 or more.",
"placeholder": 0,
"minimum": -1,
"condition": {
"functionBody": "return (model.wemoLights && model.wemoLights[arrayIndices] && model.wemoLights[arrayIndices].serialNumber && model.wemoLights[arrayIndices].serialNumber.length > 0 && !model.wemoLights[arrayIndices].ignoreDevice);"
}
},
"transitionTime": {
"title": "Transition Time",
"type": "integer",
"description": "Transition time (in seconds?) for brightness and colour temperature changes. Applies to Wemo Bulb (not Dimmer). Must be 0 or more.",
"placeholder": 0,
"minimum": 0,
"condition": {
"functionBody": "return (model.wemoLights && model.wemoLights[arrayIndices] && model.wemoLights[arrayIndices].serialNumber && model.wemoLights[arrayIndices].serialNumber.length > 0 && !model.wemoLights[arrayIndices].ignoreDevice);"
}
},
"manualIP": {
"type": "string",
"title": "Manual IP/URL",
"placeholder": "192.168.1.20",
"description": "If the plugin cannot discover this device you can specify its IP and the plugin will try to determine the correct port. You can also specify a full address to specify both the IP and the port, e.g. http://192.168.1.1:49153/setup.xml.",
"condition": {
"functionBody": "return (model.wemoLights && model.wemoLights[arrayIndices] && model.wemoLights[arrayIndices].serialNumber && model.wemoLights[arrayIndices].serialNumber.length > 0 && !model.wemoLights[arrayIndices].ignoreDevice);"
}
},
"listenerType": {
"type": "string",
"title": "Listener Type",
"oneOf": [
{
"title": "UPnP (Default)",
"enum": ["default"]
},
{
"title": "HTTP Polling",
"enum": ["http"]
}
],
"description": "UPnP allows for real-time notifications when your device is controlled, but can be problematic if your device is on a different IP network/VLAN to Homebridge. In this case you should use HTTP polling.",
"condition": {
"functionBody": "return (model.wemoLights && model.wemoLights[arrayIndices] && model.wemoLights[arrayIndices].serialNumber && model.wemoLights[arrayIndices].serialNumber.length > 0 && !model.wemoLights[arrayIndices].ignoreDevice);"
}
}
}
}
},
"wemoLinks": {
"title": "Wemo Links",
"description": "Optional settings for Wemo Link hubs.",
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"title": "Label",
"type": "string",
"description": "This setting has no effect except to help identify this device."
},
"serialNumber": {
"type": "string",
"title": "Serial Number"
},
"ignoreDevice": {
"type": "boolean",
"title": "Hide From HomeKit",
"description": "If true, this Link's subaccessories will be removed and ignored from HomeKit.",
"condition": {
"functionBody": "return (model.wemoLinks && model.wemoLinks[arrayIndices] && model.wemoLinks[arrayIndices].serialNumber && model.wemoLinks[arrayIndices].serialNumber.length > 0);"
}
},
"manualIP": {
"type": "string",
"title": "Manual IP/URL",
"placeholder": "192.168.1.20",
"description": "If the plugin cannot discover this device you can specify its IP and the plugin will try to determine the correct port. You can also specify a full address to specify both the IP and the port, e.g. http://192.168.1.1:49153/setup.xml.",
"condition": {
"functionBody": "return (model.wemoLinks && model.wemoLinks[arrayIndices] && model.wemoLinks[arrayIndices].serialNumber && model.wemoLinks[arrayIndices].serialNumber.length > 0 && !model.wemoLinks[arrayIndices].ignoreDevice);"
}
},
"listenerType": {
"type": "string",
"title": "Listener Type",
"oneOf": [
{
"title": "UPnP (Default)",
"enum": ["default"]
},
{
"title": "HTTP Polling",
"enum": ["http"]
}
],
"description": "UPnP allows for real-time notifications when your device is controlled, but can be problematic if your device is on a different IP network/VLAN to Homebridge. In this case you should use HTTP polling.",
"condition": {
"functionBody": "return (model.wemoLinks && model.wemoLinks[arrayIndices] && model.wemoLinks[arrayIndices].serialNumber && model.wemoLinks[arrayIndices].serialNumber.length > 0 && !model.wemoLinks[arrayIndices].ignoreDevice);"
}
}
}
}
},
"wemoMotions": {
"title": "Wemo Motions",
"description": "Optional settings for Wemo Motions.",
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"title": "Label",
"type": "string",
"description": "This setting has no effect except to help identify this device."
},
"serialNumber": {
"type": "string",
"title": "Serial Number"
},
"ignoreDevice": {
"type": "boolean",
"title": "Hide From HomeKit",
"description": "If true, this accessory will be removed and ignored from HomeKit.",
"condition": {
"functionBody": "return (model.wemoMotions && model.wemoMotions[arrayIndices] && model.wemoMotions[arrayIndices].serialNumber && model.wemoMotions[arrayIndices].serialNumber.length > 0);"
}
},
"noMotionTimer": {
"type": "integer",
"title": "No Motion Timer",
"description": "A timer (in seconds) for how long after motion is not detected that the state is changed.",
"placeholder": 60,
"minimum": 0,
"condition": {
"functionBody": "return (model.wemoMotions && model.wemoMotions[arrayIndices] && model.wemoMotions[arrayIndices].serialNumber && model.wemoMotions[arrayIndices].serialNumber.length > 0 && !model.wemoMotions[arrayIndices].ignoreDevice);"
}
},
"manualIP": {
"type": "string",
"title": "Manual IP/URL",
"placeholder": "192.168.1.20",
"description": "If the plugin cannot discover this device you can specify its IP and the plugin will try to determine the correct port. You can also specify a full address to specify both the IP and the port, e.g. http://192.168.1.1:49153/setup.xml.",
"condition": {
"functionBody": "return (model.wemoMotions && model.wemoMotions[arrayIndices] && model.wemoMotions[arrayIndices].serialNumber && model.wemoMotions[arrayIndices].serialNumber.length > 0 && !model.wemoMotions[arrayIndices].ignoreDevice);"
}
}
}
}
},
"wemoOutlets": {
"title": "Wemo Outlets",
"description": "Optional settings for Wemo WiFi Outlets and Outdoor Plugs.",
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"title": "Label",
"type": "string",
"description": "This setting has no effect except to help identify this device."
},
"serialNumber": {
"type": "string",
"title": "Serial Number"
},
"ignoreDevice": {
"type": "boolean",
"title": "Hide From HomeKit",
"description": "If true, this accessory will be removed and ignored from HomeKit.",
"condition": {
"functionBody": "return (model.wemoOutlets && model.wemoOutlets[arrayIndices] && model.wemoOutlets[arrayIndices].serialNumber && model.wemoOutlets[arrayIndices].serialNumber.length > 0);"
}
},
"showAs": {
"type": "string",
"title": "Show As",
"oneOf": [
{
"title": "Outlet (Default)",
"enum": ["default"]
},
{
"title": "Switch",
"enum": ["switch"]
},
{
"title": "Air Purifier",
"enum": ["purifier"]
}
],
"condition": {
"functionBody": "return (model.wemoOutlets && model.wemoOutlets[arrayIndices] && model.wemoOutlets[arrayIndices].serialNumber && model.wemoOutlets[arrayIndices].serialNumber.length > 0 && !model.wemoOutlets[arrayIndices].ignoreDevice);"
}
},
"manualIP": {
"type": "string",
"title": "Manual IP/URL",
"placeholder": "192.168.1.20",
"description": "If the plugin cannot discover this device you can specify its IP and the plugin will try to determine the correct port. You can also specify a full address to specify both the IP and the port, e.g. http://192.168.1.1:49153/setup.xml.",
"condition": {
"functionBody": "return (model.wemoOutlets && model.wemoOutlets[arrayIndices] && model.wemoOutlets[arrayIndices].serialNumber && model.wemoOutlets[arrayIndices].serialNumber.length > 0 && !model.wemoOutlets[arrayIndices].ignoreDevice);"
}
},
"listenerType": {
"type": "string",
"title": "Listener Type",
"oneOf": [
{
"title": "UPnP (Default)",
"enum": ["default"]
},
{
"title": "HTTP Polling",
"enum": ["http"]
}
],
"description": "UPnP allows for real-time notifications when your device is controlled, but can be problematic if your device is on a different IP network/VLAN to Homebridge. In this case you should use HTTP polling.",
"condition": {
"functionBody": "return (model.wemoOutlets && model.wemoOutlets[arrayIndices] && model.wemoOutlets[arrayIndices].serialNumber && model.wemoOutlets[arrayIndices].serialNumber.length > 0 && !model.wemoOutlets[arrayIndices].ignoreDevice);"
}
}
}
}
},
"wemoOthers": {
"title": "Wemo Others",
"description": "Optional settings for Wemo Heater, Dehumidifier, Air Purifier, Crockpot and Coffee Maker.",
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"title": "Label",
"type": "string",
"description": "This setting has no effect except to help identify this device."
},
"serialNumber": {
"type": "string",
"title": "Serial Number"
},
"ignoreDevice": {
"type": "boolean",
"title": "Hide From HomeKit",
"description": "If true, this accessory will be removed and ignored from HomeKit.",
"condition": {
"functionBody": "return (model.wemoOthers && model.wemoOthers[arrayIndices] && model.wemoOthers[arrayIndices].serialNumber && model.wemoOthers[arrayIndices].serialNumber.length > 0);"
}
},
"manualIP": {
"type": "string",
"title": "Manual IP/URL",
"placeholder": "192.168.1.20",
"description": "If the plugin cannot discover this device you can specify its IP and the plugin will try to determine the correct port. You can also specify a full address to specify both the IP and the port, e.g. http://192.168.1.1:49153/setup.xml.",
"condition": {
"functionBody": "return (model.wemoOthers && model.wemoOthers[arrayIndices] && model.wemoOthers[arrayIndices].serialNumber && model.wemoOthers[arrayIndices].serialNumber.length > 0 && !model.wemoOthers[arrayIndices].ignoreDevice);"
}
},
"listenerType": {
"type": "string",
"title": "Listener Type",
"oneOf": [
{
"title": "UPnP (Default)",
"enum": ["default"]
},
{
"title": "HTTP Polling",
"enum": ["http"]
}
],
"description": "UPnP allows for real-time notifications when your device is controlled, but can be problematic if your device is on a different IP network/VLAN to Homebridge. In this case you should use HTTP polling.",
"condition": {
"functionBody": "return (model.wemoOthers && model.wemoOthers[arrayIndices] && model.wemoOthers[arrayIndices].serialNumber && model.wemoOthers[arrayIndices].serialNumber.length > 0 && !model.wemoOthers[arrayIndices].ignoreDevice);"
}
}
}
}
}
}
},
"layout": [
{
"type": "fieldset",
"items": ["mode"]
},
{
"type": "fieldset",
"title": "Advanced Settings",
"description": "Advanced settings for the plugin, including network and discovery options.",
"expandable": true,
"items": [
"disableDeviceLogging",
"hideConnectionErrors",
"discoveryInterval",
"wemoClient.discover_opts.interfaces",
"wemoClient.discover_opts.explicitSocketBind",
"pollingInterval",
"disableUPNP",
"upnpInterval",
"wemoClient.callback_url",
"wemoClient.listen_interface",
"wemoClient.port"
]
},
{
"key": "makerTypes",
"expandable": true,
"title": "Wemo Makers",
"description": "Optional settings for Wemo Makers.",
"add": "Add Another Device",
"type": "array",
"items": [
{
"type": "fieldset",
"items": [
"makerTypes[].label",
"makerTypes[].serialNumber",
"makerTypes[].ignoreDevice",
"makerTypes[].makerType",
"makerTypes[].makerTimer",
"makerTypes[].reversePolarity",
"makerTypes[].manualIP",
"makerTypes[].listenerType"
]
}
]
},
{
"key": "wemoInsights",
"expandable": true,
"title": "Wemo Insights",
"description": "Optional settings for Wemo Insights.",
"add": "Add Another Device",
"type": "array",
"items": [
{
"type": "fieldset",
"items": [
"wemoInsights[].label",
"wemoInsights[].serialNumber",
"wemoInsights[].ignoreDevice",
"wemoInsights[].showTodayTC",
"wemoInsights[].wattDiff",
"wemoInsights[].timeDiff",
"wemoInsights[].showAs",
"wemoInsights[].outletInUseTrue",
"wemoInsights[].manualIP",
"wemoInsights[].listenerType"
]
}
]
},
{
"key": "wemoLights",
"expandable": true,
"title": "Wemo Lights",
"description": "Optional settings for Wemo Light Switches, Dimmers and Bulbs.",
"add": "Add Another Device",
"type": "array",
"items": [
{
"type": "fieldset",
"items": [
"wemoLights[].label",
"wemoLights[].serialNumber",
"wemoLights[].ignoreDevice",
"wemoLights[].brightnessStep",
"wemoLights[].enableColourControl",
"wemoLights[].adaptiveLightingShift",
"wemoLights[].transitionTime",
"wemoLights[].manualIP",
"wemoLights[].listenerType"
]
}
]
},
{
"key": "wemoLinks",
"expandable": true,
"title": "Wemo Links",
"description": "Optional settings for Wemo Link hubs.",
"add": "Add Another Device",
"type": "array",
"items": [
{
"type": "fieldset",
"items": [
"wemoLinks[].label",
"wemoLinks[].serialNumber",
"wemoLinks[].ignoreDevice",
"wemoLinks[].listenerType",
"wemoLinks[].manualIP"
]
}
]
},
{
"key": "wemoMotions",
"expandable": true,
"title": "Wemo Motions",
"description": "Optional settings for Wemo Motions.",
"add": "Add Another Device",
"type": "array",
"items": [
{
"type": "fieldset",
"items": [
"wemoMotions[].label",
"wemoMotions[].serialNumber",
"wemoMotions[].ignoreDevice",
"wemoMotions[].noMotionTimer",
"wemoMotions[].manualIP"
]
}
]
},
{
"key": "wemoOutlets",
"expandable": true,
"title": "Wemo Outlets",
"description": "Optional settings for Wemo WiFi Outlets and Outdoor Plugs.",
"add": "Add Another Device",
"type": "array",
"items": [
{
"type": "fieldset",
"items": [
"wemoOutlets[].label",
"wemoOutlets[].serialNumber",
"wemoOutlets[].ignoreDevice",
"wemoOutlets[].showAs",
"wemoOutlets[].manualIP",
"wemoOutlets[].listenerType"
]
}
]
},
{
"key": "wemoOthers",
"expandable": true,
"title": "Wemo Others",
"description": "Optional settings for Wemo Heater, Dehumidifier, Air Purifier, Crockpot and Coffee Maker.",
"add": "Add Another Device",
"type": "array",
"items": [
{
"type": "fieldset",
"items": [
"wemoOthers[].label",
"wemoOthers[].serialNumber",
"wemoOthers[].ignoreDevice",
"wemoOthers[].manualIP",
"wemoOthers[].listenerType"
]
}
]
}
]
}