Skip to content

8.5.0-beta - [BREAKING CHANGE] Lock improvements

Pre-release
Pre-release

Choose a tag to compare

@Ernst79 Ernst79 released this 04 Apr 15:29

BREAKING CHANGES in 8.5.0-beta

  • Lock states were reversed for the binary (lock) sensor: 0=>locked 1=>unlocked. This PR fixes that issue. This applies to all all Xiaomi locks, although it has only been tested on the ZNMS17LM model (by @vincent-k).

  • ZNMS17LM is reporting lock, anti-lock & child-lock events. Using these on the same sensor/lock leads
    to an incorrect global state. Eg. when the door is fully locked (main lock + anti-lock), if we release only the anti-lock then the sensor goes to unlocked state which is incorrect. This commit decouples the lock into three distinct sensors: 'lock', 'anti-lock' & 'child-lock' to avoid such issues (by @vincent-k).

    Note: this only targets 'ZNMS17LM' model to keep a selective approach (some users may prefer the global version and some other Xiaomi locks may not be reporting those states).

NEW FEATURES

  • Added a door sensor to ZNMS16LM. If you think the ZNMS17LM (or any of the other lock sensors) also reports the door status, let us know, such that we can test it.