Kaynağa Gözat

Add support for Princess DC pedestal fan

Issue #2141
Jason Rumney 1 yıl önce
ebeveyn
işleme
b97fdde889

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -643,3 +643,4 @@ Further device support has been made with the assistance of users. Please consid
 - [tv4you2016](https://github.com/tv4you2016) for contributing support for Cecotec ForceClima Soundless air conditioner.
 - [tv4you2016](https://github.com/tv4you2016) for contributing support for Cecotec ForceClima Soundless air conditioner.
 - [danieljohngomez](https://github.com/danieljohngomez) for assisting with support for BSTUOKEY invisible door lock.
 - [danieljohngomez](https://github.com/danieljohngomez) for assisting with support for BSTUOKEY invisible door lock.
 - [robinhood-code](https://github.com/robinhood-code) for assisting with support for Arlec USB strip lights.
 - [robinhood-code](https://github.com/robinhood-code) for assisting with support for Arlec USB strip lights.
+- [drcjb](https://github.com/drcjb) for assisting with support for Princess DC pedestal fan

+ 1 - 0
DEVICES.md

@@ -228,6 +228,7 @@
 - Orison Chanfok Neo ceiling fan with light
 - Orison Chanfok Neo ceiling fan with light
 - Orison RGB ambient bladeless ceiling fan
 - Orison RGB ambient bladeless ceiling fan
 - Ovlaim ceiling fan with cool/warm white dimmable light
 - Ovlaim ceiling fan with cool/warm white dimmable light
+- Princess DC pedestal fan
 - Reiga 52 ceiling fan with light
 - Reiga 52 ceiling fan with light
 - Royal Clima RCB 150 ventilation system
 - Royal Clima RCB 150 ventilation system
 - Skyfan DC fan
 - Skyfan DC fan

+ 106 - 0
custom_components/tuya_local/devices/princess_pedestal_fan.yaml

@@ -0,0 +1,106 @@
+name: Fan
+products:
+  - id: glhx4aeaqmzmp3sb
+    name: Princess 358450 DC pedestal fan
+primary_entity:
+  entity: fan
+  translation_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
+    - id: 3
+      type: integer
+      range:
+        min: 1
+        max: 24
+      name: speed
+    - id: 101
+      type: boolean
+      name: oscillate
+secondary_entities:
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 6
+        type: string
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: cancel
+          - dps_val: "1"
+            value: "1h"
+          - dps_val: "2"
+            value: "2h"
+          - dps_val: "3"
+            value: "3h"
+          - dps_val: "4"
+            value: "4h"
+          - dps_val: "5"
+            value: "5h"
+          - dps_val: "6"
+            value: "6h"
+          - dps_val: "7"
+            value: "7h"
+          - dps_val: "8"
+            value: "8h"
+          - dps_val: "9"
+            value: "9h"
+          - dps_val: "10"
+            value: "10h"
+          - dps_val: "11"
+            value: "11h"
+          - dps_val: "12"
+            value: "12h"
+          - dps_val: "13"
+            value: "13h"
+          - dps_val: "14"
+            value: "14h"
+          - dps_val: "15"
+            value: "15h"
+          - dps_val: "16"
+            value: "16h"
+          - dps_val: "17"
+            value: "17h"
+          - dps_val: "18"
+            value: "18h"
+          - dps_val: "19"
+            value: "19h"
+          - dps_val: "20"
+            value: "20h"
+          - dps_val: "21"
+            value: "21h"
+          - dps_val: "22"
+            value: "22h"
+          - dps_val: "23"
+            value: "23h"
+          - dps_val: "24"
+            value: "24h"
+  - entity: light
+    dps:
+      - id: 9
+        type: boolean
+        name: switch
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 23
+        type: integer
+        name: sensor
+        unit: s
+        class: measurement