Просмотр исходного кода

feat (devices): add Eachen GD-DC5 garage door opener

Issue #4651
Jason Rumney 18 часов назад
Родитель
Сommit
9d479cc08b

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1326,3 +1326,4 @@ Further device support has been made with the assistance of users. Please consid
 - [thisistotallyshaun](https://github.com/thisistotallyshaun) for assisting with support for Breville Smart Mist Glow Connect humidifier.
 - [appetjoek1978](https://github.com/appetjoek1978) for assisting with support for NP-DVL-01 ceiling fan with RGB+CW light.
 - [gabriel-landeira](https://github.com/gabriel-landeira) for assisting with support for Brustec Pool Heater.
+- [eq7mavala-ops](https://github.com/eq7mavala-ops) for assisting with support for Eachen GD-DC5 garage door opener.

+ 1 - 0
DEVICES.md

@@ -929,6 +929,7 @@ of device.
 - Dongguan garage door
 - Dongguan LY1678-2 curtain robot
 - Dooya curtain motor
+- Eachen GD-DC5 garage door opener
 - Eruiklink curtain motor
 - Etersky curtain switch with backlight and timing control
 - FS-03W curtain switch with backlight control

+ 30 - 0
custom_components/tuya_local/devices/eachen_gddc5_garageopener.yaml

@@ -0,0 +1,30 @@
+name: Garage opener
+products:
+  - id: xvsgeeru2i5wsd0y
+    manufacturer: Eachen
+    model: GD-DC5
+entities:
+  - entity: cover
+    class: garage
+    dps:
+      - id: 1
+        name: control
+        type: boolean
+        mapping:
+          - dps_val: false
+            value: close
+          - dps_val: true
+            value: open
+      - id: 1
+        type: boolean
+        name: open
+  - entity: time
+    translation_key: timer
+    category: config
+    dps:
+      - id: 2
+        type: integer
+        name: second
+        range:
+          min: 0
+          max: 86399