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

LSC PTZ camera: add rotatable camera model

- Has additional motion area controls
- Does not have anti-flicker switch and a few minor attributes.

Issue #2966
Jason Rumney 10 сар өмнө
parent
commit
f59636f8bf

+ 44 - 0
custom_components/tuya_local/devices/lsc_ptz_camera.yaml

@@ -3,6 +3,9 @@ products:
   - id: n7h0m2x7i2yzol0p
   - id: n7h0m2x7i2yzol0p
     manufacturer: LSC Smart Connect
     manufacturer: LSC Smart Connect
     model: PTZ
     model: PTZ
+  - id: rogprwflblumx2co
+    manufacturer: LSC Smart Connect
+    model: Rotatable
 entities:
 entities:
   - entity: camera
   - entity: camera
     dps:
     dps:
@@ -361,6 +364,7 @@ entities:
     name: Anti-flicker
     name: Anti-flicker
     icon: "mdi:television-classic"
     icon: "mdi:television-classic"
     category: config
     category: config
+    hidden: unavailable
     dps:
     dps:
       - id: 188
       - id: 188
         type: string
         type: string
@@ -373,3 +377,43 @@ entities:
             value: "50Hz"
             value: "50Hz"
           - dps_val: "2"
           - dps_val: "2"
             value: "60Hz"
             value: "60Hz"
+      - id: 188
+        type: string
+        name: available
+        optional: true
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true
+  - entity: switch
+    name: Motion limit area
+    category: config
+    icon: "mdi:picture-in-picture-bottom-right-outline"
+    hidden: unavailable
+    dps:
+      - id: 168
+        type: boolean
+        optional: true
+        name: switch
+      - id: 168
+        type: boolean
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true
+  - entity: text
+    name: Motion limit area
+    hidden: true
+    icon: "mdi:picture-in-picture-bottom-right-outline"
+    category: config
+    dps:
+      - id: 169
+        type: string
+        optional: true
+        name: value
+      - id: 168
+        type: boolean
+        optional: true
+        name: available