浏览代码

OTU R1O1 lock: report useful info for unlock_offline_pwd

The feedback dp expects numeric output, but this one is a string (maybe
the actual password used). Make it useful for detecting offline password use.
Jason Rumney 1 年之前
父节点
当前提交
40f9c48bf7
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      custom_components/tuya_local/devices/otu_r1o1_lock.yaml

+ 6 - 2
custom_components/tuya_local/devices/otu_r1o1_lock.yaml

@@ -127,8 +127,12 @@ primary_entity:
     - id: 67
     - id: 67
       type: string
       type: string
       optional: true
       optional: true
-      sensitive: true
-      name: unlock_offline_pd
+      persist: false
+      name: unlock_offline_pwd
+      mapping:
+        - dps_val: null
+          value: null
+        - value: 1
     - id: 69
     - id: 69
       type: string
       type: string
       optional: true
       optional: true