zeosson 2 лет назад
Родитель
Сommit
bb1765a9ea

+ 63 - 0
custom_components/tuya_local/devices/feit_light_rgb_bulb.yaml

@@ -0,0 +1,63 @@
+name: Feit RGB Light Bulb
+products:
+  - id: 8cr0olwf9sphi0u4
+    name: Color Lights
+primary_entity:
+  entity: light
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 2
+      type: string
+      name: color_mode
+      optional: true
+      mapping:
+        - dps_val: white
+          value: color_temp
+        - dps_val: colour
+          value: hs
+    - id: 3
+      type: integer
+      name: brightness
+      optional: true
+      range:
+        min: 25
+        max: 255
+    - id: 4
+      type: integer
+      optional: true
+      name: color_temp
+      range:
+        min: 0
+        max: 255
+      mapping:
+        - target_range:
+            min: 1800
+            max: 2700
+    - id: 5
+      type: hex
+      name: rgbhsv
+      optional: true
+      format:
+        - name: r
+          bytes: 1
+        - name: g
+          bytes: 1
+        - name: b
+          bytes: 1
+        - name: h
+          bytes: 2
+          range:
+            min: 0
+            max: 360
+        - name: s
+          bytes: 1
+          range:
+            min: 0
+            max: 255
+        - name: v
+          bytes: 1
+          range:
+            min: 0
+            max: 255

+ 71 - 0
custom_components/tuya_local/devices/peteme_smart_recessed_lighting.yaml

@@ -0,0 +1,71 @@
+name: Peteme Smart Recessed Lighting
+products:
+    - id: sjaun9de
+    name: SIG_DL_RGBCW
+primary_entity:
+  entity: light
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 2
+      name: color_mode
+      type: string
+      optional: true
+      mapping:
+        - dps_val: white
+          value: color_temp
+        - dps_val: colour
+          value: hs
+        - dps_val: scene
+          value: Scene
+        - dps_val: music
+          value: Music
+    - id: 3
+      name: brightness
+      type: integer
+      optional: true
+      range:
+        min: 10
+        max: 1000
+      mapping:
+        - scale: 3.92
+    - id: 4
+      name: color_temp
+      type: integer
+      optional: true
+      range:
+        min: 0
+        max: 1000
+      mapping:
+        - target_range:
+            min: 2700
+            max: 6500
+    - id: 5
+      name: rgbhsv
+      type: hex
+      optional: true
+      format:
+        - name: h
+          bytes: 2
+          range:
+            min: 0
+            max: 360
+        - name: s
+          bytes: 2
+          range:
+            min: 0
+            max: 1000
+        - name: v
+          bytes: 2
+          range:
+            min: 0
+            max: 1000
+    - id: 6
+      name: scene_data
+      type: hex
+      optional: true
+    - id: 8
+      name: music_data
+      type: hex
+      optional: true