Parcourir la source

Add Tampa LED System

Same dps layout as desk_lamp, but ranges are different.

Issue #686
Jason Rumney il y a 2 ans
Parent
commit
400e0f253b
1 fichiers modifiés avec 57 ajouts et 0 suppressions
  1. 57 0
      custom_components/tuya_local/devices/tampa_led_system.yaml

+ 57 - 0
custom_components/tuya_local/devices/tampa_led_system.yaml

@@ -0,0 +1,57 @@
+name: Lights
+products:
+  - id: ge0bfvco
+    name: Tampa CD-TY-WY05
+primary_entity:
+  entity: light
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 2
+      name: work_mode
+      type: string
+    - id: 3
+      name: brightness
+      type: integer
+      range:
+        min: 0
+        max: 1000
+    - id: 4
+      name: color_temp
+      type: integer
+      range:
+        min: 0
+        max: 1000
+    - id: 6
+      name: scene
+      type: hex
+    - id: 33
+      type: string
+      name: power_off_memory
+secondary_entities:
+  - entity: number
+    name: Timer
+    category: config
+    icon: "mdi:timer"
+    dps:
+      - id: 7
+        type: integer
+        name: value
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: switch
+    name: Do not disturb
+    category: config
+    dps:
+      - id: 34
+        type: boolean
+        name: switch
+        
+
+