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

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 лет назад
Родитель
Сommit
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"
       # this is a guess for "lock_motor_state"
       name: jammed
       name: jammed
       optional: true
       optional: true
+      persist: false
       mapping:
       mapping:
         - dps_val: null
         - dps_val: null
           value: false
           value: false
@@ -25,31 +26,38 @@ primary_entity:
       type: string
       type: string
       name: unlock_fingerprint
       name: unlock_fingerprint
       optional: true
       optional: true
+      persist: false
     - id: 11
     - id: 11
       type: string
       type: string
       name: unlock_password
       name: unlock_password
       optional: true
       optional: true
+      persist: false
     - id: 12
     - id: 12
       type: string
       type: string
       name: unlock_card
       name: unlock_card
       optional: true
       optional: true
+      persist: false
     - id: 15
     - id: 15
       type: string
       type: string
       # "double" in Tuya doc, but no idea what that means.  Key is unused.
       # "double" in Tuya doc, but no idea what that means.  Key is unused.
       name: unlock_key
       name: unlock_key
       optional: true
       optional: true
+      persist: false
     - id: 16
     - id: 16
       type: string
       type: string
       name: unlock_temp_pwd
       name: unlock_temp_pwd
       optional: true
       optional: true
+      persist: false
     - id: 17
     - id: 17
       type: string
       type: string
       name: unlock_offline_pwd
       name: unlock_offline_pwd
       optional: true
       optional: true
+      persist: false
     - id: 22
     - id: 22
       type: string
       type: string
       name: unlock_app
       name: unlock_app
       optional: true
       optional: true
+      persist: false
     - id: 23
     - id: 23
       type: string
       type: string
       name: lock_alarm_kit
       name: lock_alarm_kit