@homebridge-plugins/homebridge-tuya 3.0.0-beta.12 → 3.0.0-beta.14

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.
@@ -52,58 +52,120 @@
52
52
  "local.devices[].protocolVersion",
53
53
  "local.devices[].dpMapping",
54
54
  "local.devices[].outletCount",
55
- "local.devices[].outlets",
56
- "local.devices[].dpPower",
57
- "local.devices[].dpBrightness",
58
- "local.devices[].dpColorTemperature",
59
- "local.devices[].minWhiteColor",
60
- "local.devices[].maxWhiteColor",
61
- "local.devices[].dpMode",
62
- "local.devices[].dpColor",
63
- "local.devices[].colorFunction",
64
- "local.devices[].scaleBrightness",
65
- "local.devices[].scaleWhiteColor",
66
- "local.devices[].voltsId",
67
- "local.devices[].ampsId",
68
- "local.devices[].wattsId",
69
- "local.devices[].voltsDivisor",
70
- "local.devices[].ampsDivisor",
71
- "local.devices[].wattsDivisor",
72
- "local.devices[].noCool",
73
- "local.devices[].noHeat",
74
- "local.devices[].cmdCool",
75
- "local.devices[].cmdHeat",
76
- "local.devices[].noSwing",
77
- "local.devices[].minTemperature",
78
- "local.devices[].maxTemperature",
79
- "local.devices[].minTemperatureSteps",
80
- "local.devices[].dpActive",
81
- "local.devices[].dpDesiredTemperature",
82
- "local.devices[].dpCurrentTemperature",
83
- "local.devices[].dpAction",
84
- "local.devices[].dpStatus",
85
- "local.devices[].flipState",
86
- "local.devices[].timeToOpen",
87
- "local.devices[].timeToTighten",
88
- "local.devices[].timeToClose",
89
- "local.devices[].dpLight",
90
- "local.devices[].dpBlindType",
91
- "local.devices[].dpLightOn",
92
- "local.devices[].dpFanOn",
93
- "local.devices[].dpRotationSpeed",
94
- "local.devices[].dpRotationDirection",
95
- "local.devices[].maxSpeed",
96
- "local.devices[].fanDefaultSpeed",
97
- "local.devices[].useStrings",
98
- "local.devices[].dpChildLock",
99
- "local.devices[].dpTemperatureDisplayUnits",
100
- "local.devices[].cmdLow",
101
- "local.devices[].cmdHigh",
102
- "local.devices[].noChildLock",
103
- "local.devices[].noTemperatureUnit",
104
- "local.devices[].temperatureDivisor",
105
- "local.devices[].thresholdTemperatureDivisor",
106
- "local.devices[].temperatureOffset"
55
+ {
56
+ "type": "fieldset",
57
+ "items": [
58
+ "local.devices[].dpMapping.add_ele",
59
+ "local.devices[].dpMapping.air_quality",
60
+ "local.devices[].dpMapping.alarm_message",
61
+ "local.devices[].dpMapping.alarm_propel_switch",
62
+ "local.devices[].dpMapping.battery_percentage",
63
+ "local.devices[].dpMapping.bright_value",
64
+ "local.devices[].dpMapping.bright_value_v2",
65
+ "local.devices[].dpMapping.child_lock",
66
+ "local.devices[].dpMapping.co2_state",
67
+ "local.devices[].dpMapping.co2_value",
68
+ "local.devices[].dpMapping.co_status",
69
+ "local.devices[].dpMapping.co_value",
70
+ "local.devices[].dpMapping.colour_data",
71
+ "local.devices[].dpMapping.colour_data_v2",
72
+ "local.devices[].dpMapping.control",
73
+ "local.devices[].dpMapping.cur_current",
74
+ "local.devices[].dpMapping.cur_power",
75
+ "local.devices[].dpMapping.cur_voltage",
76
+ "local.devices[].dpMapping.dehumidify_set_value",
77
+ "local.devices[].dpMapping.doorbell_call",
78
+ "local.devices[].dpMapping.doorbell_pic",
79
+ "local.devices[].dpMapping.doorbell_ring_exist",
80
+ "local.devices[].dpMapping.doorbell_volume_value",
81
+ "local.devices[].dpMapping.doorcontact_state",
82
+ "local.devices[].dpMapping.fan_direction",
83
+ "local.devices[].dpMapping.fan_speed",
84
+ "local.devices[].dpMapping.fan_speed_enum",
85
+ "local.devices[].dpMapping.feed_report",
86
+ "local.devices[].dpMapping.feed_state",
87
+ "local.devices[].dpMapping.floodlight_lightness",
88
+ "local.devices[].dpMapping.floodlight_switch",
89
+ "local.devices[].dpMapping.gas_sensor_status",
90
+ "local.devices[].dpMapping.humidity_current",
91
+ "local.devices[].dpMapping.humidity_indoor",
92
+ "local.devices[].dpMapping.humidity_set",
93
+ "local.devices[].dpMapping.level",
94
+ "local.devices[].dpMapping.light",
95
+ "local.devices[].dpMapping.lock",
96
+ "local.devices[].dpMapping.lock_motor_state",
97
+ "local.devices[].dpMapping.manual_feed",
98
+ "local.devices[].dpMapping.master_mode",
99
+ "local.devices[].dpMapping.meal_plan",
100
+ "local.devices[].dpMapping.mode",
101
+ "local.devices[].dpMapping.motion_switch",
102
+ "local.devices[].dpMapping.movement_detect_pic",
103
+ "local.devices[].dpMapping.open_close",
104
+ "local.devices[].dpMapping.percent_control",
105
+ "local.devices[].dpMapping.percent_state",
106
+ "local.devices[].dpMapping.pir",
107
+ "local.devices[].dpMapping.pir_state",
108
+ "local.devices[].dpMapping.pm10_value",
109
+ "local.devices[].dpMapping.pm25",
110
+ "local.devices[].dpMapping.pm25_value",
111
+ "local.devices[].dpMapping.position",
112
+ "local.devices[].dpMapping.presence_state",
113
+ "local.devices[].dpMapping.quick_feed",
114
+ "local.devices[].dpMapping.shake",
115
+ "local.devices[].dpMapping.shock_state",
116
+ "local.devices[].dpMapping.slow_feed",
117
+ "local.devices[].dpMapping.smoke_sensor_status",
118
+ "local.devices[].dpMapping.sos_state",
119
+ "local.devices[].dpMapping.speed",
120
+ "local.devices[].dpMapping.swing",
121
+ "local.devices[].dpMapping.switch",
122
+ "local.devices[].dpMapping.switch_1",
123
+ "local.devices[].dpMapping.switch_fan",
124
+ "local.devices[].dpMapping.switch_horizontal",
125
+ "local.devices[].dpMapping.switch_inching",
126
+ "local.devices[].dpMapping.switch_led",
127
+ "local.devices[].dpMapping.switch_mode1",
128
+ "local.devices[].dpMapping.switch_music",
129
+ "local.devices[].dpMapping.switch_pir",
130
+ "local.devices[].dpMapping.switch_sound",
131
+ "local.devices[].dpMapping.switch_spray",
132
+ "local.devices[].dpMapping.temp_current",
133
+ "local.devices[].dpMapping.temp_indoor",
134
+ "local.devices[].dpMapping.temp_set",
135
+ "local.devices[].dpMapping.temp_unit_convert",
136
+ "local.devices[].dpMapping.temp_value",
137
+ "local.devices[].dpMapping.temp_value_v2",
138
+ "local.devices[].dpMapping.tvoc",
139
+ "local.devices[].dpMapping.va_humidity",
140
+ "local.devices[].dpMapping.va_temperature",
141
+ "local.devices[].dpMapping.voc_value",
142
+ "local.devices[].dpMapping.work_mode",
143
+ "local.devices[].dpMapping.work_state",
144
+ "local.devices[].dpMapping.work_status"
145
+ ]
146
+ },
147
+ {
148
+ "key": "local.devices[].dpMappingArray",
149
+ "type": "array",
150
+ "listItems": 3,
151
+ "items": [
152
+ {
153
+ "type": "div",
154
+ "displayFlex": true,
155
+ "flex-direction": "row",
156
+ "items": [
157
+ {
158
+ "key": "local.devices[].dpMappingArray[].dpCode",
159
+ "placeholder": "switch"
160
+ },
161
+ {
162
+ "key": "local.devices[].dpMappingArray[].dpID",
163
+ "placeholder": "1"
164
+ }
165
+ ]
166
+ }
167
+ ]
168
+ }
107
169
  ]
