소스 검색

Lucking HS6: set unlock dps to not persist.

If they persist, then the same one is always picked up as the unlock reason.
They need to not persist so that the latest one is always recognised.

Issue #796
Jason Rumney 2 년 전
부모
커밋
6b7c679871
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      custom_components/tuya_local/devices/lucking_hs6_lock.yaml

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

@@ -18,6 +18,7 @@ primary_entity:
       # this is a guess for "lock_motor_state"
       name: jammed
       optional: true
+      persist: false
       mapping:
         - dps_val: null
           value: false
@@ -25,31 +26,38 @@ primary_entity:
       type: string
       name: unlock_fingerprint
       optional: true
+      persist: false
     - id: 11
       type: string
       name: unlock_password
       optional: true
+      persist: false
     - id: 12
       type: string
       name: unlock_card
       optional: true
+      persist: false
     - id: 15
       type: string
       # "double" in Tuya doc, but no idea what that means.  Key is unused.
       name: unlock_key
       optional: true
+      persist: false
     - id: 16
       type: string
       name: unlock_temp_pwd
       optional: true
+      persist: false
     - id: 17
       type: string
       name: unlock_offline_pwd
       optional: true
+      persist: false
     - id: 22
       type: string
       name: unlock_app
       optional: true
+      persist: false
     - id: 23
       type: string
       name: lock_alarm_kit