Explorar el Código

Reiga 52: merge into identical Ovlaim ceiling fan with light config

Even product id was identical
Jason Rumney hace 1 año
padre
commit
abf5d7216a

+ 3 - 2
custom_components/tuya_local/devices/ovlaim_ceiling_fan_light.yaml

@@ -1,7 +1,8 @@
 name: Ceiling fan
+legacy_type: reiga_52_fan_light
 products:
   - id: g0ewlb1vmwqljzji
-    name: Ovlaim FP9805_TAIDE
+    name: Ovlaim FP9805_TAIDE / Reiga 52
 primary_entity:
   entity: fan
   translation_only_key: fan_with_presets
@@ -38,7 +39,7 @@ secondary_entities:
         name: brightness
         type: integer
         range:
-          min: 0
+          min: 2
           max: 100
       - id: 17
         name: color_temp

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

@@ -1,71 +0,0 @@
-name: Ceiling fan with light
-products:
-  - id: g0ewlb1vmwqljzji
-    name: Reiga 52 ceiling fan with light
-primary_entity:
-  entity: fan
-  translation_only_key: fan_with_presets
-  dps:
-    - id: 1
-      type: boolean
-      name: switch
-    - id: 2
-      type: string
-      name: preset_mode
-      mapping:
-        - dps_val: normal
-          value: normal
-        - dps_val: nature
-          value: nature
-        - dps_val: sleep
-          value: sleep
-    - id: 3
-      type: integer
-      name: speed
-      range:
-        min: 1
-        max: 6
-    - id: 8
-      type: string
-      name: direction
-secondary_entities:
-  - entity: select
-    translation_key: timer
-    category: config
-    dps:
-      - id: 22
-        type: string
-        name: option
-        mapping:
-          - dps_val: "off"
-            value: cancel
-          - dps_val: "1hour"
-            value: "1h"
-          - dps_val: "2hour"
-            value: "2h"
-          - dps_val: "4hour"
-            value: "4h"
-          - dps_val: "8hour"
-            value: "8h"
-  - entity: light
-    category: config
-    dps:
-      - id: 15
-        type: boolean
-        name: switch
-      - id: 16
-        type: integer
-        name: brightness
-        range:
-          min: 0
-          max: 255
-      - id: 17
-        type: integer
-        name: color_temp
-        mapping:
-          - target_range:
-              min: 2700
-              max: 6500
-        range:
-          min: 0
-          max: 100