Kaynağa Gözat

Add support Dongguan Garage Door

It's looks like noname Chinese Door Controller, one which I have and tested is produced by Dongguan Pinjia Technology Co. and has model number PJ-WGDOOR01 can be found as [Tuya Smart Life WiFi Motorized Swing Gate Sliding Gate Opener Dry Contact 110V 240V Voice Control with Alexa Google Home](https://www.aliexpress.com/item/1005003913566298.html)
myhomeiot 3 yıl önce
ebeveyn
işleme
d3bae9ce9c

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -109,7 +109,7 @@ Further device support has been made with the assistance of users.  Please consi
 - [djusHa](https://github.com/djusHa) for contributing support for essentials portable air purifier.
 - [alexmaras](https://github.com/alexmaras) for contributing support for Catit Pixi smart fountain.
 - [jamiergrs](https://github.com/jamiergrs) for assistance supporting Orion Grid Connect outdoor sirens.
-- [myhomeiot](https://github.com/myhomeiot) for contributing support for Bresser 7-in-1 Weather Station.
+- [myhomeiot](https://github.com/myhomeiot) for contributing support for Bresser 7-in-1 Weather Station and Dongguan Garage Door.
 - [Condorello](https://github.com/Condorello) for assistance supporting Inkbird sous vide cookers.
 - [sebastiangebosz](https://github.com/sebastiangebosz) for contributing improvements to Eberg Qubo heatpumps.
 - [VoyteckPL](https://github.com/VoyteckPL) for contributing support for Fairland IPHCR15 pool heatpumps.

+ 1 - 0
README.md

@@ -200,6 +200,7 @@ Other brands may work with the above configurations
 ### Covers
 - Simple Garage Door
 - Simple Blind Controller
+- Dongguan Garage Door
 - Kogan Garage Door with tilt sensor
 - QS-WIFI-C01(BK) Curtain Module
 - M027 Curtain Module (sold under several brands, including zemismart, meterk and others)

+ 70 - 0
custom_components/tuya_local/devices/dongguan_garage_door_opener.yaml

@@ -0,0 +1,70 @@
+# Dongguan Pinjia Technology Co., Door Controller, PJ-WGDOOR01
+# Tuya Smart Life WiFi Motorized Swing Gate Sliding Gate Opener Dry Contact 110V 240V Voice Control with Alexa Google Home
+# https://www.aliexpress.com/item/1005003913566298.html
+name: Dongguan Garage Door
+products:
+  - id: 1wwbzczt9hrtwqjr
+    name: WIFI Door Opener
+    model: PJ-WGDOOR01
+primary_entity:
+  entity: cover
+  class: garage
+  dps:
+    - id: 1
+      type: boolean
+      name: control
+      optional: true #BUGBUG Sometimes after power off this DP doesn't report state but will be available later
+      mapping:
+        - dps_val: true
+          value: open
+        - dps_val: false
+          value: close
+    - id: 3
+      type: boolean
+      name: action
+      mapping:
+        - dps_val: true
+          value: opened
+        - dps_val: false
+          value: closed
+secondary_entities:
+  - entity: number
+    name: Countdown
+    icon: mdi:timer-lock
+    category: config
+    dps:
+      - id: 2
+        <<: &timer
+          type: integer
+          name: value
+          unit: s
+          range:
+            min: 0
+            max: 86400
+  - entity: number
+    name: Run Times
+    icon: mdi:timer
+    category: config
+    dps:
+      - id: 4
+        type: integer
+        name: value
+        unit: s
+        range:
+          min: 10
+          max: 120
+  - entity: number
+    name: Timeout Alarm
+    icon: mdi:timer-alert
+    category: config
+    dps:
+      - id: 5
+        <<: *timer
+  - entity: sensor
+    name: Fault
+    icon: mdi:alert
+    dps:
+      - id: 12
+        type: string
+        name: sensor
+        optional: true #BUGBUG Sometimes after power off this DP doesn't report state but will be available later