ソースを参照

Add support for Yueqing Combo curtain motor

Issue #1781
Jason Rumney 1 年間 前
コミット
2614c9f673

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -518,7 +518,7 @@ Further device support has been made with the assistance of users. Please consid
 - [popokio](https://github.com/popokio) for assisting with support for Plikc Neve X RFW thermostats.
 - [popeen](https://github.com/popeen) for contributing support for Silvercrest Coffee makers.
 - [ciotorcristian](https://github.com/ciotorcristian) for contributing support for HoneyGuardian S56 pet feeder.
-- [Dexter-Lucky](https://github.com/Dexter-Lucky) for assisting with support for Zigbee PY321-Z-TY energy meters and Moes BRT-100-TRV radiator valves.
+- [Dexter-Lucky](https://github.com/Dexter-Lucky) for assisting with support for Zigbee PY321-Z-TY energy meters, Moes BRT-100-TRV radiator valves, and Yueqing Combo curtain motors.
 - [teeodor](https://github.com/teeodor) for assisting with support for Maxico aroma diffusers.
 - [gvermaat](https://github.com/gvermaat) for assisting with support for Hysen HY02TP thermostats.
 - [korzeniewski36](https://github.com/korzeniewski36) for assisting with support for KKMoon knob thermostats.

+ 1 - 0
DEVICES.md

@@ -532,6 +532,7 @@ of device.
 - SHerko curtain motor
 - SmartCurtains A-series ACS-WT curtain motor (may work for other models)
 - Wistar roller blind controller
+- Yueqing Combo YET848PC curtain motor
 - ZC34T-03-3A swing arm window opener
 - Zemismart curtain rail
 - Zemismart roller shade

+ 64 - 0
custom_components/tuya_local/devices/yueqingcombo_yet848pc_curtain.yaml

@@ -0,0 +1,64 @@
+name: Curtain
+products:
+  - id: wraaecjqfiirj8go
+    name: Yueing Combo YET848PC
+primary_entity:
+  entity: cover
+  class: curtain
+  dps:
+    - id: 1
+      type: string
+      optional: true
+      name: control
+      mapping:
+        - dps_val: open
+          value: open
+        - dps_val: stop
+          value: stop
+        - dps_val: close
+          value: close
+    - id: 2
+      name: position
+      type: integer
+      range:
+        min: 0
+        max: 100
+    - id: 3
+      name: current_position
+      type: integer
+secondary_entities:
+  - entity: select
+    name: Motor direction
+    icon: "mdi:sign-direction"
+    category: config
+    dps:
+      - id: 5
+        type: string
+        name: option
+        optional: true
+        mapping:
+          - dps_val: forward
+            value: Clockwise
+          - dps_val: back
+            value: Anti-clockwise
+          - dps_val: null
+            value: Clockwise
+            hidden: true
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 12
+        type: bitfield
+        optional: true
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: null
+            value: false
+          - value: true
+      - id: 12
+        type: bitfield
+        optional: true
+        name: fault_code