Browse Source

Loratap zigbee curtain: make compatible with WiFi device

Issue #2077 defines a similar device, but without the light_mode, which
was marked hidden even though it was not used anywhere (unhid and made
optional instead).
Jason Rumney 1 năm trước cách đây
mục cha
commit
7c72ac04c6

+ 5 - 3
custom_components/tuya_local/devices/loratap_zigbee_curtain.yaml

@@ -1,7 +1,9 @@
-name: ZigBee Curtain
+name: Curtain
 products:
 products:
   - id: 8kzqqzu4
   - id: 8kzqqzu4
-    name: SC500ZB-V2
+    name: Loratap SC500ZB-V2
+  - id: v7ooovn9oamttmre
+    name: Loratap WiFi curtain
 primary_entity:
 primary_entity:
   entity: cover
   entity: cover
   class: shutter
   class: shutter
@@ -28,7 +30,7 @@ primary_entity:
     - id: 14
     - id: 14
       name: light_mode
       name: light_mode
       type: string
       type: string
-      hidden: true
+      optional: true
 secondary_entities:
 secondary_entities:
   - entity: switch
   - entity: switch
     category: config
     category: config