Explorar o código

Add support for KIMEX cimena screen

Can control screen and see wether its open or closed.
pacorola hai 10 meses
pai
achega
fe36457f66

+ 21 - 16
custom_components/tuya_local/devices/KIMEX_tuya_cinema_screen.yaml

@@ -1,9 +1,8 @@
-name: Simple curtain switch
+name: KIMEX cimema screen
 products:
-  - id: 000003th5e
+  - id: hpg7erxfe5ypgh20
     manufacturer: KIMEX
-    model: KIMEX 048-1511W
-  -
+    model: THM-02
 entities:
   - entity: cover
     class: blind
@@ -12,17 +11,23 @@ entities:
         name: control
         type: string
         mapping:
-         - dps_val: open
-           value: open
-         - dps_val: close
-           value: close
-         - dps_val: stop
-           value: stop
-      - id: 8
-        name: control_back
+          - dps_val: open
+            value: open
+          - dps_val: stop
+            value: stop
+          - dps_val: close
+            value: close
+      - id: 1
+        name: action
         type: string
         mapping:
-         - dps_val: forward
-           value: forward
-         - dps_val: backward
-           value: backward   
+          - dps_val: open
+            value: opened
+          - dps_val: stop
+            value: stop
+          - dps_val: close
+            value: closed
+      - id: 8
+        name: control_back_mode
+        type: string
+        category: config