kind3r / hass-addons

Integration of the offline TTLock sdk into Home Assistant
66 stars 26 forks source link

STATUS UPDATE ISSUE #28

Open ftarolli opened 3 years ago

ftarolli commented 3 years ago

Locking and unlocking actually working but interface is getting wrong status from the lock. After pressing "unlock" the lock is moving and status correctly changed to "locked" while after couple of seconds it changes back to "unlocked" but the lock is locked....

under configuration I've tried to play with "autoLockTime" moving from "-1" to "0" but nothing happened. wondering what "lockedStatus = 0" means...

kind3r commented 3 years ago
export enum LockedStatus {
  UNKNOWN = -1,
  LOCKED = 0,
  UNLOCKED = 1
}

Hi, autoLockTime should not be -1 unless there was an error reading the data from the lock.