Browse Source

Locks: mark dps potentially containing credentials as sensitive.

Jason Rumney 1 year ago
parent
commit
5a54caa636

+ 8 - 0
custom_components/tuya_local/devices/ailrinni_fingerprint_lock.yaml

@@ -9,6 +9,7 @@ primary_entity:
       type: string
       name: create_unlock_method
       optional: true
+      sensitive: true
     - id: 2
       type: string
       name: delete_unlock_method
@@ -17,6 +18,7 @@ primary_entity:
       type: string
       name: modify_unlock_method
       optional: true
+      sensitive: true
     - id: 6
       type: string
       optional: true
@@ -54,6 +56,7 @@ primary_entity:
     - id: 51
       type: string
       optional: true
+      sensitive: true
       name: temp_pwd_create
     - id: 52
       type: string
@@ -62,10 +65,12 @@ primary_entity:
     - id: 53
       type: string
       optional: true
+      sensitive: true
       name: temp_pwd_modify
     - id: 54
       type: string
       optional: true
+      sensitive: true
       name: sync_method
     - id: 55
       type: integer
@@ -75,10 +80,12 @@ primary_entity:
     - id: 60
       type: string
       optional: true
+      sensitive: true
       name: remote_no_pd_setkey
     - id: 61
       type: string
       optional: true
+      sensitive: true
       name: remote_no_dp_key
     - id: 62
       type: integer
@@ -114,6 +121,7 @@ primary_entity:
     - id: 67
       type: string
       optional: true
+      sensitive: true
       name: offline_pwd_details
 secondary_entities:
   - entity: sensor

+ 3 - 1
custom_components/tuya_local/devices/ble_orion_lock.yaml

@@ -9,6 +9,7 @@ primary_entity:
       type: string
       name: unlock_method_register
       optional: true
+      sensitive: true
     - id: 2
       type: string
       name: unlock_method_delete
@@ -27,9 +28,10 @@ primary_entity:
       type: boolean
       name: lock
     - id: 54
-      type: base64
+      type: string
       name: sync_method
       optional: true
+      sensitive: true
 secondary_entities:
   - entity: sensor
     class: battery

+ 2 - 0
custom_components/tuya_local/devices/ble_pulido_p13_lock.yaml

@@ -9,6 +9,7 @@ primary_entity:
       type: string
       name: create_unlock_method
       optional: true
+      sensitive: true
     - id: 2
       type: string
       name: delete_unlock_method
@@ -17,6 +18,7 @@ primary_entity:
       type: string
       name: modify_unlock_method
       optional: true
+      sensitive: true
     - id: 12
       type: integer
       name: unlock_fingerprint

+ 2 - 0
custom_components/tuya_local/devices/ble_ysgbs01_lock.yaml

@@ -9,6 +9,7 @@ primary_entity:
       type: string
       name: create_unlock_method
       optional: true
+      sensitive: true
     - id: 2
       type: string
       name: delete_unlock_method
@@ -17,6 +18,7 @@ primary_entity:
       type: string
       name: modify_unlock_method
       optional: true
+      sensitive: true
     - id: 6
       type: string
       name: bluetooth_unlock

+ 5 - 0
custom_components/tuya_local/devices/bstuokey_invisible_lock.yaml

@@ -8,6 +8,7 @@ primary_entity:
     - id: 1
       type: string
       optional: true
+      sensitive: true
       name: unlock_method_create
     - id: 2
       type: string
@@ -16,6 +17,7 @@ primary_entity:
     - id: 3
       type: string
       optional: true
+      sensitive: true
       name: unlock_method_modify
     - id: 15
       type: integer
@@ -45,14 +47,17 @@ primary_entity:
     - id: 54
       type: string
       optional: true
+      sensitive: true
       name: synch_method
     - id: 70
       type: string
       optional: true
+      sensitive: true
       name: check_code_set
     - id: 71
       type: string
       optional: true
+      sensitive: true
       name: ble_unlock_check
 secondary_entities:
   - entity: sensor

+ 10 - 0
custom_components/tuya_local/devices/gainsboroughliberty_entrance_lock.yaml

@@ -9,6 +9,7 @@ primary_entity:
       type: string
       name: create_unlock_method
       optional: true
+      sensitive: true
     - id: 2
       type: string
       name: delete_unlock_method
@@ -17,6 +18,7 @@ primary_entity:
       type: string
       name: modify_unlock_method
       optional: true
+      sensitive: true
     - id: 12
       type: integer
       name: unlock_fingerprint
@@ -73,6 +75,7 @@ primary_entity:
     - id: 51
       type: string
       optional: true
+      sensitive: true
       name: temp_pwd_create
     - id: 52
       type: string
@@ -81,10 +84,12 @@ primary_entity:
     - id: 53
       type: string
       optional: true
+      sensitive: true
       name: temp_pwd_modify
     - id: 54
       type: string
       optional: true
+      sensitive: true
       name: sync_method
     - id: 55
       type: integer
