@homebridge-plugins/homebridge-tuya 3.0.0-beta.11 → 3.0.0-beta.13

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
  ]
@@ -194,6 +256,7 @@
194
256
  "options.deviceOverrides[].id",
195
257
  "options.deviceOverrides[].category",
196
258
  "options.deviceOverrides[].unbridged",
259
+ "options.deviceOverrides[].adaptiveLighting",
197
260
  "options.deviceOverrides[].configFor",
198
261
  {
199
262
  "key": "options.deviceOverrides[].schema",
@@ -356,27 +419,42 @@
356
419
  { "title": "Smart Outlet / Power Strip", "enum": ["cz"] },
357
420
  { "title": "Wireless Remote Switch", "enum": ["wxkg"] },
358
421
  { "title": "Scene Switch", "enum": ["cjkg"] },
422
+ { "title": "WhiteNoiseLight", "enum": ["bzyd"] },
359
423
  { "title": "Air Conditioner", "enum": ["kt"] },
360
424
  { "title": "Heater / Convector", "enum": ["qn"] },
361
425
  { "title": "Air Purifier", "enum": ["kj"] },
362
- { "title": "Humidifier / Diffuser", "enum": ["xxj"] },
426
+ { "title": "Diffuser", "enum": ["xxj"] },
363
427
  { "title": "Garage Door", "enum": ["ckmkzq"] },
364
- { "title": "Window Covering / Blind", "enum": ["cl"] },
365
- { "title": "Smart Lock", "enum": ["ms"] },
428
+ { "title": "Blind", "enum": ["mg"] },
429
+ { "title": "Window Covering", "enum": ["cl"] },
430
+ { "title": "Pet Feeder", "enum": ["cwwsq"] },
366
431
  { "title": "Window / Door Sensor", "enum": ["mc"] },
367
- { "title": "Contact Sensor", "enum": ["hj"] },
368
- { "title": "Leak Sensor", "enum": ["yc"] },
369
- { "title": "Motion Sensor", "enum": ["pir"] },
370
- { "title": "Smoke Sensor", "enum": ["yw"] },
371
- { "title": "Temperature/Humidity Sensor", "enum": ["wsdcz"] },
372
- { "title": "Light Sensor", "enum": ["gd"] },
373
- { "title": "Air Quality Sensor", "enum": ["kqbj"] },
374
432
  { "title": "Thermostat", "enum": ["wk"] },
375
433
  { "title": "Towel Rack / Warmer", "enum": ["mjj"] },
434
+ { "title": "Valve", "enum": ["ggq"] },
435
+ { "title": "Humidifier", "enum": ["jsq"] },
436
+ { "title": "Dehumidifier", "enum": ["cs"] },
376
437
  { "title": "Fan", "enum": ["fs"] },
377
- { "title": "Doorbell / Camera", "enum": ["mb"] },
378
- { "title": "Pet Feeder", "enum": ["cwwsq"] },
379
- { "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_"] },
380
458
  { "title": "Custom / Other", "enum": ["other"] }
381
459
  ]
382
460
  },
@@ -410,15 +488,643 @@
410
488
  "type": "string",
411
489
  "condition": { "functionBody": "return !!model.local?.devices?.[arrayIndices[0]]?.category;" }
412
490
  },
413
- "dpMapping": {
491
+ "dpMappingArray": {
414
492
  "title": "Custom DP Mapping (Advanced)",
415
- "description": "Override default DP-to-function mappings as JSON. Example: {\"switch_1\": 1, \"bright_value\": 2, \"temp_value\": 3}",
416
- "type": "object",
417
- "additionalProperties": {
418
- "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
+ }
419
508
  },
420
509
  "condition": {
421
- "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
+ }
422
1128
  }
423
1129
  },
424
1130
  "outletCount": {
@@ -462,326 +1168,6 @@
462
1168
  "condition": {
463
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) !== '';"
464
1170
  }
