4
0
Эх сурвалжийг харах

feat (devices): add HHC AM68 curtain motor

Issue #3968
Jason Rumney 2 сар өмнө
parent
commit
fb417f0057

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1122,3 +1122,4 @@ Further device support has been made with the assistance of users. Please consid
 - [DavidRomao](https://github.com/DavidRomao) for contributing support for Jocel JCT007452 heater, merged into compatible Lehmann config.
 - [phiten](https://github.com/phiten) for assisting with support for FeelNeedy P-LFP01 camera pet feeder.
 - [dbeinder](https://github.com/dbeinder) for contributing improvements to dé EV charger.
+- [johndparker](https://github.com/johndparker) for assisting with support for HHC AM24 curtain motor.

+ 1 - 0
DEVICES.md

@@ -815,6 +815,7 @@ of device.
 - FS-03W curtain switch with backlight control
 - Graywind window shades
 - GW Motor roller blinds
+- HHC AM68 curtain motor
 - Kimex motorized cinema screen
 - Kogan garage door with tilt sensor
 - KY motor 35W-10 shutter controller

+ 56 - 0
custom_components/tuya_local/devices/hhc_am68_curtainmotor.yaml

@@ -0,0 +1,56 @@
+name: Curtain motor
+products:
+  - id: 4D47uCTGNqKBSdHm
+    manufacturer: HHC
+    model: AM68
+entities:
+  - entity: cover
+    class: curtain
+    dps:
+      - id: 101
+        type: string
+        name: control
+        mapping:
+          - dps_val: open
+            value: open
+          - dps_val: close
+            value: close
+          - dps_val: stop
+            value: stop
+      - id: 102
+        type: integer
+        name: current_position
+        range:
+          min: 0
+          max: 100
+        mapping:
+          - invert: true
+  - entity: select
+    name: Direction
+    icon: "mdi:swap-horizontal"
+    category: config
+    dps:
+      - id: 107
+        type: boolean
+        name: option
+        mapping:
+          - dps_val: false
+            value: forward
+          - dps_val: true
+            value: reverse
+  - entity: switch
+    name: Manual override
+    icon: "mdi:hand-back-left"
+    category: config
+    dps:
+      - id: 108
+        type: boolean
+        name: switch
+  - entity: binary_sensor
+    name: Schedule
+    class: running
+    category: diagnostic
+    dps:
+      - id: 109
+        type: boolean
+        name: sensor