Przeglądaj źródła

Adding support for YOEVU EOS Ceiling fan with light dimmable and color temp (#4928)

* Add files via upload

* Updated yoevu_fan_light_dimmable.yaml

Changed product id (I put incorrectly my device Id) to the right one on line 3

* fix(yoevu_fan_light_dimmable): move to correct location

* Fix typo in directory name

* feat(yoevu_eos_fanlight): naming tweaks

- shorten device name
- remove non-human readable names from light and fan entity

PR #4928

* feat(yoevu_eos_fanlight): remove target range from color temp

- light.py was modified to not require target_range to be set in order to have min and max color temp set properly

PR #4928

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
ymodder 2 miesięcy temu
rodzic
commit
81c037c7ae

+ 69 - 0
custom_components/tuya_local/devices/yoevu_eos_fanlight.yaml

@@ -0,0 +1,69 @@
+name: Ceiling fan
+products:
+  - id: nwjrdttwaghkr6r4
+    manufacturer: Yoevu
+    model: EOS
+entities:
+  - entity: light
+    dps:
+      - id: 20
+        name: switch
+        type: boolean
+      - id: 21
+        name: work_mode
+        type: string
+        optional: true
+      - id: 22
+        name: brightness
+        type: integer
+        optional: true
+        range:
+          min: 10
+          max: 100
+      - id: 23
+        name: color_temp
+        type: integer
+        optional: true
+        range:
+          min: 2700
+          max: 7000
+        mapping:
+          - step: 100
+  - entity: fan
+    dps:
+      - id: 60
+        name: switch
+        type: boolean
+      - id: 61
+        name: preset_mode
+        type: string
+        optional: true
+        mapping:
+          - dps_val: fresh
+            value: fresh
+          - dps_val: nature
+            value: nature
+      - id: 62
+        name: speed
+        type: integer
+        optional: true
+        range:
+          min: 1
+          max: 6
+      - id: 63
+        name: direction
+        type: string
+        optional: true
+  - entity: number
+    translation_key: timer
+    class: duration
+    category: config
+    dps:
+      - id: 64
+        name: value
+        type: integer
+        optional: true
+        unit: min
+        range:
+          min: 0
+          max: 540