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

Dongguan garage door opener: change garage to gate.

In evaluating PR #2984, only the class seems to differ significantly.
The PR uses open rather than action, which seems better since the action
is only mapped to opened and closed anyway, and looking at the comments
the original dongguan device seems to also be a gate opener, so class
also updated.
Jason Rumney 1 жил өмнө
parent
commit
0c55123e6f

+ 4 - 8
custom_components/tuya_local/devices/dongguan_garage_door_opener.yaml

@@ -2,14 +2,15 @@
 # Tuya Smart Life WiFi Motorized Swing Gate Sliding Gate Opener Dry Contact
 # Tuya Smart Life WiFi Motorized Swing Gate Sliding Gate Opener Dry Contact
 # 110V 240V Voice Control with Alexa Google Home
 # 110V 240V Voice Control with Alexa Google Home
 # https://www.aliexpress.com/item/1005003913566298.html
 # https://www.aliexpress.com/item/1005003913566298.html
-name: Garage opener
+name: Gate opener
 products:
 products:
   - id: 1wwbzczt9hrtwqjr
   - id: 1wwbzczt9hrtwqjr
     manufacturer: Dongguan Pinjia
     manufacturer: Dongguan Pinjia
     model: PJ-WGDOOR01
     model: PJ-WGDOOR01
+  - id: deyeioifmyvdalnc
 entities:
 entities:
   - entity: cover
   - entity: cover
-    class: garage
+    class: gate
     dps:
     dps:
       - id: 1
       - id: 1
         type: boolean
         type: boolean
@@ -22,12 +23,7 @@ entities:
             value: close
             value: close
       - id: 3
       - id: 3
         type: boolean
         type: boolean
-        name: action
-        mapping:
-          - dps_val: true
-            value: opened
-          - dps_val: false
-            value: closed
+        name: open
   - entity: number
   - entity: number
     translation_key: timer
     translation_key: timer
     class: duration
     class: duration