Explorar el Código

Add support for Comfort Zone Tower Fan (CZTF423S) (#5227)

* Add support for Tallboy Tower Fan (CZTF423S)

Adds device configuration for the CZTF423S tower fan with:
- Primary fan entity with speed control (1-5) and oscillation
- Sleep timer select entity with 1-5 hour options
- Support for normal, nature, and sleep preset modes

* Fix Comfort Zone Tower Fan (CZTF423S) device configuration

- Updated device configuration to new YAML schema format
- Changed device name from my "Tallboy Tower Fan" to "Comfort Zone Tower Fan"
- Migrated from primary_entity/secondary_entities to flattened entities structure
- Updated DPS field naming (dp → id, dpsval → dps_val)
- Renamed select entity option field for consistency

Tests should pass now.

* Update configuration for Comfort Zone Tower Fan (CZTF423S)

Per feedback, made adjustments.

- Simplified device name to "Tower Fan"
- Added manufacturer and model details
- Updated select entity to use translation key and category
- Enhanced entity definitions for better clarity and consistency

---------

Co-authored-by: cmoates <cmoates@example.com>
Chris Moates hace 4 semanas
padre
commit
c1a6d31b79
Se han modificado 1 ficheros con 65 adiciones y 0 borrados
  1. 65 0
      custom_components/tuya_local/devices/ciztf423s_tower_fan.yaml

+ 65 - 0
custom_components/tuya_local/devices/ciztf423s_tower_fan.yaml

@@ -0,0 +1,65 @@
+name: Tower Fan
+products:
+  - id: eb414680be46558e014mtb
+    manufacturer: Comfort Zone
+    model: CZTF423S
+entities:
+  - entity: fan
+    translation_key: fan_with_presets
+    dps:
+      - id: 1
+        name: switch
+        type: boolean
+      - id: 2
+        name: preset_mode
+        type: string
+        mapping:
+          - dps_val: normal
+            value: normal
+          - dps_val: nature
+            value: nature
+          - dps_val: sleep
+            value: sleep
+      - id: 3
+        name: speed
+        type: integer
+        range:
+          min: 1
+          max: 5
+      - id: 5
+        name: oscillate
+        type: boolean
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 22
+        name: option
+        type: string
+        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