Просмотр исходного кода

Add Edison Smart dual-zone CCT ceiling light profile (TREO Mini Spotlight) (#4577)

* Add Edison Smart dual-zone CCT ceiling light profile

* Update Edison Smart dual zone light mode mapping

* Switch Edison Smart DP21 to Scene toggle

* fix (edisonsmart_dualzoneceiling_cctlight): rename file

Follow convention of only using underscores to separate the components brand_model_type in filename.

PR #4577

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
hrko 1 день назад
Родитель
Сommit
e539d7e45d

+ 68 - 0
custom_components/tuya_local/devices/edisonsmart_dualzoneceiling_cctlight.yaml

@@ -0,0 +1,68 @@
+name: Dual zone light
+products:
+  - id: kjuo8stpv9adjkzo
+    manufacturer: Edison Smart
+    model: TREO Mini Spotlight
+entities:
+  - entity: light
+    dps:
+      - id: 20
+        type: boolean
+        name: switch
+      - id: 22
+        name: brightness
+        type: integer
+        range:
+          min: 10
+          max: 1000
+      - id: 23
+        name: color_temp
+        type: integer
+        range:
+          min: 0
+          max: 1000
+        mapping:
+          - target_range:
+              min: 2700
+              max: 6500
+      - id: 104
+        type: string
+        name: effect
+        mapping:
+          - dps_val: up
+            value: Indirect
+          - dps_val: all
+            value: Both
+          - dps_val: down
+            value: Direct
+  - entity: switch
+    name: Scene
+    icon: "mdi:palette"
+    dps:
+      - id: 21
+        type: string
+        name: switch
+        mapping:
+          - dps_val: scene
+            value: true
+          - dps_val: white
+            value: false
+  - entity: text
+    translation_key: scene
+    category: config
+    dps:
+      - id: 25
+        type: hex
+        name: value
+        optional: true
+  - entity: time
+    translation_key: timer
+    category: config
+    dps:
+      - id: 26
+        type: integer
+        name: second
+        optional: true
+        range:
+          min: 0
+          max: 86400