浏览代码

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 年之前
父节点
当前提交
0c55123e6f
共有 1 个文件被更改,包括 4 次插入8 次删除
  1. 4 8
      custom_components/tuya_local/devices/dongguan_garage_door_opener.yaml

+ 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
 # 110V 240V Voice Control with Alexa Google Home
 # https://www.aliexpress.com/item/1005003913566298.html
-name: Garage opener
+name: Gate opener
 products:
   - id: 1wwbzczt9hrtwqjr
     manufacturer: Dongguan Pinjia
     model: PJ-WGDOOR01
+  - id: deyeioifmyvdalnc
 entities:
   - entity: cover
-    class: garage
+    class: gate
     dps:
       - id: 1
         type: boolean
@@ -22,12 +23,7 @@ entities:
             value: close
       - id: 3
         type: boolean
-        name: action
-        mapping:
-          - dps_val: true
-            value: opened
-          - dps_val: false
-            value: closed
+        name: open
   - entity: number
     translation_key: timer
     class: duration