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

Add support for LoraTap garage doors.

Issue #607
Jason Rumney 2 лет назад
Родитель
Сommit
4392d36084
3 измененных файлов с 31 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 29 0
      custom_components/tuya_local/devices/loratap_garage_door.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -236,3 +236,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [p-owerscripter](https://github.com/p-owerscripter) for contributing support for KKMoon air quality monitors.
 - [cataseven](https://github.com/cataseven) for contributing support for SM07-8 sprinkler controllers.
 - [tientmit88](https://github.com/tientmit88) for contributing support for Moes motion sensor lights.
+- [matteozamu](https://github.com/matteozamu) for assisting with support for LoraTap garage doors.

+ 1 - 0
DEVICES.md

@@ -300,6 +300,7 @@ of device.
 - FS-03W curtain switch with backlight control
 - Kogan garage door with tilt sensor
 - Loonas smart curtain
+- LoraTap GDC100W garage door opener
 - LoraTap SC500W-V1 curtain switch
 - M027 curtain module (sold under several brands, including zemismart, meterk and others)
 - QS-WIFI-C01(BK) curtain module

+ 29 - 0
custom_components/tuya_local/devices/loratap_garage_door.yaml

@@ -0,0 +1,29 @@
+name: Loratap garage door
+products:
+  - id: kksjmhr9nhjudvzo
+    name: LoraTap GDC100W
+primary_entity:
+  entity: cover
+  class: garage
+  dps:
+    - id: 1
+      type: boolean
+      name: control
+      optional: true
+      mapping:
+        - dps_val: true
+          value: open
+        - dps_val: false
+          value: close
+    - id: 101
+      name: open
+      type: boolean
+    - id: 7
+      name: countdown_1
+      type: integer
+    - id: 102
+      name: travel_time
+      type: integer
+    - id: 103
+      name: countdown_2
+      type: integer