Explorar el Código

Ledkia fan/light: adjustments after feedback

It seems that the iot.tuya.com documentation is misleading.
 - colour_mode is always white, never any of the other values.
 - bulb type is LED, not changeable.
 - color/scene/music are therefore never available.

Issue #234
Jason Rumney hace 3 años
padre
commit
17542c893a
Se han modificado 1 ficheros con 3 adiciones y 64 borrados
  1. 3 64
      custom_components/tuya_local/devices/ledkia_fan_light.yaml

+ 3 - 64
custom_components/tuya_local/devices/ledkia_fan_light.yaml

@@ -8,6 +8,7 @@ primary_entity:
     - id: 62
     - id: 62
       type: integer
       type: integer
       name: speed
       name: speed
+      optional: true
       range:
       range:
         min: 1
         min: 1
         max: 6
         max: 6
@@ -32,24 +33,6 @@ secondary_entities:
               - dps_val: led
               - dps_val: led
                 value: color_temp
                 value: color_temp
               - value: brightness
               - value: brightness
-          - dps_val: colour
-            value: rgbw
-            constraint: light_type
-            conditions:
-              - dps_val: led
-              - invalid: true
-          - dps_val: scene
-            value: colorloop
-            constraint: light_type
-            conditions:
-              - dps_val: led
-              - invalid: true
-          - dps_val: music
-            value: random
-            constraint: light_type
-            conditions:
-              - dps_val: led
-              - invalid: true
       - id: 22
       - id: 22
         type: integer
         type: integer
         name: brightness
         name: brightness
@@ -67,39 +50,11 @@ secondary_entities:
         optional: true
         optional: true
         mapping:
         mapping:
           - invert: true
           - invert: true
-      - id: 24
-        type: hex
-        name: rgbhsv
-        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: 25
-        type: hex
-        name: scene_data
-        optional: true
-      - id: 28
-        type: hex
-        name: control_data
-        optional: true
+            step: 500
       - id: 59
       - id: 59
         type: string
         type: string
         name: light_type
         name: light_type
         optional: true
         optional: true
-        hidden: true
   - entity: number
   - entity: number
     name: Minimum brightness
     name: Minimum brightness
     icon: "mdi:brightness-6"
     icon: "mdi:brightness-6"
@@ -112,24 +67,8 @@ secondary_entities:
         range:
         range:
           min: 10
           min: 10
           max: 1000
           max: 1000
-  - entity: select
-    name: Light Type
-    icon: "mdi:ceiling-fan-light"
-    category: config
-    dps:
-      - id: 59
-        type: string
-        name: option
-        optional: true
-        mapping:
-          - dps_val: led
-            value: LED
-          - dps_val: incandescent
-            value: Incandescent
-          - dps_val: halogen
-            value: Halogen
   - entity: number
   - entity: number
-    name: Timer
+    name: Fan timer
     icon: "mdi:timer"
     icon: "mdi:timer"
     category: config
     category: config
     dps:
     dps: