소스 검색

Update smart_camera_sc116-wz3a.yaml

Made some changes as suggested by @make-all and fixed some previous errors.
wuhgit 10 달 전
부모
커밋
e2467ef671
1개의 변경된 파일39개의 추가작업 그리고 27개의 파일을 삭제
  1. 39 27
      custom_components/tuya_local/devices/smart_camera_sc116-wz3a.yaml

+ 39 - 27
custom_components/tuya_local/devices/smart_camera_sc116-wz3a.yaml

@@ -1,7 +1,6 @@
 name: Camera
 name: Camera
 products:
 products:
   - id: b60fclvud3xtcufm
   - id: b60fclvud3xtcufm
-    manufacturer: Tuya
     model: SC116-WZ3A
     model: SC116-WZ3A
 entities:
 entities:
   - entity: camera
   - entity: camera
@@ -11,13 +10,10 @@ entities:
         optional: true
         optional: true
         name: switch
         name: switch
         mapping:
         mapping:
-          - dps_val: true
-            value: false
           - dps_val: false
           - dps_val: false
             value: true
             value: true
-          - dps_val: null
-            value: true
-            hidden: true
+          - dps_val: true
+            value: false
       - id: 134
       - id: 134
         type: boolean
         type: boolean
         name: motion_enable
         name: motion_enable
@@ -25,17 +21,10 @@ entities:
       - id: 150
       - id: 150
         type: boolean
         type: boolean
         name: record
         name: record
-        optional: true
-      - id: 115
-        type: base64
-        optional: true
-        persist: false
-        sensitive: true
-        name: snapshot
-  - entity: switch
-    name: Indicator
+        optional: true        
+  - entity: light
+    translation_key: indicator
     category: config
     category: config
-    icon: "mdi:led-outline"
     dps:
     dps:
       - id: 101
       - id: 101
         type: boolean
         type: boolean
@@ -49,20 +38,13 @@ entities:
         type: boolean
         type: boolean
         name: switch
         name: switch
   - entity: switch
   - entity: switch
-    name: Time OSD
+    name: Watermark
     category: config
     category: config
-    icon: "mdi:clock-time-three-outline"
+    icon: "mdi:watermark"
     dps:
     dps:
       - id: 104
       - id: 104
         type: boolean
         type: boolean
-        name: switch
-  - entity: switch
-    name: Privacy mode
-    category: config
-    icon: "mdi:eye-off"
-    dps:
-      - id: 105
-        type: boolean
+        optional: true
         name: switch
         name: switch
   - entity: select
   - entity: select
     name: Motion sensitivity
     name: Motion sensitivity
@@ -326,9 +308,20 @@ entities:
           - dps_val: null
           - dps_val: null
             value: false
             value: false
             hidden: true
             hidden: true
+  - entity: event
+    name: Alarm
+    dps:
+      - id: 185
+        type: string
+        name: event
+        optional: true
+        mapping:
+          - dps_val: null
+            value: null
+          - value: alert
       - id: 185
       - id: 185
         type: string
         type: string
-        name: log_message
+        name: message
         optional: true
         optional: true
   - entity: number
   - entity: number
     name: Volume
     name: Volume
@@ -509,3 +502,22 @@ entities:
           - dps_val: "4"
           - dps_val: "4"
             value: true
             value: true
           - value: false
           - value: false
+  - entity: event
+    class: motion
+    dps:
+      - id: 115
+        type: string
+        name: event
+        optional: true
+        mapping:
+          - dps_val: null
+            value: null
+          - value: detected
+      - id: 115
+        type: string
+        optional: true
+        name: snapshot
+      - id: 212
+        type: string
+        optional: true
+        name: message