فهرست منبع

fix(ble_pulido_p13_lock): partial revert of dp change, additional dps

- previous change from dp 26 to 36 was incorrect for the original device
  accomodate both dps by redirecting to alternate when 26 unavailable
- add code_unlock dp (61)
- add offline password last sync timestamp as sensor

PR #5019 by @gkwok1
Jason Rumney 1 هفته پیش
والد
کامیت
9d5868d6e8
1فایلهای تغییر یافته به همراه34 افزوده شده و 3 حذف شده
  1. 34 3
      custom_components/tuya_local/devices/ble_pulido_p13_lock.yaml

+ 34 - 3
custom_components/tuya_local/devices/ble_pulido_p13_lock.yaml

@@ -2,7 +2,7 @@ name: Smart lock
 products:
   - id: kdq0tdbz
     manufacturer: Pulido
-    model: P13
+    model: P13
 entities:
   - entity: lock
     dps:
@@ -53,6 +53,11 @@ entities:
         name: unlock_temp_pwd
         optional: true
         persist: false
+      - id: 61
+        type: base64
+        optional: true
+        sensitive: true
+        name: code_unlock
       - id: 62
         type: integer
         name: unlock_app
@@ -122,9 +127,10 @@ entities:
   - entity: select
     name: Auto lock delay
     icon: "mdi:lock-clock"
+    translation_key: timer
     category: config
     dps:
-      - id: 36
+      - id: 26
         type: string
         name: option
         optional: true
@@ -138,7 +144,23 @@ entities:
           - dps_val: 30s
             value: 30s
           - dps_val: 60s
-            value: 60s
+            value: 1m
+          - dps_val: null
+            value_redirect: alt
+      - id: 36
+        type: string
+        name: alt
+        optional: true
+          - dps_val: 5s
+            value: 5s
+          - dps_val: 10s
+            value: 10s
+          - dps_val: 15s
+            value: 15s
+          - dps_val: 30s
+            value: 30s
+          - dps_val: 60s
+            value: 1m
   - entity: number
     name: Lock volume
     category: config
@@ -218,3 +240,12 @@ entities:
             value: spanish
           - dps_val: Portuguese
             value: portuguese
+  - entity: sensor
+    name: Offline password last sync
+    class: timestamp
+    category: diagnostic
+    dps:
+      - id: 64
+        type: string
+        optional: true
+        name: sensor