465
- },
466
- "outlets": {
467
- "type": "array",
468
- "title": "Outlets",
469
- "orderable": false,
470
- "items": {
471
- "type": "object",
472
- "properties": {
473
- "name": {
474
- "type": "string"
475
- },
476
- "dp": {
477
- "type": "integer"
478
- }
479
- }
480
- },
481
- "condition": {
482
- "functionBody": "return ['cz', 'pc', 'wkcz'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"
483
- }
484
- },
485
- "dpPower": {
486
- "type": "integer",
487
- "title": "Power DP",
488
- "placeholder": 1,
489
- "condition": { "functionBody": "return ['cz', 'pc', 'wkcz', 'dj', 'dsd', 'xdd', 'tgq', 'tgkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
490
- },
491
- "dpBrightness": {
492
- "type": "integer",
493
- "title": "Brightness DP",
494
- "placeholder": 2,
495
- "condition": { "functionBody": "return ['dj', 'dsd', 'xdd', 'tgq', 'tgkg', 'fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
496
- },
497
- "dpColorTemperature": {
498
- "type": "integer",
499
- "title": "Color Temperature DP",
500
- "placeholder": 3,
501
- "condition": { "functionBody": "return ['dj', 'dsd', 'xdd', 'tgq', 'tgkg', 'fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
502
- },
503
- "minWhiteColor": {
504
- "type": "integer",
505
- "title": "Min White Color",
506
- "placeholder": 140,
507
- "condition": { "functionBody": "return ['dj', 'dsd', 'xdd', 'tgq', 'tgkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
508
- },
509
- "maxWhiteColor": {
510
- "type": "integer",
511
- "title": "Max White Color",
512
- "placeholder": 400,
513
- "condition": { "functionBody": "return ['dj', 'dsd', 'xdd', 'tgq', 'tgkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
514
- },
515
- "dpMode": {
516
- "type": "integer",
517
- "title": "Mode DP",
518
- "placeholder": 2,
519
- "condition": { "functionBody": "return ['dj', 'dsd', 'xdd', 'tgq', 'tgkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
520
- },
521
- "dpColor": {
522
- "type": "integer",
523
- "title": "Color DP",
524
- "placeholder": 5,
525
- "condition": { "functionBody": "return ['dj', 'dsd', 'xdd', 'tgq', 'tgkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
526
- },
527
- "colorFunction": {
528
- "type": "string",
529
- "title": "Color Function",
530
- "placeholder": "HEXHSB",
531
- "condition": { "functionBody": "return ['dj', 'dsd', 'xdd', 'tgq', 'tgkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
532
- },
533
- "scaleBrightness": {
534
- "type": "integer",
535
- "title": "Scale Brightness",
536
- "placeholder": 255,
537
- "condition": { "functionBody": "return ['dj', 'dsd', 'xdd', 'tgq', 'tgkg', 'fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
538
- },
539
- "scaleWhiteColor": {
540
- "type": "integer",
541
- "title": "Scale White Color",
542
- "placeholder": 255,
543
- "condition": { "functionBody": "return ['dj', 'dsd', 'xdd', 'tgq', 'tgkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
544
- },
545
- "voltsId": {
546
- "type": "integer",
547
- "title": "Voltage DP",
548
- "placeholder": 9,
549
- "condition": { "functionBody": "return ['cz', 'pc', 'wkcz'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
550
- },
551
- "ampsId": {
552
- "type": "integer",
553
- "title": "Amperage DP",
554
- "placeholder": 8,
555
- "condition": { "functionBody": "return ['cz', 'pc', 'wkcz'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
556
- },
557
- "wattsId": {
558
- "type": "integer",
559
- "title": "Power DP",
560
- "placeholder": 7,
561
- "condition": { "functionBody": "return ['cz', 'pc', 'wkcz'].includes(model.local?.devices?.[arrayIndices[0]]?.category);"}
562
- },
563
- "voltsDivisor": {
564
- "type": "integer",
565
- "title": "Voltage Divisor",
566
- "placeholder": 10,
567
- "condition": { "functionBody": "return ['cz', 'pc', 'wkcz'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
568
- },
569
- "ampsDivisor": {
570
- "type": "integer",
571
- "title": "Amperage Divisor",
572
- "placeholder": 1000,
573
- "condition": { "functionBody": "return ['cz', 'pc', 'wkcz'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
574
- },
575
- "wattsDivisor": {
576
- "type": "integer",
577
- "title": "Power Divisor",
578
- "placeholder": 10,
579
- "condition": { "functionBody": "return ['cz', 'pc', 'wkcz'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
580
- },
581
- "noCool": {
582
- "type": "boolean",
583
- "title": "No Cool Mode",
584
- "condition": { "functionBody": "return ['kt', 'ktkzq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
585
- },
586
- "noHeat": {
587
- "type": "boolean",
588
- "title": "No Heat Mode",
589
- "condition": { "functionBody": "return ['kt', 'ktkzq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
590
- },
591
- "cmdCool": {
592
- "type": "string",
593
- "title": "Cool Command",
594
- "placeholder": "COOL",
595
- "condition": { "functionBody": "return ['kt', 'ktkzq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
596
- },
597
- "cmdHeat": {
598
- "type": "string",
599
- "title": "Heat Command",
600
- "placeholder": "HEAT",
601
- "condition": { "functionBody": "return ['kt', 'ktkzq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
602
- },
603
- "noSwing": {
604
- "type": "boolean",
605
- "title": "No Swing Mode",
606
- "condition": { "functionBody": "return ['kt', 'ktkzq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
607
- },
608
- "minTemperature": {
609
- "type": "integer",
610
- "title": "Min Temperature",
611
- "placeholder": 15,
612
- "condition": { "functionBody": "return ['kt', 'ktkzq', 'qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
613
- },
614
- "maxTemperature": {
615
- "type": "integer",
616
- "title": "Max Temperature",
617
- "placeholder": 40,
618
- "condition": { "functionBody": "return ['kt', 'ktkzq', 'qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
619
- },
620
- "minTemperatureSteps": {
621
- "type": "integer",
622
- "title": "Min Temperature Steps",
623
- "placeholder": 1,
624
- "condition": { "functionBody": "return ['kt', 'ktkzq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
625
- },
626
- "dpActive": {
627
- "type": "integer",
628
- "title": "Active DP",
629
- "placeholder": 7,
630
- "condition": { "functionBody": "return ['qn', 'fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
631
- },
632
- "dpDesiredTemperature": {
633
- "type": "integer",
634
- "title": "Desired Temperature DP",
635
- "placeholder": 2,
636
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
637
- },
638
- "dpCurrentTemperature": {
639
- "type": "integer",
640
- "title": "Current Temperature DP",
641
- "placeholder": 3,
642
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
643
- },
644
- "dpAction": {
645
- "type": "integer",
646
- "title": "Action DP",
647
- "placeholder": 1,
648
- "condition": { "functionBody": "return ['ckmkzq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
649
- },
650
- "dpStatus": {
651
- "type": "integer",
652
- "title": "Status DP",
653
- "placeholder": 2,
654
- "condition": { "functionBody": "return ['ckmkzq'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
655
- },
656
- "flipState": {
657
- "type": "boolean",
658
- "title": "Flip State",
659
- "condition": { "functionBody": "return ['ckmkzq', 'cl', 'clkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
660
- },
661
- "timeToOpen": {
662
- "type": "integer",
663
- "title": "Time to Open (seconds)",
664
- "placeholder": 45,
665
- "condition": { "functionBody": "return ['cl', 'clkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
666
- },
667
- "timeToTighten": {
668
- "type": "integer",
669
- "title": "Time to Tighten (seconds)",
670
- "placeholder": 0,
671
- "condition": { "functionBody": "return ['cl', 'clkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
672
- },
673
- "timeToClose": {
674
- "type": "integer",
675
- "title": "Time to Close (seconds)",
676
- "placeholder": 30,
677
- "description": "Time in seconds for blinds to fully open or close",
678
- "condition": { "functionBody": "return ['cl', 'clkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
679
- },
680
- "dpLight": {
681
- "type": "integer",
682
- "title": "Light DP",
683
- "placeholder": 1,
684
- "condition": { "functionBody": "return ['cz', 'pc', 'wkcz'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
685
- },
686
- "dpBlindType": {
687
- "type": "integer",
688
- "title": "Blind Type DP",
689
- "placeholder": 1,
690
- "condition": { "functionBody": "return ['cl', 'clkg'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
691
- },
692
- "dpLightOn": {
693
- "type": "integer",
694
- "title": "Light On DP",
695
- "placeholder": 9,
696
- "condition": { "functionBody": "return ['fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
697
- },
698
- "dpFanOn": {
699
- "type": "integer",
700
- "title": "Fan On DP",
701
- "placeholder": 1,
702
- "condition": { "functionBody": "return ['fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
703
- },
704
- "dpRotationSpeed": {
705
- "type": "integer",
706
- "title": "Rotation Speed DP",
707
- "placeholder": 4,
708
- "condition": { "functionBody": "return ['qn', 'fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
709
- },
710
- "dpRotationDirection": {
711
- "type": "integer",
712
- "title": "Rotation Direction DP",
713
- "placeholder": 63,
714
- "condition": { "functionBody": "return ['fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
715
- },
716
- "maxSpeed": {
717
- "type": "integer",
718
- "title": "Max Speed",
719
- "placeholder": 3,
720
- "condition": { "functionBody": "return ['fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
721
- },
722
- "fanDefaultSpeed": {
723
- "type": "integer",
724
- "title": "Fan Default Speed",
725
- "placeholder": 1,
726
- "condition": { "functionBody": "return ['fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
727
- },
728
- "useStrings": {
729
- "type": "boolean",
730
- "title": "Use Strings",
731
- "placeholder": true,
732
- "condition": { "functionBody": "return ['fs'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
733
- },
734
- "dpChildLock": {
735
- "type": "integer",
736
- "title": "Child Lock DP",
737
- "placeholder": 6,
738
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
739
- },
740
- "dpTemperatureDisplayUnits": {
741
- "type": "integer",
742
- "title": "Temperature Display Units DP",
743
- "placeholder": 19,
744
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
745
- },
746
- "cmdLow": {
747
- "type": "string",
748
- "title": "Low Command",
749
- "placeholder": "Low",
750
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
751
- },
752
- "cmdHigh": {
753
- "type": "string",
754
- "title": "High Command",
755
- "placeholder": "High",
756
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
757
- },
758
- "noChildLock": {
759
- "type": "boolean",
760
- "title": "No Child Lock",
761
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
762
- },
763
- "noTemperatureUnit": {
764
- "type": "boolean",
765
- "title": "No Temperature Unit",
766
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
767
- },
768
- "temperatureDivisor": {
769
- "type": "integer",
770
- "title": "Temperature Divisor",
771
- "placeholder": 1,
772
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
773
- },
774
- "thresholdTemperatureDivisor": {
775
- "type": "integer",
776
- "title": "Threshold Temperature Divisor",
777
- "placeholder": 1,
778
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
779
- },
780
- "temperatureOffset": {
781
- "type": "integer",
782
- "title": "Temperature Offset",
783
- "placeholder": 0,
784
- "condition": { "functionBody": "return ['qn'].includes(model.local?.devices?.[arrayIndices[0]]?.category);" }
785
1171
  }
786
1172
  }
787
1173
  }
@@ -1122,6 +1508,14 @@
1122
1508
  "functionBody": "return (model.options && model.options.deviceOverrides);"
1123
1509
  }
1124
1510
  },
1511
+ "adaptiveLighting": {
1512
+ "title": "Adaptive Lighting",
1513
+ "description": "Enable if your device supports intelligently adjusting the brightness and color of your lights",
1514
+ "type": "boolean",
1515
+ "condition": {
1516
+ "functionBody": "return (['bzyd', 'cwwsq', 'dj', 'dsd', 'xdd', 'fwd', 'dc', 'dd', 'gyd', 'tyndj', 'sxd', 'jsq', 'fs', 'fsd', 'fskg', 'yyj', 'xxj', 'sp'].includes(model?.options?.deviceOverrides?.[arrayIndices[0]]?.category));"
1517
+ }
1518
+ },
1125
1519
  "configFor": {
1126
1520
  "title": "When to apply the configuration",
1127
1521
  "description": "Whether the setting is for devices on Cloud, devices on Local, or used by both.",