108
170
  }
109
171
  ]
@@ -357,27 +419,42 @@
357
419
  { "title": "Smart Outlet / Power Strip", "enum": ["cz"] },
358
420
  { "title": "Wireless Remote Switch", "enum": ["wxkg"] },
359
421
  { "title": "Scene Switch", "enum": ["cjkg"] },
422
+ { "title": "WhiteNoiseLight", "enum": ["bzyd"] },
360
423
  { "title": "Air Conditioner", "enum": ["kt"] },
361
424
  { "title": "Heater / Convector", "enum": ["qn"] },
362
425
  { "title": "Air Purifier", "enum": ["kj"] },
363
- { "title": "Humidifier / Diffuser", "enum": ["xxj"] },
426
+ { "title": "Diffuser", "enum": ["xxj"] },
364
427
  { "title": "Garage Door", "enum": ["ckmkzq"] },
365
- { "title": "Window Covering / Blind", "enum": ["cl"] },
366
- { "title": "Smart Lock", "enum": ["ms"] },
428
+ { "title": "Blind", "enum": ["mg"] },
429
+ { "title": "Window Covering", "enum": ["cl"] },
430
+ { "title": "Pet Feeder", "enum": ["cwwsq"] },
367
431
  { "title": "Window / Door Sensor", "enum": ["mc"] },
368
- { "title": "Contact Sensor", "enum": ["hj"] },
369
- { "title": "Leak Sensor", "enum": ["yc"] },
370
- { "title": "Motion Sensor", "enum": ["pir"] },
371
- { "title": "Smoke Sensor", "enum": ["yw"] },
372
- { "title": "Temperature/Humidity Sensor", "enum": ["wsdcz"] },
373
- { "title": "Light Sensor", "enum": ["gd"] },
374
- { "title": "Air Quality Sensor", "enum": ["kqbj"] },
375
432
  { "title": "Thermostat", "enum": ["wk"] },
376
433
  { "title": "Towel Rack / Warmer", "enum": ["mjj"] },
434
+ { "title": "Valve", "enum": ["ggq"] },
435
+ { "title": "Humidifier", "enum": ["jsq"] },
436
+ { "title": "Dehumidifier", "enum": ["cs"] },
377
437
  { "title": "Fan", "enum": ["fs"] },
