Quellcode durchsuchen

Update orison_chanfok_neo_fan_light.yaml

Changes from review.
Incorporated some changes from @RobDehnert
mix_rgbcw left for now, as there is another issue for this type of dp on another device where I hope to make a better decoding of the values.

PR #2129
Jason Rumney vor 1 Jahr
Ursprung
Commit
2f4cc10a7a
1 geänderte Dateien mit 70 neuen und 6 gelöschten Zeilen
  1. 70 6
      custom_components/tuya_local/devices/orison_chanfok_neo_fan_light.yaml

+ 70 - 6
custom_components/tuya_local/devices/orison_chanfok_neo_fan_light.yaml

@@ -1,6 +1,6 @@
-name: Orison Chanfok Neo
+name: Ceiling fan with light
 products:
 products:
-  - id: eba992532f93bb1c009bjw
+  - id: zfwgeelmqcypcdgh
     name: Orison Chanfok Neo
     name: Orison Chanfok Neo
 primary_entity:
 primary_entity:
   entity: fan
   entity: fan
@@ -26,10 +26,6 @@ primary_entity:
     - id: 104
     - id: 104
       type: string
       type: string
       name: direction
       name: direction
-    - id: 103
-      type: integer
-      name: fan_countdown_left
-  
 secondary_entities:
 secondary_entities:
   - entity: light
   - entity: light
     dps:
     dps:
@@ -85,6 +81,10 @@ secondary_entities:
             range:
             range:
               min: 0
               min: 0
               max: 1000
               max: 1000
+      - id: 51
+        type: string
+        optional: true
+        name: mix_rgbcw
   - entity: number
   - entity: number
     name: Light timer
     name: Light timer
     translation_key: timer
     translation_key: timer
@@ -100,3 +100,67 @@ secondary_entities:
           - scale: 60
           - scale: 60
             step: 60
             step: 60
         unit: min
         unit: min
+  - entity: number
+    name: Fan timer
+    translation_key: timer
+    category: config
+    dps:
+      - id: 103
+        type: integer
+        name: value
+        range:
+          min: 0
+          max: 540
+        unit: min
+  - entity: switch
+    translation_key: keytone
+    category: config
+    dps:
+      - id: 101
+        type: boolean
+        name: switch
+  - entity: light
+    translation_key: nightlight
+    category: config
+    dps:
+      - id: 53
+        type: boolean
+        name: switch
+  - entity: select
+    name: Scene
+    category: config
+    icon: "mdi:palette"
+    dps:
+      - id: 36
+        type: string
+        name: option
+        optional: true
+        mapping:
+          - dps_val: "AAABAQIODQAAyAAAAAA="
+            value: Night
+          - dps_val: "AAEBAQIODQAD6AH0AAA="
+            value: Reading
+          - dps_val: "AAIBAQIODQAD6APoAAA="
+            value: Work
+          - dps_val: "AAMBAQIODQAB9AH0AAA="
+            value: Casual
+          - dps_val: "AAQAAAECA0ZGAgB4A+gD6EZGAgB4A+gACg=="
+            value: Prairie
+          - dps_val: "AAUAAAEGA0ZGAQAAA+gD6EZGAQB4A+gD6EZGAQDwA+gD6EZGAQA9A+gD6EZGAQCuA+gD6EZGAQETA+gD6A=="
+            value: Fun
+          - dps_val: "AAYAAAEDA0ZGAQAAA+gD6EZGAQB4A+gD6EZGAQDwA+gD6A=="
+            value: Dazzle
+          - dps_val: "AAcAAAEGA0ZGAgAAA+gD6EZGAgB4A+gD6EZGAgDwA+gD6EZGAgA9A+gD6EZGAgCuA+gD6EZGAgETA+gD6A=="
+            value: Colorful
+          - dps_val: "ABQAAAEDA0ZGAgCuA+gD6EZGAgC0ASwD6EZGAgC0ADID6A=="
+            value: Blue Sky
+          - dps_val: "AB0AAAEEA2RkAQAAA+gD6GRkAQDwA+gD6GRkAgB4A+gD6GRkAgA9A+gD6A=="
+            value: Mediterranean
+          - dps_val: "ACAAAAEGA2RkAQA9A+gD6GRkAQB4A+gD6FpaAQETA+gD6FpaAQCuA+gD6GRkAQAyAfQD6GRkAQAAA+gD6A=="
+            value: Birthday
+          - dps_val: "ACIAAAEGA1paAQDwA+gD6FpaAQA9A+gD6EZGAQAAA+gD6FpaAQCuA+gD6FpaAQETA+gD6EZGAQB4A+gD6A=="
+            value: Christmas
+          - dps_val: "ADIBAQIODQAAyAAAAQYDRkYCAAAD6APoRkYCAHgD6APoRkYCAPAD6APoRkYCAD0D6APoRkYCAK4D6APoRkYCARMD6APo"
+            value: Streamer
+          - dps_val: "ADMBAQIODQAB9AH0AQYDRkYBAAAD6APoRkYBAHgD6APoRkYBAPAD6APoRkYBAD0D6APoRkYBAK4D6APoRkYBARMD6APo"
+            value: Entertainment