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

fix (locks): use correct sensor dp name, and mark sensors hidden.

The advanced use offline password detection sensors should be marked
hidden, as they are just cryptic noise to normal users.
Jason Rumney 3 месяцев назад
Родитель
Сommit
fa22b3a8c5

+ 3 - 3
custom_components/tuya_local/devices/hornbill_y4_smart_lock.yaml

@@ -502,11 +502,11 @@ entities:
       - id: 64
       - id: 64
         type: string
         type: string
         optional: true
         optional: true
-        persist: false
         name: value
         name: value
   - entity: sensor
   - entity: sensor
     name: Used offline password
     name: Used offline password
     category: diagnostic
     category: diagnostic
+    hidden: true
     dps:
     dps:
       # [Offline password clear] When a single offline password is cleared
       # [Offline password clear] When a single offline password is cleared
       # locally on the device, the clearing operation record is reported.
       # locally on the device, the clearing operation record is reported.
@@ -517,12 +517,12 @@ entities:
   - entity: sensor
   - entity: sensor
     name: Cleared offline passwords
     name: Cleared offline passwords
     category: diagnostic
     category: diagnostic
+    hidden: true
     dps:
     dps:
       # [Offline password clear] When all offline passwords are cleared locally
       # [Offline password clear] When all offline passwords are cleared locally
       # on the device, the clearing operation record is reported.
       # on the device, the clearing operation record is reported.
       - id: 66
       - id: 66
         type: base64
         type: base64
         optional: true
         optional: true
-        persist: false
         sensitive: true
         sensitive: true
-        name: value
+        name: sensor

+ 1 - 0
custom_components/tuya_local/devices/orion_dl033ha_lock.yaml

@@ -506,6 +506,7 @@ entities:
     name: Cleared offline passwords
     name: Cleared offline passwords
     icon: "mdi:lock-remove"
     icon: "mdi:lock-remove"
     category: diagnostic
     category: diagnostic
+    hidden: true
     dps:
     dps:
       - id: 66
       - id: 66
         type: string
         type: string