378
- { "title": "Doorbell / Camera", "enum": ["mb"] },
379
- { "title": "Pet Feeder", "enum": ["cwwsq"] },
380
- { "title": "Security System", "enum": ["aq"] },
438
+ { "title": "ExtractionHood", "enum": ["yyj"] },
439
+ { "title": "Camera", "enum": ["sp"] },
440
+ { "title": "Smoke Sensor", "enum": ["ywbj"] },
441
+ { "title": "Contact Sensor", "enum": ["mcs"] },
442
+ { "title": "Vibration Sensor", "enum": ["zd"] },
443
+ { "title": "Leak Sensor", "enum": ["rqbj"] },
444
+ { "title": "CarbonMonoxide Sensor", "enum": ["cobj"] },
445
+ { "title": "CarbonDioxide Sensor", "enum": ["co2bj"] },
446
+ { "title": "Temperature/Humidity Sensor", "enum": ["wsdcg"] },
447
+ { "title": "Light Sensor", "enum": ["ldcg"] },
448
+ { "title": "Motion Sensor", "enum": ["pir"] },
449
+ { "title": "Air Quality Sensor", "enum": ["pm25"] },
450
+ { "title": "HumanPresence Sensor", "enum": ["hps"] },
451
+ { "title": "Smart Lock", "enum": ["ms"] },
452
+ { "title": "Security System", "enum": ["mal"] },
453
+ { "title": "Doorbell", "enum": ["wxml"] },
454
+ { "title": "WeatherStation", "enum": ["qxj"] },
455
+ { "title": "IRControlHub", "enum": ["wnykq"] },
456
+ { "title": "IRControlHubSub", "enum": ["qt"] },
457
+ { "title": "IRGeneric", "enum": ["infrared_"] },
381
458
  { "title": "Custom / Other", "enum": ["other"] }
382
459
  ]
383
460
  },
@@ -411,15 +488,643 @@
411
488
  "type": "string",
412
489
  "condition": { "functionBody": "return !!model.local?.devices?.[arrayIndices[0]]?.category;" }
413
490
  },
