Pārlūkot izejas kodu

BSTUOKEY invisible lock: don't persist unlock records or alert

We need unlock records to revert to null to avoid shadowing later values.
Alert also needs to revert to null to indicate the OK state.

Issue #2111
Jason Rumney 1 gadu atpakaļ
vecāks
revīzija
e4382abe51

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

@@ -20,14 +20,17 @@ primary_entity:
     - id: 15
     - id: 15
       type: integer
       type: integer
       optional: true
       optional: true
+      persist: false
       name: unlock_card
       name: unlock_card
     - id: 19
     - id: 19
       type: integer
       type: integer
       optional: true
       optional: true
+      persist: false
       name: unlock_ble
       name: unlock_ble
     - id: 21
     - id: 21
       type: string
       type: string
       optional: true
       optional: true
+      persist: false
       name: jammed
       name: jammed
       mapping:
       mapping:
         - dps_val: tongue_bad
         - dps_val: tongue_bad
@@ -77,6 +80,7 @@ secondary_entities:
       - id: 21
       - id: 21
         type: string
         type: string
         optional: true
         optional: true
+        persist: false
         name: sensor
         name: sensor
         mapping:
         mapping:
           - dps_val: null
           - dps_val: null