Просмотр исходного кода

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 год назад
Родитель
Сommit
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
       type: string
       optional: true
-      sensitive: true
-      name: unlock_offline_pd
+      persist: false
+      name: unlock_offline_pwd
+      mapping:
+        - dps_val: null
+          value: null
+        - value: 1
     - id: 69
       type: string
       optional: true