@@ -94,6 +99,7 @@ primary_entity:
     - id: 61
       type: string
       optional: true
+      sensitive: true
       name: remote_no_dp_key
     - id: 62
       type: integer
@@ -129,6 +135,7 @@ primary_entity:
     - id: 67
       type: string
       optional: true
+      sensitive: true
       name: offline_pwd_details
     - id: 69
       type: string
@@ -137,14 +144,17 @@ primary_entity:
     - id: 70
       type: string
       optional: true
+      sensitive: true
       name: check_code_set
     - id: 71
       type: string
       optional: true
+      sensitive: true
       name: ble_unlock_check
     - id: 72
       type: string
       optional: true
+      sensitive: true
       name: remote_pd_setkey_check
 secondary_entities:
   - entity: sensor

+ 10 - 0
custom_components/tuya_local/devices/nice_digi_lock.yaml

@@ -9,6 +9,7 @@ primary_entity:
       type: string
       name: unlock_method_create
       optional: true
+      sensitive: true
     - id: 2
       type: string
       name: unlock_method_delete
@@ -17,6 +18,7 @@ primary_entity:
       type: string
       name: unlock_method_modify
       optional: true
+      sensitive: true
     - id: 12
       type: integer
       name: unlock_fingerprint
@@ -46,10 +48,12 @@ primary_entity:
       type: string
       name: sync_method
       optional: true
+      sensitive: true
     - id: 61
       type: string
       name: remote_no_dp_key
       optional: true
+      sensitive: true
     - id: 62
       type: integer
       name: unlock_app
@@ -59,14 +63,17 @@ primary_entity:
       type: string
       name: check_code_set
       optional: true
+      sensitive: true
     - id: 71
       type: string
       name: ble_unlock_check
       optional: true
+      sensitive: true
     - id: 73
       type: string
       name: remote_pd_setkey_check
       optional: true
+      sensitive: true
 secondary_entities:
   - entity: sensor
     class: battery
@@ -85,7 +92,10 @@ secondary_entities:
         type: string
         name: event
         optional: true
+        persist: false
         mapping:
+          - dps_val: null
+            value: ok
           - dps_val: wrong_finger
             value: wrong_finger
           - dps_val: wrong_password

+ 8 - 0
custom_components/tuya_local/devices/tediton_k7_doorlock.yaml

@@ -57,27 +57,33 @@ primary_entity:
     - id: 25
       type: string
       optional: true
+      sensitive: true
       name: update_all_finger
     - id: 26
       type: string
       optional: true
+      sensitive: true
       name: update_all_password
     - id: 27
       type: string
       optional: true
+      sensitive: true
       name: update_all_card
     - id: 28
       type: string
       optional: true
+      sensitive: true
       name: update_all_face
     - id: 31
       type: string
       optional: true
+      sensitive: true
       name: update_all_fin_vein
     - id: 32
       type: string
       name: offline_pd
       optional: true
+      sensitive: true
     - id: 33
       type: string
       name: offline_clear
@@ -86,10 +92,12 @@ primary_entity:
       type: string
       name: remote_no_pd_setkey
       optional: true
+      sensitive: true
     - id: 50
       type: string
       name: remote_no_pd_key
       optional: true
+      sensitive: true
     - id: 57
       type: string
       name: lock_record

+ 11 - 1
custom_components/tuya_local/devices/xcase_nx4964_lockbox.yaml

@@ -8,6 +8,7 @@ primary_entity:
     - id: 1
       type: string
       optional: true
+      sensitive: true
       name: unlock_method_create
     - id: 2
       type: string
@@ -16,6 +17,7 @@ primary_entity:
     - id: 3
       type: string
       optional: true
+      sensitive: true
       name: unlock_method_modify
     - id: 13
       type: integer
@@ -35,6 +37,7 @@ primary_entity:
     - id: 51
       type: string
       optional: true
+      sensitive: true
       name: temp_pwd_create
     - id: 52
       type: string
@@ -43,10 +46,12 @@ primary_entity:
     - id: 53
       type: string
       optional: true
+      sensitive: true
       name: temp_pwd_modify
     - id: 54
       type: string
       optional: true
+      sensitive: true
       name: sync_method
     - id: 55
       type: integer
@@ -56,6 +61,7 @@ primary_entity:
     - id: 61
       type: string
       optional: true
+      sensitive: true
       name: remote_no_dp_key
     - id: 62
       type: integer
@@ -89,19 +95,23 @@ primary_entity:
     - id: 70
       type: string
       optional: true
+      sensitive: true
       name: check_code_set
     - id: 71
       type: string
       optional: true
+      sensitive: true
       name: ble_unlock_check
     - id: 72
       type: string
       optional: true
+      sensitive: true
       name: general_unlock_check
     - id: 73
       type: string
       optional: true
-      name: remote_pd_setkeey_check
+      sensitive: true
+      name: remote_pd_setkey_check
 secondary_entities:
   - entity: sensor
     class: battery