414
- "dpMapping": {
491
+ "dpMappingArray": {
415
492
  "title": "Custom DP Mapping (Advanced)",
416
- "description": "Override default DP-to-function mappings as JSON. Example: {\"switch_1\": 1, \"bright_value\": 2, \"temp_value\": 3}",
417
- "type": "object",
418
- "additionalProperties": {
419
- "type": "integer"
493
+ "description": "Override default DP-to-function mappings as JSON.",
494
+ "type": "array",
495
+ "items": {
496
+ "type": "object",
497
+ "required": ["dpCode", "dpID"],
498
+ "properties": {
499
+ "dpCode": {
500
+ "type": "string",
501
+ "title": "DP Code"
502
+ },
503
+ "dpID": {
504
+ "type": "integer",
505
+ "title": "DP ID"
506
+ }
507
+ }
420
508
  },
421
509
  "condition": {
422
- "functionBody": "return ((model.local && model.local.devices && model.local.devices[arrayIndices[0]]) ? model.local.devices[arrayIndices[0]].category : undefined) && ((model.local && model.local.devices && model.local.devices[arrayIndices[0]]) ? model.local.devices[arrayIndices[0]].category : undefined) !== '';"
510
+ "functionBody": "return ['other'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
511
+ }
512
+ },
513
+ "dpMapping": {
514
+ "title": "DP Mapping (Advanced)",
515
+ "description": "Override default DP-to-function mappings as JSON. Example: {\"switch_1\": 1, \"bright_value\": 2, \"temp_value\": 3}",
516
+ "type": "object",
517
+ "condition": { "functionBody": "return !['other', '', undefined].includes(model.local?.devices?.[arrayIndices[0]]?.category);" },
518
+ "properties": {
519
+ "add_ele": {
520
+ "type": "integer",
521
+ "title": "add_ele",
522
+ "condition": {
523
+ "functionBody": "return ['cz', 'dlq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
524
+ }
525
+ },
526
+ "air_quality": {
527
+ "type": "integer",
528
+ "title": "air_quality",
529
+ "condition": {
530
+ "functionBody": "return ['kj', 'yyj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
531
+ }
532
+ },
533
+ "alarm_message": {
534
+ "type": "integer",
535
+ "title": "alarm_message",
536
+ "condition": {
537
+ "functionBody": "return ['sp', 'wxml'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
538
+ }
539
+ },
540
+ "alarm_propel_switch": {
541
+ "type": "integer",
542
+ "title": "alarm_propel_switch",
543
+ "condition": {
544
+ "functionBody": "return ['wxml'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
545
+ }
546
+ },
547
+ "battery_percentage": {
548
+ "type": "integer",
549
+ "title": "battery_percentage",
550
+ "condition": {
551
+ "functionBody": "return ['cwwsq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
552
+ }
553
+ },
554
+ "bright_value": {
555
+ "type": "integer",
556
+ "title": "bright_value",
557
+ "condition": {
558
+ "functionBody": "return ['dj', 'fs', 'jsq', 'ldcg', 'tgq', 'wnykq', 'xxj', 'yyj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
559
+ }
560
+ },
561
+ "bright_value_v2": {
562
+ "type": "integer",
563
+ "title": "bright_value_v2",
564
+ "condition": {
565
+ "functionBody": "return ['dj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
566
+ }
567
+ },
568
+ "child_lock": {
569
+ "type": "integer",
570
+ "title": "child_lock",
571
+ "condition": {
572
+ "functionBody": "return ['cs', 'fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
573
+ }
574
+ },
575
+ "co2_state": {
576
+ "type": "integer",
577
+ "title": "co2_state",
578
+ "condition": {
579
+ "functionBody": "return ['co2bj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
580
+ }
581
+ },
582
+ "co2_value": {
583
+ "type": "integer",
584
+ "title": "co2_value",
585
+ "condition": {
586
+ "functionBody": "return ['co2bj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
587
+ }
588
+ },
589
+ "co_status": {
590
+ "type": "integer",
591
+ "title": "co_status",
592
+ "condition": {
593
+ "functionBody": "return ['cobj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
594
+ }
595
+ },
596
+ "co_value": {
597
+ "type": "integer",
598
+ "title": "co_value",
599
+ "condition": {
600
+ "functionBody": "return ['cobj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
601
+ }
602
+ },
603
+ "colour_data": {
604
+ "type": "integer",
605
+ "title": "colour_data",
606
+ "condition": {
607
+ "functionBody": "return ['bzyd', 'dj', 'fs', 'jsq', 'xxj', 'yyj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
608
+ }
609
+ },
610
+ "colour_data_v2": {
611
+ "type": "integer",
612
+ "title": "colour_data_v2",
613
+ "condition": {
614
+ "functionBody": "return ['dj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
615
+ }
616
+ },
617
+ "control": {
618
+ "type": "integer",
619
+ "title": "control",
620
+ "condition": {
621
+ "functionBody": "return ['mg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
622
+ }
623
+ },
624
+ "cur_current": {
625
+ "type": "integer",
626
+ "title": "cur_current",
627
+ "condition": {
628
+ "functionBody": "return ['cz', 'dlq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
629
+ }
630
+ },
631
+ "cur_power": {
632
+ "type": "integer",
633
+ "title": "cur_power",
634
+ "condition": {
635
+ "functionBody": "return ['cz', 'dlq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
636
+ }
637
+ },
638
+ "cur_voltage": {
639
+ "type": "integer",
640
+ "title": "cur_voltage",
641
+ "condition": {
642
+ "functionBody": "return ['cz', 'dlq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
643
+ }
644
+ },
645
+ "dehumidify_set_value": {
646
+ "type": "integer",
647
+ "title": "dehumidify_set_value",
648
+ "condition": {
649
+ "functionBody": "return ['cs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
650
+ }
651
+ },
652
+ "doorbell_call": {
653
+ "type": "integer",
654
+ "title": "doorbell_call",
655
+ "condition": {
656
+ "functionBody": "return ['wxml'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
657
+ }
658
+ },
659
+ "doorbell_pic": {
660
+ "type": "integer",
661
+ "title": "doorbell_pic",
662
+ "condition": {
663
+ "functionBody": "return ['sp'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
664
+ }
665
+ },
666
+ "doorbell_ring_exist": {
667
+ "type": "integer",
668
+ "title": "doorbell_ring_exist",
669
+ "condition": {
670
+ "functionBody": "return ['sp'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
671
+ }
672
+ },
673
+ "doorbell_volume_value": {
674
+ "type": "integer",
675
+ "title": "doorbell_volume_value",
676
+ "condition": {
677
+ "functionBody": "return ['wxml'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
678
+ }
679
+ },
680
+ "doorcontact_state": {
681
+ "type": "integer",
682
+ "title": "doorcontact_state",
683
+ "condition": {
684
+ "functionBody": "return ['ckmkzq', 'mcs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
685
+ }
686
+ },
687
+ "fan_direction": {
688
+ "type": "integer",
689
+ "title": "fan_direction",
690
+ "condition": {
691
+ "functionBody": "return ['fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
692
+ }
693
+ },
694
+ "fan_speed": {
695
+ "type": "integer",
696
+ "title": "fan_speed",
697
+ "condition": {
698
+ "functionBody": "return ['fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
699
+ }
700
+ },
701
+ "fan_speed_enum": {
702
+ "type": "integer",
703
+ "title": "fan_speed_enum",
704
+ "condition": {
705
+ "functionBody": "return ['cs', 'fs', 'kj', 'kt', 'yyj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
706
+ }
707
+ },
708
+ "feed_report": {
709
+ "type": "integer",
710
+ "title": "feed_report",
711
+ "condition": {
712
+ "functionBody": "return ['cwwsq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
713
+ }
714
+ },
715
+ "feed_state": {
716
+ "type": "integer",
717
+ "title": "feed_state",
718
+ "condition": {
719
+ "functionBody": "return ['cwwsq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
720
+ }
721
+ },
722
+ "floodlight_lightness": {
723
+ "type": "integer",
724
+ "title": "floodlight_lightness",
725
+ "condition": {
726
+ "functionBody": "return ['sp'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
727
+ }
728
+ },
729
+ "floodlight_switch": {
730
+ "type": "integer",
731
+ "title": "floodlight_switch",
732
+ "condition": {
733
+ "functionBody": "return ['sp'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
734
+ }
735
+ },
736
+ "gas_sensor_status": {
737
+ "type": "integer",
738
+ "title": "gas_sensor_status",
739
+ "condition": {
740
+ "functionBody": "return ['rqbj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
741
+ }
742
+ },
743
+ "humidity_current": {
744
+ "type": "integer",
745
+ "title": "humidity_current",
746
+ "condition": {
747
+ "functionBody": "return ['jsq', 'kt'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
748
+ }
749
+ },
750
+ "humidity_indoor": {
751
+ "type": "integer",
752
+ "title": "humidity_indoor",
753
+ "condition": {
754
+ "functionBody": "return ['cs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
755
+ }
756
+ },
757
+ "humidity_set": {
758
+ "type": "integer",
759
+ "title": "humidity_set",
760
+ "condition": {
761
+ "functionBody": "return ['jsq', 'kt'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
762
+ }
763
+ },
764
+ "level": {
765
+ "type": "integer",
766
+ "title": "level",
767
+ "condition": {
768
+ "functionBody": "return ['xxj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
769
+ }
770
+ },
771
+ "light": {
772
+ "type": "integer",
773
+ "title": "light",
774
+ "condition": {
775
+ "functionBody": "return ['cwwsq', 'fs', 'yyj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
776
+ }
777
+ },
778
+ "lock": {
779
+ "type": "integer",
780
+ "title": "lock",
781
+ "condition": {
782
+ "functionBody": "return ['kj', 'kt', 'qn', 'qn_old', 'yyj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
783
+ }
784
+ },
785
+ "lock_motor_state": {
786
+ "type": "integer",
787
+ "title": "lock_motor_state",
788
+ "condition": {
789
+ "functionBody": "return ['ms'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
790
+ }
791
+ },
792
+ "manual_feed": {
793
+ "type": "integer",
794
+ "title": "manual_feed",
795
+ "condition": {
796
+ "functionBody": "return ['cwwsq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
797
+ }
798
+ },
799
+ "master_mode": {
800
+ "type": "integer",
801
+ "title": "master_mode",
802
+ "condition": {
803
+ "functionBody": "return ['mal'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
804
+ }
805
+ },
806
+ "meal_plan": {
807
+ "type": "integer",
808
+ "title": "meal_plan",
809
+ "condition": {
810
+ "functionBody": "return ['cwwsq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
811
+ }
812
+ },
813
+ "mode": {
814
+ "type": "integer",
815
+ "title": "mode",
816
+ "condition": {
817
+ "functionBody": "return ['kj', 'kt', 'mjj', 'wk', 'xxj', 'yyj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
818
+ }
819
+ },
820
+ "motion_switch": {
821
+ "type": "integer",
822
+ "title": "motion_switch",
823
+ "condition": {
824
+ "functionBody": "return ['sp'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
825
+ }
826
+ },
827
+ "movement_detect_pic": {
828
+ "type": "integer",
829
+ "title": "movement_detect_pic",
830
+ "condition": {
831
+ "functionBody": "return ['sp'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
832
+ }
833
+ },
834
+ "open_close": {
835
+ "type": "integer",
836
+ "title": "open_close",
837
+ "condition": {
838
+ "functionBody": "return ['ms'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
839
+ }
840
+ },
841
+ "percent_control": {
842
+ "type": "integer",
843
+ "title": "percent_control",
844
+ "condition": {
845
+ "functionBody": "return ['mg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
846
+ }
847
+ },
848
+ "percent_state": {
849
+ "type": "integer",
850
+ "title": "percent_state",
851
+ "condition": {
852
+ "functionBody": "return ['mg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
853
+ }
854
+ },
855
+ "pir": {
856
+ "type": "integer",
857
+ "title": "pir",
858
+ "condition": {
859
+ "functionBody": "return ['pir'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
860
+ }
861
+ },
862
+ "pir_state": {
863
+ "type": "integer",
864
+ "title": "pir_state",
865
+ "condition": {
866
+ "functionBody": "return ['dj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
867
+ }
868
+ },
869
+ "pm10_value": {
870
+ "type": "integer",
871
+ "title": "pm10_value",
872
+ "condition": {
873
+ "functionBody": "return ['pm25'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
874
+ }
875
+ },
876
+ "pm25": {
877
+ "type": "integer",
878
+ "title": "pm25",
879
+ "condition": {
880
+ "functionBody": "return ['kj', 'yyj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
881
+ }
882
+ },
883
+ "pm25_value": {
884
+ "type": "integer",
885
+ "title": "pm25_value",
886
+ "condition": {
887
+ "functionBody": "return ['pm25'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
888
+ }
889
+ },
890
+ "position": {
891
+ "type": "integer",
892
+ "title": "position",
893
+ "condition": {
894
+ "functionBody": "return ['mg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
895
+ }
896
+ },
897
+ "presence_state": {
898
+ "type": "integer",
899
+ "title": "presence_state",
900
+ "condition": {
901
+ "functionBody": "return ['hps'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
902
+ }
903
+ },
904
+ "quick_feed": {
905
+ "type": "integer",
906
+ "title": "quick_feed",
907
+ "condition": {
908
+ "functionBody": "return ['cwwsq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
909
+ }
910
+ },
911
+ "shake": {
912
+ "type": "integer",
913
+ "title": "shake",
914
+ "condition": {
915
+ "functionBody": "return ['qn', 'qn_old'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
916
+ }
917
+ },
918
+ "shock_state": {
919
+ "type": "integer",
920
+ "title": "shock_state",
921
+ "condition": {
922
+ "functionBody": "return ['zd'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
923
+ }
924
+ },
925
+ "slow_feed": {
926
+ "type": "integer",
927
+ "title": "slow_feed",
928
+ "condition": {
929
+ "functionBody": "return ['cwwsq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
930
+ }
931
+ },
932
+ "smoke_sensor_status": {
933
+ "type": "integer",
934
+ "title": "smoke_sensor_status",
935
+ "condition": {
936
+ "functionBody": "return ['ywbj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
937
+ }
938
+ },
939
+ "sos_state": {
940
+ "type": "integer",
941
+ "title": "sos_state",
942
+ "condition": {
943
+ "functionBody": "return ['mal'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
944
+ }
945
+ },
946
+ "speed": {
947
+ "type": "integer",
948
+ "title": "speed",
949
+ "condition": {
950
+ "functionBody": "return ['kj', 'yyj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
951
+ }
952
+ },
953
+ "swing": {
954
+ "type": "integer",
955
+ "title": "swing",
956
+ "condition": {
957
+ "functionBody": "return ['cs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
958
+ }
959
+ },
960
+ "switch": {
961
+ "type": "integer",
962
+ "title": "switch",
963
+ "condition": {
964
+ "functionBody": "return ['cs', 'cwwsq', 'cz', 'dj', 'dlq', 'ggq', 'jsq', 'kj', 'kt', 'mjj', 'qn', 'qn_old', 'tgq', 'wk', 'xxj', 'yyj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
965
+ }
966
+ },
967
+ "switch_1": {
968
+ "type": "integer",
969
+ "title": "switch_1",
970
+ "condition": {
971
+ "functionBody": "return ['ckmkzq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
972
+ }
973
+ },
974
+ "switch_fan": {
975
+ "type": "integer",
976
+ "title": "switch_fan",
977
+ "condition": {
978
+ "functionBody": "return ['fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
979
+ }
980
+ },
981
+ "switch_horizontal": {
982
+ "type": "integer",
983
+ "title": "switch_horizontal",
984
+ "condition": {
985
+ "functionBody": "return ['fs', 'kt'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
986
+ }
987
+ },
988
+ "switch_inching": {
989
+ "type": "integer",
990
+ "title": "switch_inching",
991
+ "condition": {
992
+ "functionBody": "return ['cz', 'dlq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
993
+ }
994
+ },
995
+ "switch_led": {
996
+ "type": "integer",
997
+ "title": "switch_led",
998
+ "condition": {
999
+ "functionBody": "return ['bzyd', 'dj', 'jsq', 'xxj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
1000
+ }
1001
+ },
1002
+ "switch_mode1": {
1003
+ "type": "integer",
1004
+ "title": "switch_mode1",
1005
+ "condition": {
1006
+ "functionBody": "return ['wxkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
1007
+ }
1008
+ },
1009
+ "switch_music": {
1010
+ "type": "integer",
1011
+ "title": "switch_music",
1012
+ "condition": {
1013
+ "functionBody": "return ['bzyd'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
1014
+ }
1015
+ },
1016
+ "switch_pir": {
1017
+ "type": "integer",
1018
+ "title": "switch_pir",
1019
+ "condition": {
1020
+ "functionBody": "return ['dj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
1021
+ }
1022
+ },
1023
+ "switch_sound": {
1024
+ "type": "integer",
1025
+ "title": "switch_sound",
1026
+ "condition": {
1027
+ "functionBody": "return ['xxj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
1028
+ }
1029
+ },
1030
+ "switch_spray": {
1031
+ "type": "integer",
1032
+ "title": "switch_spray",
1033
+ "condition": {
1034
+ "functionBody": "return ['xxj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
1035
+ }
1036
+ },
1037
+ "temp_current": {
1038
+ "type": "integer",
1039
+ "title": "temp_current",
1040
+ "condition": {
1041
+ "functionBody": "return ['jsq', 'kt', 'mjj', 'qn', 'qn_old', 'wk'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
1042
+ }
1043
+ },
1044
+ "temp_indoor": {
1045
+ "type": "integer",
1046
+ "title": "temp_indoor",
1047
+ "condition": {
1048
+ "functionBody": "return ['cs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
1049
+ }
1050
+ },
1051
+ "temp_set": {
1052
+ "type": "integer",
1053
+ "title": "temp_set",
1054
+ "condition": {
1055
+ "functionBody": "return ['kt', 'mjj', 'qn', 'qn_old', 'wk'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
1056
+ }
1057
+ },
1058
+ "temp_unit_convert": {
1059
+ "type": "integer",
1060
+ "title": "temp_unit_convert",
1061
+ "condition": {
1062
+ "functionBody": "return ['kt', 'mjj', 'qn', 'qn_old', 'wk'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
1063
+ }
1064
+ },
1065
+ "temp_value": {
1066
+ "type": "integer",
1067
+ "title": "temp_value",
1068
+ "condition": {
1069
+ "functionBody": "return ['dj', 'fs', 'yyj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
1070
+ }
1071
+ },
1072
+ "temp_value_v2": {
1073
+ "type": "integer",
1074
+ "title": "temp_value_v2",
1075
+ "condition": {
1076
+ "functionBody": "return ['dj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
1077
+ }
1078
+ },
1079
+ "tvoc": {
1080
+ "type": "integer",
1081
+ "title": "tvoc",
1082
+ "condition": {
1083
+ "functionBody": "return ['kj', 'yyj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
1084
+ }
1085
+ },
1086
+ "va_humidity": {
1087
+ "type": "integer",
1088
+ "title": "va_humidity",
1089
+ "condition": {
1090
+ "functionBody": "return ['cz', 'dlq', 'pm25', 'wnykq', 'wsdcg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
1091
+ }
1092
+ },
1093
+ "va_temperature": {
1094
+ "type": "integer",
1095
+ "title": "va_temperature",
1096
+ "condition": {
1097
+ "functionBody": "return ['cz', 'dlq', 'pm25', 'wnykq', 'wsdcg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
1098
+ }
1099
+ },
1100
+ "voc_value": {
1101
+ "type": "integer",
1102
+ "title": "voc_value",
1103
+ "condition": {
1104
+ "functionBody": "return ['pm25'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
1105
+ }
1106
+ },
1107
+ "work_mode": {
1108
+ "type": "integer",
1109
+ "title": "work_mode",
1110
+ "condition": {
1111
+ "functionBody": "return ['dj', 'fs', 'jsq', 'xxj', 'yyj'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
1112
+ }
1113
+ },
1114
+ "work_state": {
1115
+ "type": "integer",
1116
+ "title": "work_state",
1117
+ "condition": {
1118
+ "functionBody": "return ['mjj', 'qn', 'qn_old', 'wk'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
1119
+ }
1120
+ },
1121
+ "work_status": {
1122
+ "type": "integer",
1123
+ "title": "work_status",
1124
+ "condition": {
1125
+ "functionBody": "return ['kt'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
1126
+ }
1127
+ }
423
1128
  }
424
1129
  },
425
1130
  "outletCount": {
@@ -463,326 +1168,6 @@
463
1168
  "condition": {
464
1169
  "functionBody": "return ((model.local && model.local.devices && model.local.devices[arrayIndices[0]]) ? model.local.devices[arrayIndices[0]].parentDeviceId : undefined) !== undefined && ((model.local && model.local.devices && model.local.devices[arrayIndices[0]]) ? model.local.devices[arrayIndices[0]].parentDeviceId : undefined) !== '';"
465
1170
  }
466
- },
467
- "outlets": {
468
- "type": "array",
469
- "title": "Outlets",
470
- "orderable": false,
471
- "items": {
472
- "type": "object",
473
- "properties": {
474
- "name": {
475
- "type": "string"
476
- },
477
- "dp": {
478
- "type": "integer"
479
- }
480
- }
481
- },
482
- "condition": {
483
- "functionBody": "return ['cz', 'pc', 'wkcz'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
484
- }
485
- },
486
- "dpPower": {
487
- "type": "integer",
488
- "title": "Power DP",
489
- "placeholder": 1,
490
- "condition": { "functionBody": "return ['cz', 'pc', 'wkcz', 'dj', 'dsd', 'xdd', 'tgq', 'tgkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
491
- },
492
- "dpBrightness": {
493
- "type": "integer",
494
- "title": "Brightness DP",
495
- "placeholder": 2,
496
- "condition": { "functionBody": "return ['dj', 'dsd', 'xdd', 'tgq', 'tgkg', 'fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
497
- },
498
- "dpColorTemperature": {
499
- "type": "integer",
500
- "title": "Color Temperature DP",
501
- "placeholder": 3,
502
- "condition": { "functionBody": "return ['dj', 'dsd', 'xdd', 'tgq', 'tgkg', 'fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
503
- },
504
- "minWhiteColor": {
505
- "type": "integer",
506
- "title": "Min White Color",
507
- "placeholder": 140,
508
- "condition": { "functionBody": "return ['dj', 'dsd', 'xdd', 'tgq', 'tgkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
509
- },
510
- "maxWhiteColor": {
511
- "type": "integer",
512
- "title": "Max White Color",
513
- "placeholder": 400,
514
- "condition": { "functionBody": "return ['dj', 'dsd', 'xdd', 'tgq', 'tgkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
515
- },
516
- "dpMode": {
517
- "type": "integer",
518
- "title": "Mode DP",
519
- "placeholder": 2,
520
- "condition": { "functionBody": "return ['dj', 'dsd', 'xdd', 'tgq', 'tgkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
521
- },
522
- "dpColor": {
523
- "type": "integer",
524
- "title": "Color DP",
525
- "placeholder": 5,
526
- "condition": { "functionBody": "return ['dj', 'dsd', 'xdd', 'tgq', 'tgkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
527
- },
528
- "colorFunction": {
529
- "type": "string",
530
- "title": "Color Function",
531
- "placeholder": "HEXHSB",
532
- "condition": { "functionBody": "return ['dj', 'dsd', 'xdd', 'tgq', 'tgkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
533
- },
534
- "scaleBrightness": {
535
- "type": "integer",
536
- "title": "Scale Brightness",
537
- "placeholder": 255,
538
- "condition": { "functionBody": "return ['dj', 'dsd', 'xdd', 'tgq', 'tgkg', 'fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
539
- },
540
- "scaleWhiteColor": {
541
- "type": "integer",
542
- "title": "Scale White Color",
543
- "placeholder": 255,
544
- "condition": { "functionBody": "return ['dj', 'dsd', 'xdd', 'tgq', 'tgkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
545
- },
546
- "voltsId": {
547
- "type": "integer",
548
- "title": "Voltage DP",
549
- "placeholder": 9,
550
- "condition": { "functionBody": "return ['cz', 'pc', 'wkcz'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
551
- },
552
- "ampsId": {
553
- "type": "integer",
554
- "title": "Amperage DP",
555
- "placeholder": 8,
556
- "condition": { "functionBody": "return ['cz', 'pc', 'wkcz'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
557
- },
558
- "wattsId": {
559
- "type": "integer",
560
- "title": "Power DP",
561
- "placeholder": 7,
562
- "condition": { "functionBody": "return ['cz', 'pc', 'wkcz'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"}
563
- },
564
- "voltsDivisor": {
565
- "type": "integer",
566
- "title": "Voltage Divisor",
567
- "placeholder": 10,
568
- "condition": { "functionBody": "return ['cz', 'pc', 'wkcz'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
569
- },
570
- "ampsDivisor": {
571
- "type": "integer",
572
- "title": "Amperage Divisor",
573
- "placeholder": 1000,
574
- "condition": { "functionBody": "return ['cz', 'pc', 'wkcz'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
575
- },
576
- "wattsDivisor": {
577
- "type": "integer",
578
- "title": "Power Divisor",
579
- "placeholder": 10,
580
- "condition": { "functionBody": "return ['cz', 'pc', 'wkcz'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
581
- },
582
- "noCool": {
583
- "type": "boolean",
584
- "title": "No Cool Mode",
585
- "condition": { "functionBody": "return ['kt', 'ktkzq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
586
- },
587
- "noHeat": {
588
- "type": "boolean",
589
- "title": "No Heat Mode",
590
- "condition": { "functionBody": "return ['kt', 'ktkzq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
591
- },
592
- "cmdCool": {
593
- "type": "string",
594
- "title": "Cool Command",
595
- "placeholder": "COOL",
596
- "condition": { "functionBody": "return ['kt', 'ktkzq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
597
- },
598
- "cmdHeat": {
599
- "type": "string",
600
- "title": "Heat Command",
601
- "placeholder": "HEAT",
602
- "condition": { "functionBody": "return ['kt', 'ktkzq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
603
- },
604
- "noSwing": {
605
- "type": "boolean",
606
- "title": "No Swing Mode",
607
- "condition": { "functionBody": "return ['kt', 'ktkzq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
608
- },
609
- "minTemperature": {
610
- "type": "integer",
611
- "title": "Min Temperature",
612
- "placeholder": 15,
613
- "condition": { "functionBody": "return ['kt', 'ktkzq', 'qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
614
- },
615
- "maxTemperature": {
616
- "type": "integer",
617
- "title": "Max Temperature",
618
- "placeholder": 40,
619
- "condition": { "functionBody": "return ['kt', 'ktkzq', 'qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
620
- },
621
- "minTemperatureSteps": {
622
- "type": "integer",
623
- "title": "Min Temperature Steps",
624
- "placeholder": 1,
625
- "condition": { "functionBody": "return ['kt', 'ktkzq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
626
- },
627
- "dpActive": {
628
- "type": "integer",
629
- "title": "Active DP",
630
- "placeholder": 7,
631
- "condition": { "functionBody": "return ['qn', 'fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
632
- },
633
- "dpDesiredTemperature": {
634
- "type": "integer",
635
- "title": "Desired Temperature DP",
636
- "placeholder": 2,
637
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
638
- },
639
- "dpCurrentTemperature": {
640
- "type": "integer",
641
- "title": "Current Temperature DP",
642
- "placeholder": 3,
643
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
644
- },
645
- "dpAction": {
646
- "type": "integer",
647
- "title": "Action DP",
648
- "placeholder": 1,
649
- "condition": { "functionBody": "return ['ckmkzq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
650
- },
651
- "dpStatus": {
652
- "type": "integer",
653
- "title": "Status DP",
654
- "placeholder": 2,
655
- "condition": { "functionBody": "return ['ckmkzq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
656
- },
657
- "flipState": {
658
- "type": "boolean",
659
- "title": "Flip State",
660
- "condition": { "functionBody": "return ['ckmkzq', 'cl', 'clkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
661
- },
662
- "timeToOpen": {
663
- "type": "integer",
664
- "title": "Time to Open (seconds)",
665
- "placeholder": 45,
666
- "condition": { "functionBody": "return ['cl', 'clkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
667
- },
668
- "timeToTighten": {
669
- "type": "integer",
670
- "title": "Time to Tighten (seconds)",
671
- "placeholder": 0,
672
- "condition": { "functionBody": "return ['cl', 'clkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
673
- },
674
- "timeToClose": {
675
- "type": "integer",
676
- "title": "Time to Close (seconds)",
677
- "placeholder": 30,
678
- "description": "Time in seconds for blinds to fully open or close",
679
- "condition": { "functionBody": "return ['cl', 'clkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
680
- },
681
- "dpLight": {
682
- "type": "integer",
683
- "title": "Light DP",
684
- "placeholder": 1,
685
- "condition": { "functionBody": "return ['cz', 'pc', 'wkcz'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
686
- },
687
- "dpBlindType": {
688
- "type": "integer",
689
- "title": "Blind Type DP",
690
- "placeholder": 1,
691
- "condition": { "functionBody": "return ['cl', 'clkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
692
- },
693
- "dpLightOn": {
694
- "type": "integer",
695
- "title": "Light On DP",
696
- "placeholder": 9,
697
- "condition": { "functionBody": "return ['fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
698
- },
699
- "dpFanOn": {
700
- "type": "integer",
701
- "title": "Fan On DP",
702
- "placeholder": 1,
703
- "condition": { "functionBody": "return ['fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
704
- },
705
- "dpRotationSpeed": {
706
- "type": "integer",
707
- "title": "Rotation Speed DP",
708
- "placeholder": 4,
709
- "condition": { "functionBody": "return ['qn', 'fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
710
- },
711
- "dpRotationDirection": {
712
- "type": "integer",
713
- "title": "Rotation Direction DP",
714
- "placeholder": 63,
715
- "condition": { "functionBody": "return ['fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
716
- },
717
- "maxSpeed": {
718
- "type": "integer",
719
- "title": "Max Speed",
720
- "placeholder": 3,
721
- "condition": { "functionBody": "return ['fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
722
- },
723
- "fanDefaultSpeed": {
724
- "type": "integer",
725
- "title": "Fan Default Speed",
726
- "placeholder": 1,
727
- "condition": { "functionBody": "return ['fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
728
- },
729
- "useStrings": {
730
- "type": "boolean",
731
- "title": "Use Strings",
732
- "placeholder": true,
733
- "condition": { "functionBody": "return ['fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
734
- },
735
- "dpChildLock": {
736
- "type": "integer",
737
- "title": "Child Lock DP",
738
- "placeholder": 6,
739
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
740
- },
741
- "dpTemperatureDisplayUnits": {
742
- "type": "integer",
743
- "title": "Temperature Display Units DP",
744
- "placeholder": 19,
745
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
746
- },
747
- "cmdLow": {
748
- "type": "string",
749
- "title": "Low Command",
750
- "placeholder": "Low",
751
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
752
- },
753
- "cmdHigh": {
754
- "type": "string",
755
- "title": "High Command",
756
- "placeholder": "High",
757
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
758
- },
759
- "noChildLock": {
760
- "type": "boolean",
761
- "title": "No Child Lock",
762
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
763
- },
764
- "noTemperatureUnit": {
765
- "type": "boolean",
766
- "title": "No Temperature Unit",
767
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
768
- },
769
- "temperatureDivisor": {
770
- "type": "integer",
771
- "title": "Temperature Divisor",
772
- "placeholder": 1,
773
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
774
- },
775
- "thresholdTemperatureDivisor": {
776
- "type": "integer",
777
- "title": "Threshold Temperature Divisor",
778
- "placeholder": 1,
779
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
780
- },
781
- "temperatureOffset": {
782
- "type": "integer",
783
- "title": "Temperature Offset",
784
- "placeholder": 0,
785
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
786
1171
  }
787
1172
  }
788
1173
  }