فهرست منبع

Create magnovent_cefiro_with_lights.yaml (#4763)

* Create magnovent_cefiro_with_lights

New device (fan with presets) added.
Website: https://magnovent.eu/cefiro-modern-ceiling-fan/

* Fix missing newline at end of YAML file

Add newline at the end of the file for consistency.

* Update product ID and brightness mapping in YAML

Updated the product ID for the Magnovent Cefiro device and removed the invert mapping for the brightness range.
It has also been removed mapping for fan speed (it was not required)

* Update product ID for Magnovent Cefiro device

Update product ID (from TUYA IOT Platform) for Magnovent Cefiro device

* fix (magnovent_cefiro_with_lights): debrand device name

- remove branding from device name
- uncomment products section that now has a valid id

PR #4763

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
R4gN4rk 2 ماه پیش
والد
کامیت
03f080754e
1فایلهای تغییر یافته به همراه102 افزوده شده و 0 حذف شده
  1. 102 0
      custom_components/tuya_local/devices/magnovent_cefiro_with_lights.yaml

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

@@ -0,0 +1,102 @@
+name: Ceiling fan with light
+products:
+  - id: lb9da3os0ihifq7u
+    manufacturer: Magnovent
+    model: Cefiro
+entities:
+  - 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: nature
+            value: nature
+          - dps_val: sleep
+            value: sleep
+          - dps_val: fresh
+            value: fresh
+          - dps_val: smart
+            value: smart
+          - dps_val: custom
+            value: custom
+      - id: 3
+        type: integer
+        name: speed
+        range:
+          min: 1
+          max: 6
+      - id: 8
+        type: string
+        name: direction
+      - id: 101
+        type: integer
+        optional: true
+        name: model_number
+      - id: 102
+        type: integer
+        optional: true
+        name: device_num
+      - id: 103
+        type: integer
+        optional: true
+        name: version
+  - entity: light
+    dps:
+      - id: 15
+        type: boolean
+        name: switch
+      - id: 16
+        name: brightness
+        type: integer
+        range:
+          min: 1
+          max: 100
+      - id: 17
+        name: color_temp
+        type: integer
+        range:
+          min: 0
+          max: 100
+        mapping:
+          - target_range:
+              min: 3000
+              max: 6000
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 22
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancel
+            value: cancel
+          - dps_val: "1h"
+            value: "1h"
+          - dps_val: "2h"
+            value: "2h"
+          - dps_val: "3h"
+            value: "3h"
+          - dps_val: "4h"
+            value: "4h"
+          - dps_val: "5h"
+            value: "5h"
+          - dps_val: "6h"
+            value: "6h"
+          - dps_val: "7h"
+            value: "7h"
+          - dps_val: "8h"
+            value: "8h"
+          - dps_val: "9h"
+            value: "9h"
+          - dps_val: "10h"
+            value: "10h"
+          - dps_val: "11h"
+            value: "11h"
+          - dps_val: "12h"
+            value: "12h"