-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.schema.json.tabarray
More file actions
1499 lines (1499 loc) · 59.5 KB
/
Copy pathconfig.schema.json.tabarray
File metadata and controls
1499 lines (1499 loc) · 59.5 KB
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
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"pluginAlias": "HttpSensorsAndSwitches",
"pluginType": "platform",
"headerDisplay": "Sensors, Switches, Lights",
"footerDisplay": "Please use Unique ID's",
"singular": true,
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string"
},
"description": {
"title": "Description",
"type": "string"
},
"devices": {
"type": "array",
"title": "Devices",
"description": "",
"items": {
"type": "object",
"properties": {
"deviceType": {
"type": "string",
"title": "Device Type",
"oneOf":[
{"title":"Temperature & Humidity Sensor","enum":["Sensor"]},
{"title":"Switch","enum":["Switch"]},
{"title":"Outlet","enum":["Outlet"]},
{"title":"Light Bulb","enum":["LightBulb"]},
{"title":"Fan","enum":["Fan"]},
{"title":"Motion Sensor","enum":["MotionSensor"]},
{"title":"Contact Sensor","enum":["ContactSensor"]},
{"title":"Battery","enum":["Battery"]},
{"title":"Light Sensor","enum":["LightSensor"]},
{"title":"Air Quality","enum":["AirQualitySensor"]},
{"title":"Carbon Dioxide","enum":["CarbonDioxideSensor"]},
{"title":"Smoke Sensor","enum":["SmokeSensor"]},
{"title":"Occupancy Sensor","enum":["OccupancySensor"]},
{"title":"Door","enum":["DoorOpener"]},
{"title":"Garage Door","enum":["GarageDoorOpener"]},
{"title":"Window","enum":["Window"]},
{"title":"Window Covering","enum":["WindowCovering"]},
{"title":"Valve","enum":["Valve"]}
],
"required": true,
"default": "Switch",
"placeholder": "Switch"
},
"enableLogging": {
"title": "Enable Logging",
"description": "Enable console Logging",
"type": "boolean",
"required": false,
"default": true
},
"deviceID": {
"title": "Device ID",
"description": "Please input Unique ID for this device",
"type": "string",
"required": true
},
"deviceName": {
"title": "Device name",
"description": "Device name",
"type": "string",
"required": true
},
"deviceManufacturer": {
"title": "Device Manufacturer",
"description": "Device Manufacturer",
"type": "string",
"required": false
},
"deviceModel": {
"title": "Device Model",
"description": "Device Model",
"type": "string",
"required": false
},
"deviceSerialNumber": {
"title": "Device Serial Number",
"description": "Device Serial number or leave it blank and will be generated automaticaly",
"type": "string",
"required": false
},
"deviceFirmwareVersion": {
"title": "Device Firmware version",
"description": "Device Firmware version",
"type": "string",
"required": false
},
"ignoreHttpsCertErrors": {
"title": "Ignore HTTPS Certificate Errors",
"type": "boolean",
"default": false,
"description": "If enabled, the plugin will skip certificate validation when connecting to this device over HTTPS. Use only for trusted local devices with self-signed certificates.",
"required": false
},
"trustedCert": {
"title": "Trusted Certificate (PEM format)",
"type": "string",
"description": "Paste the full PEM-encoded certificate here to validate HTTPS connections without skipping verification.",
"required": false
},
"urlON": {
"title": "URL turn ON",
"description": "URL to Turn On the Switch / Light",
"type": "string",
"required": false
},
"urlOFF": {
"title": "URL turn OFF",
"description": "URL to Turn OFF the Switch / Light",
"type": "string",
"required": false
},
"sharedPolling": {
"title": "Shared Polling",
"description": "Share url status between devices",
"type": "boolean",
"required": false
},
"sharedPollingId": {
"title": "Share Polling group name",
"description": "Share Polling group name",
"type": "string",
"required": false
},
"urlStatus": {
"title": "URL Status",
"description": "URL to retrieve JSON of Device status",
"type": "string",
"required": false
},
"stateName": {
"title": "Parameter Name for On/Off",
"description": "JSON Parameter Name for On/Off status",
"type": "string",
"required": false
},
"onStatusValue": {
"title": "Parameter Value for status On",
"description": "JSON return Value for status ON (true, 1, ON)",
"type": "string",
"required": false
},
"offStatusValue": {
"title": "Parameter Value for status OFF",
"description": "JSON return Value for status OFF (false, 0, OFF)",
"type": "string",
"required": false
},
"inUseStateName": {
"title": "Parameter Name for: in USE",
"description": "JSON Parameter Name for in Use status",
"type": "string",
"required": false
},
"inUseOnStatusValue": {
"title": "Parameter value for In Use Status ON",
"description": "JSON return Value for status In Use ON (true, 1)",
"type": "string",
"required": false
},
"inUseOffStatusValue": {
"title": "Parameter value for In Use Status OFF",
"description": "JSON return Value for status in use OFF (false, 0)",
"type": "string",
"required": false
},
"useRGB": {
"title": "Use RGB Color",
"description": "Use RGB instead of HSV",
"type": "boolean",
"required": false
},
"useBrightness255": {
"title": "Use Brightness 0 - 255",
"description": "Use Brightness 0 - 255 not 0 - 100",
"type": "boolean",
"required": false
},
"methodUpdate": {
"title": "use GET method",
"description": "Default is POST method",
"type": "boolean",
"required": false
},
"useColorTKelvin": {
"title": "Color Temperature in Kelvin",
"description": "Mired (153-500), Kelvin (2000-6500)",
"type": "boolean",
"required": false
},
"rgbParamName": {
"title": "Parameter Name for RGB",
"description": "JSON Parameter Name for RGB color",
"type": "string",
"required": false
},
"urlLightBulbControl": {
"title": "HTTP address Light Bulb Control",
"description": "HTTP address where to send Device control commands",
"type": "string",
"required": false
},
"brightnessParamName": {
"title": "Parameter Name for Brightness",
"description": "JSON Parameter Name for Brightness",
"type": "string",
"required": false
},
"saturationParamName": {
"title": "Parameter Name for Saturation",
"description": "JSON Parameter Name for Saturation",
"type": "string",
"required": false
},
"hueParamName": {
"title": "Parameter Name for HUE",
"description": "JSON Parameter Name for HUE",
"type": "string",
"required": false
},
"colorTemperatureParamName": {
"title": "Parameter Name for Color Temperature",
"description": "JSON Parameter Name for Color Temperature",
"type": "string",
"required": false
},
"urlDeviceControl": {
"title": "HTTP address Device Control",
"description": "HTTP address where to send Device control commands",
"type": "string",
"required": false
},
"paramNameStatusActive": {
"title": "Parameter Name for Active",
"description": "JSON Parameter Name for Active (on/off)",
"type": "string",
"required": false
},
"paramNameInUse": {
"title": "Parameter Name for In Use",
"description": "JSON Parameter Name for In Use (on/off)",
"type": "string",
"required": false
},
"paramNameTargetDoorState": {
"title": "Parameter Name for Target Door State",
"description": "JSON Parameter Name for TargetDoorState",
"type": "string",
"required": false
},
"paramNameCurrentDoorState": {
"title": "Parameter Name for CurrentDoorState",
"description": "JSON Parameter Name for Current Door State",
"type": "string",
"required": false
},
"paramNameObstructionDetected": {
"title": "Parameter Name for Obstruction Detected",
"description": "JSON Parameter Name for Obstruction Detected",
"type": "string",
"required": false
},
"paramNameStatusJammed": {
"title": "Parameter Name for Device Jammed",
"description": "JSON Parameter Name for Device Jammed",
"type": "string",
"required": false
},
"paramNameTargetPosition": {
"title": "Parameter Name for Target Position",
"description": "JSON Parameter Name for Target Position",
"type": "string",
"required": false
},
"paramNameCurrentPosition": {
"title": "Parameter Name for Current Position",
"description": "JSON Parameter Name for Current Position",
"type": "string",
"required": false
},
"paramNamePositionState": {
"title": "Parameter Name for Position State",
"description": "JSON Parameter Name for Position State",
"type": "string",
"required": false
},
"paramNameHoldPosition": {
"title": "Parameter Name for Hold Position",
"description": "JSON Parameter Name for Hold Position",
"type": "string",
"required": false
},
"paramNameRotationSpeed": {
"title": "Parameter Name for Rotation Speed",
"description": "JSON Parameter Name for Rotation Speed",
"type": "string",
"required": false
},
"paramNameRotationDirection": {
"title": "Parameter Name for Rotation Direction",
"description": "JSON Parameter Name for Rotation Direction",
"type": "string",
"required": false
},
"paramNameSwingMode": {
"title": "Parameter Name for Swing Mode",
"description": "JSON Parameter Name for Swing Mode",
"type": "string",
"required": false
},
"paramNameCurrentFanState": {
"title": "Parameter Name for Current Fan State",
"description": "JSON Parameter Name for Current Fan State",
"type": "string",
"required": false
},
"paramNameTargetFanState": {
"title": "Parameter Name for Target Fan State",
"description": "JSON Parameter Name for Target Fan State",
"type": "string",
"required": false
},
"paramNameContactSensorState": {
"title": "Parameter Name for Contact Sensor State",
"description": "JSON Parameter Name for Contact Sensor State",
"type": "string",
"required": false
},
"paramNameCurrentAmbientLightLevel": {
"title": "Parameter Name for Current Ambient Light Level",
"description": "JSON Parameter Name for Current Ambient Light Level",
"type": "string",
"required": false
},
"paramNameCO2Detected": {
"title": "Parameter Name for CO2 Detected",
"description": "JSON Parameter Name for CO2 Detected",
"type": "string",
"required": false
},
"paramNameSmokeDetected": {
"title": "Parameter Name for Smoke Detected",
"description": "JSON Parameter Name for Smoke Detected",
"type": "string",
"required": false
},
"paramNameOccupancyDetected": {
"title": "Parameter Name for Occupancy Detected",
"description": "JSON Parameter Name for Occupancy Detected",
"type": "string",
"required": false
},
"paramNameMotionDetected": {
"title": "Parameter Name for Motion Detected",
"description": "JSON Parameter Name for Motion Detected",
"type": "string",
"required": false
},
"paramNameAirQuality": {
"title": "Parameter Name for Air Quality",
"description": "JSON Parameter Name for Air Quality",
"type": "string",
"required": false
},
"paramNamePM2_5Density": {
"title": "Parameter Name for PM2.5 Density",
"description": "JSON Parameter Name for PM2.5 Density",
"type": "string",
"required": false
},
"paramNamePM10Density": {
"title": "Parameter Name for PM10 Density",
"description": "JSON Parameter Name for PM10 Density",
"type": "string",
"required": false
},
"paramNameOzoneDensity": {
"title": "Parameter Name for Ozone Density",
"description": "JSON Parameter Name for Ozone Density",
"type": "string",
"required": false
},
"paramNameNitrogenDioxideDensity": {
"title": "Parameter Name for Nitrogen Dioxide Density",
"description": "JSON Parameter Name for Nitrogen Dioxide Density",
"type": "string",
"required": false
},
"paramNameSulphurDioxideDensity": {
"title": "Parameter Name for Sulphur Dioxide Density",
"description": "JSON Parameter Name for Sulphur Dioxide Density",
"type": "string",
"required": false
},
"paramNameCarbonMonoxideLevel": {
"title": "Parameter Name for Carbon Monoxide Level",
"description": "JSON Parameter Name for Carbon Monoxide Level",
"type": "string",
"required": false
},
"paramNameVOCDensity": {
"title": "Parameter Name for VOC Level",
"description": "JSON Parameter Name for Volatile Organic Compounds Level",
"type": "string",
"required": false
},
"paramNameCO2Level": {
"title": "Parameter Name for CO2 Level",
"description": "JSON Parameter Name for CO2 Level",
"type": "string",
"required": false
},
"paramNameCO2PeakLevel": {
"title": "Parameter Name for CO2 Peak Level",
"description": "JSON Parameter Name for CO2 Peak Level",
"type": "string",
"required": false
},
"paramNameStatusFault": {
"title": "Parameter Name for Fault",
"description": "JSON Parameter Name Device Fault",
"type": "string",
"required": false
},
"paramNameBatteryLevel": {
"title": "Parameter Name for Battery level",
"description": "JSON Parameter Name for Battery level",
"type": "string",
"required": false
},
"paramNameStatusLowBattery": {
"title": "Parameter Name for Low Battery",
"description": "JSON Parameter Name for Low Battery",
"type": "string",
"required": false
},
"paramNameStatusChargingBattery": {
"title": "Parameter Name for Charging Battery",
"description": "JSON Parameter Name for Charging Battery",
"type": "string",
"required": false
},
"paramNameStatusTampered": {
"title": "Parameter Name for Tampered",
"description": "JSON Parameter Name Device is Tampered",
"type": "string",
"required": false
},
"paramNameValveType": {
"type": "number",
"title": "Valve Type",
"oneOf":[
{"title":"Generic valve","enum":[0]},
{"title":"Irrigation","enum":[1]},
{"title":"Shower head","enum":[2]},
{"title":"Tap","enum":[3]}
],
"required": false
},
"sensorUrl": {
"title": "Sensor URL",
"description": "JSON file containing sensor readings (temperature, humidity)",
"type": "string",
"required": false
},
"temperatureName": {
"title": "Parameter Name for Temperature",
"description": "JSON parameter name for Temperature reading",
"type": "string",
"required": false
},
"humidityName": {
"title": "Parameter Name for Humidity",
"description": "JSON parameter name for Humidity reading",
"type": "string",
"required": false
},
"updateInterval": {
"title": "Update interval",
"description": "update interval for reading Sensors, default is 60000 = 60 seconds = 1 minute",
"type": "integer",
"required": false
},
"sharedPollingInterval": {
"title": "Update Interval",
"description": "Update interval, default is 60000 miliseconds",
"type": "integer",
"required": false
},
"mqttBroker": {
"title": "MQTT Broker",
"description": "URL of MQTT Broker",
"type": "string",
"required": false
},
"mqttPort": {
"title": "MQTT port",
"description": "1883",
"type": "number",
"required": false
},
"mqttUsername": {
"title": "MQTT Username",
"description": "MQTT Username",
"type": "string",
"required": false
},
"mqttPassword": {
"title": "MQTT Password",
"description": "MQTT Password",
"type": "string",
"required": false
},
"mqttTemperature": {
"title": "MQTT Topic Temperature",
"description": "mqtt Topic Temperature",
"type": "string",
"required": false
},
"mqttHumidity": {
"title": "MQTT Topic Humidity",
"description": "mqtt Topic Humidity",
"type": "string",
"required": false
},
"mqttSwitch": {
"title": "MQTT Topic Switch",
"description": "MQTT Topic Switch",
"type": "string",
"required": false
},
"mqttRGB": {
"title": "MQTT Topic RGB",
"description": "MQTT Topic RGB",
"type": "string",
"required": false
},
"mqttBrightness": {
"title": "MQTT Topic Brightness",
"description": "MQTT Topic Brightness",
"type": "string",
"required": false
},
"mqttHue": {
"title": "MQTT Topic Hue",
"description": "MQTT Topic Hue",
"type": "string",
"required": false
},
"mqttSaturation": {
"title": "MQTT Topic Saturation",
"description": "MQTT Topic Saturation",
"type": "string",
"required": false
},
"mqttColorTemperature": {
"title": "MQTT Topic Color Temperature",
"description": "MQTT Topic Color Temperature (Kelvin)",
"type": "string",
"required": false
},
"mqttInUse": {
"title": "MQTT Topic In Use",
"description": "MQTT Topic In Use",
"type": "string",
"required": false
},
"mqttReconnectInterval": {
"title": "MQTT Reconnect interval (sec)",
"description": "MQTT Reconnect interval default is set to 60 sec",
"type": "number",
"required": false
},
"mqttRotationSpeed": {
"title": "Parameter Name for Rotation Speed",
"description": "MQTT Topic Name for Rotation Speed",
"type": "string",
"required": false
},
"mqttRotationDirection": {
"title": "MQTT Topic for Rotation Direction",
"description": "MQTT Topic Name for Rotation Direction",
"type": "string",
"required": false
},
"mqttSwingMode": {
"title": "MQTT Topic for Swing Mode",
"description": "MQTT Topic Name for Swing Mode",
"type": "string",
"required": false
},
"mqttCurrentFanState": {
"title": "MQTT Topic for Current Fan State",
"description": "MQTT Topic Name for Current Fan State",
"type": "string",
"required": false
},
"mqttTargetFanState": {
"title": "MQTT Topic for Target Fan State",
"description": "MQTT Topic Name for Target Fan State",
"type": "string",
"required": false
},
"mqttMotionDetected": {
"title": "MQTT Topic Motion Detected",
"description": "MQTT Topic Motion Detected",
"type": "string",
"required": false
},
"mqttContactSensorState": {
"title": "MQTT Topic Contact Sensor State",
"description": "MQTT Topic Contact Sensor State",
"type": "string",
"required": false
},
"mqttCurrentAmbientLightLevel": {
"title": "MQTT Topic Current Ambient Light Level",
"description": "MQTT Topic Current Ambient Light Level",
"type": "string",
"required": false
},
"mqttCO2Detected": {
"title": "MQTT Topic for CO2 Detected",
"description": "MQTT Topic Name for CO2 Detected",
"type": "string",
"required": false
},
"mqttSmokeDetected": {
"title": "MQTT Topic for Smoke Detected",
"description": "MQTT Topic Name for Smoke Detected",
"type": "string",
"required": false
},
"mqttOccupancyDetected": {
"title": "MQTT Topic for Occupancy Detected",
"description": "MQTT Topic Name for Occupancy Detected",
"type": "string",
"required": false
},
"mqttAirQuality": {
"title": "MQTT Topic for Air Quality",
"description": "MQTT Topic Name for Air Quality",
"type": "string",
"required": false
},
"mqttPM2_5Density": {
"title": "MQTT Topic for PM2.5 Density",
"description": "MQTT Topic Name for PM2.5 Density",
"type": "string",
"required": false
},
"mqttPM10Density": {
"title": "MQTT Topic for PM10 Density",
"description": "MQTT Topic Name for PM10 Density",
"type": "string",
"required": false
},
"mqttOzoneDensity": {
"title": "MQTT Topic for Ozone Density",
"description": "MQTT Topic Name for Ozone Density",
"type": "string",
"required": false
},
"mqttNitrogenDioxideDensity": {
"title": "MQTT Topic for Nitrogen Dioxide Density",
"description": "MQTT Topic Name for Nitrogen Dioxide Density",
"type": "string",
"required": false
},
"mqttSulphurDioxideDensity": {
"title": "MQTT Topic for Sulphur Dioxide Density",
"description": "MQTT Topic Name for Sulphur Dioxide Density",
"type": "string",
"required": false
},
"mqttCarbonMonoxideLevel": {
"title": "MQTT Topic for Carbon Monoxide Level",
"description": "MQTT Topic Name for Carbon Monoxide Level",
"type": "string",
"required": false
},
"mqttVOCDensity": {
"title": "MQTT Topic for VOC Level",
"description": "MQTT Topic Name for Volatile Organic Compounds Level",
"type": "string",
"required": false
},
"mqttCO2Level": {
"title": "MQTT Topic for CO2 Level",
"description": "MQTT Topic Name for CO2 Level",
"type": "string",
"required": false
},
"mqttCO2PeakLevel": {
"title": "MQTT Topic for CO2 Peak Level",
"description": "MQTT Topic Name for CO2 Peak Level",
"type": "string",
"required": false
},
"mqttTargetDoorState": {
"title": "MQTT Topic for Target Door State",
"description": "MQTT Topic Name for Target Door State",
"type": "string",
"required": false
},
"mqttCurrentDoorState": {
"title": "MQTT Topic for Current Door State",
"description": "MQTT Topic Name for Current Door State",
"type": "string",
"required": false
},
"mqttObstructionDetected": {
"title": "MQTT Topic for Obstruction Detected",
"description": "MQTT Topic Name for Obstruction Detected",
"type": "string",
"required": false
},
"mqttStatusJammed": {
"title": "MQTT Topic for Status Jammed",
"description": "MQTT Topic Name for Status Jammed",
"type": "string",
"required": false
},
"mqttTargetPosition": {
"title": "MQTT Topic for Target Position",
"description": "MQTT Topic Name for Target Position",
"type": "string",
"required": false
},
"mqttCurrentPosition": {
"title": "MQTT Topic for Current Position",
"description": "MQTT Topic Name for Current Position",
"type": "string",
"required": false
},
"mqttPositionState": {
"title": "MQTT Topic for Position State",
"description": "MQTT Topic Name for Position State",
"type": "string",
"required": false
},
"mqttHoldPosition": {
"title": "MQTT Topic for Hold Position",
"description": "MQTT Topic Name for Hold Position",
"type": "string",
"required": false
},
"mqttActive": {
"title": "MQTT Topic for Active",
"description": "MQTT Topic Name for Active (on/off)",
"type": "string",
"required": false
},
"mqttFault": {
"title": "MQTT Topic for Fault",
"description": "MQTT Topic Name for Device is Fault",
"type": "string",
"required": false
},
"mqttBatteryLevel": {
"title": "MQTT Topic for Battery Level",
"description": "MQTT Topic Name for Battery Level",
"type": "string",
"required": false
},
"mqttBatteryChargingState": {
"title": "MQTT Topic for Battery Charging State",
"description": "MQTT Topic Name for Battery Charging State",
"type": "string",
"required": false
},
"mqttLowBattery": {
"title": "MQTT Topic for Low Battery",
"description": "MQTT Topic Name for Low Battery",
"type": "string",
"required": false
},
"mqttTampered": {
"title": "MQTT Topic for Tampered",
"description": "MQTT Topic Name for Tampered",
"type": "string",
"required": false
},
"discordWebhook": {
"title": "Discord WebHook",
"description": "URL to Discord WebHook",
"type": "string",
"required": false
},
"discordUsername": {
"title": "Discord Username",
"description": "Name for publisher",
"type": "string",
"required": false
},
"discordAvatar": {
"title": "Discord Avatar",
"description": "URL to Online Avatar image",
"type": "string",
"required": false
},
"discordMessage": {
"title": "Discord Message",
"description": "Message",
"type": "string",
"required": false
}
}
}
}
}
},
"layout": [
{
"key": "devices",
"type": "tabarray",
"title": "{{ value.deviceName || 'new Device' }}",
"items": [
"devices[].enableLogging",
"devices[].deviceType",
{
"key": "devices[].paramNameValveType",
"condition": {
"functionBody": "return model.devices[arrayIndices].deviceType === 'Valve';"
}
},
"devices[].deviceName",
"devices[].deviceID",
"devices[].deviceManufacturer",
"devices[].deviceModel",
"devices[].deviceSerialNumber",
"devices[].deviceFirmwareVersion",
{
"key": "devices[]",
"type": "fieldset",
"title": "Settings",
"items": [
{
"key": "devices[]",
"type": "fieldset",
"condition": {
"functionBody": "return model.devices[arrayIndices].deviceType === 'LightBulb';"
},
"items": [
{
"type": "flex",
"flex-flow": "row wrap",
"items": [
"devices[].useRGB",
"devices[].useBrightness255",
"devices[].useColorTKelvin"
]
}
]
},
{
"key": "devices[]",
"type": "fieldset",
"title": "⚙️ HTTP {{ value.deviceType }} Settings",
"expandable": true,
"expanded": false,
"items": [
{
"type": "flex",
"flex-flow": "row wrap",
"items": [
"devices[].sharedPolling",
"devices[].sharedPollingId",
"devices[].sharedPollingInterval"
]
},
{
"title": "Security Settings",
"type": "section",
"expandable": true,
"expanded": false,
"items": [
"devices[].ignoreHttpsCertErrors",
{
"key": "devices[].trustedCert",
"type": "textarea",
"title": "Trusted Certificate (PEM format)",
"description": "Paste the full PEM-encoded certificate here to validate HTTPS connections without skipping verification.",
"rows": 5
}
]
},
{
"title": "Battery Settings",
"type": "section",
"expandable": true,
"expanded": false,
"condition": {
"functionBody": "return model.devices[arrayIndices].deviceType === 'Sensor';"
},
"items": [
"devices[].paramNameBatteryLevel",
"devices[].paramNameStatusChargingBattery",
"devices[].paramNameStatusLowBattery"
]
},
{
"type": "section",
"title": "-----------------------------------------"
},
{
"type": "section",
"condition": {
"functionBody": "return model.devices[arrayIndices].deviceType === 'Switch';"
},
"items": [
"devices[].urlStatus",
"devices[].urlON",
"devices[].urlOFF",
"devices[].stateName",
"devices[].onStatusValue",
"devices[].offStatusValue"
]
},
{
"type": "section",
"condition": {
"functionBody": "return model.devices[arrayIndices].deviceType === 'Battery';"
},
"items": [
"devices[].urlStatus",
"devices[].updateInterval",
"devices[].paramNameBatteryLevel",
"devices[].paramNameStatusChargingBattery",
"devices[].paramNameStatusLowBattery"
]
},
{
"type": "section",
"condition": {
"functionBody": "return model.devices[arrayIndices].deviceType === 'Sensor';"
},
"items": [
"devices[].sensorUrl",
"devices[].updateInterval",
"devices[].temperatureName",
"devices[].humidityName"
]
},
{
"type": "section",
"condition": {
"functionBody": "return model.devices[arrayIndices].deviceType === 'CarbonDioxideSensor';"
},
"items": [
"devices[].urlStatus",
"devices[].updateInterval",
"devices[].paramNameCO2Detected",
"devices[].paramNameCO2Level",
"devices[].paramNameCO2PeakLevel",
"devices[].paramNameStatusActive",
"devices[].paramNameStatusFault",
"devices[].paramNameStatusLowBattery",
"devices[].paramNameStatusTampered"
]
},
{
"type": "section",
"condition": {
"functionBody": "return model.devices[arrayIndices].deviceType === 'MotionSensor';"
},
"items": [
"devices[].urlStatus",
"devices[].updateInterval",
"devices[].paramNameMotionDetected",
"devices[].paramNameStatusActive",
"devices[].paramNameStatusFault",
"devices[].paramNameStatusLowBattery",
"devices[].paramNameStatusTampered"
]
},
{
"type": "section",
"condition": {
"functionBody": "return model.devices[arrayIndices].deviceType === 'ContactSensor';"
},
"items": [
"devices[].urlStatus",
"devices[].updateInterval",
"devices[].paramNameContactSensorState",
"devices[].paramNameStatusActive",
"devices[].paramNameStatusFault",
"devices[].paramNameStatusLowBattery",
"devices[].paramNameStatusTampered"
]
},
{
"type": "section",