Просмотр исходного кода

Created configuration for Orison Chanfok Neo

I created the config for this "fandelier", which is also found on some shops sold as "Orison Ceiling Fan with Lights- 23 in Smart Ceiling Fans with Alexa/Google Assistant/App Control Color Changing LED-RGB Back Ambient Light for Living Room Bedroom".

Everything works perfectly!
Luca Critelli 1 год назад
Родитель
Сommit
7380c1ced7
1 измененных файлов с 102 добавлено и 0 удалено
  1. 102 0
      custom_components/tuya_local/devices/orison_chanfok_neo_fan_light.yaml

+ 102 - 0
custom_components/tuya_local/devices/orison_chanfok_neo_fan_light.yaml

@@ -0,0 +1,102 @@
+name: Orison Chanfok Neo
+products:
+  - id: eba992532f93bb1c009bjw
+    name: Orison Chanfok Neo
+primary_entity:
+  entity: fan
+  dps:
+    - id: 107
+      type: boolean
+      name: switch
+    - id: 106
+      name: preset_mode
+      type: string
+      mapping:
+        - dps_val: fresh
+          value: fresh
+        - dps_val: nature
+          value: nature
+    - id: 105
+      type: integer
+      name: speed
+      optional: true
+      range:
+        min: 1
+        max: 6
+    - id: 104
+      type: string
+      name: direction
+    - id: 103
+      type: integer
+      name: fan_countdown_left
+  
+secondary_entities:
+  - entity: light
+    dps:
+      - id: 20
+        type: boolean
+        name: switch
+      - id: 21
+        type: string
+        name: color_mode
+        mapping:
+          - dps_val: white
+            value: color_temp
+          - dps_val: colour
+            value: hs
+          - dps_val: scene
+            value: Scene
+          - dps_val: music
+            value: Music
+      - id: 22
+        type: integer
+        name: brightness
+        range:
+          min: 10
+          max: 1000
+      - id: 23
+        type: integer
+        name: color_temp
+        range:
+          min: 0
+          max: 1000
+        optional: true
+        mapping:
+          - step: 500
+            target_range:
+              min: 2700
+              max: 6500
+      - id: 24
+        name: rgbhsv
+        type: hex
+        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
+  - entity: number
+    name: Light timer
+    translation_key: timer
+    category: config
+    dps:
+      - id: 26
+        type: integer
+        name: value
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+        unit: min