To contribute to this page, edit the following file

Xiaomi ZNMS11LM #

Model ZNMS11LM
Vendor Xiaomi
Description Xiaomi Aqara smart lock
Exposes state, reverse, action, linkquality
Picture Xiaomi ZNMS11LM

Notes #

Device type specific configuration #

How to use device type specific configuration

OTA updates #

This device supports OTA updates, for more information see OTA updates.

Exposes #

State (binary) #

Value can be found in the published state on the state property. It’s not possible to read (/get) or write (/set) this value. If value equals UNLOCK state is ON, if LOCK OFF.

Reverse (binary) #

Value can be found in the published state on the reverse property. It’s not possible to read (/get) or write (/set) this value. If value equals UNLOCK reverse is ON, if LOCK OFF.

Action (enum) #

Value can be found in the published state on the action property. It’s not possible to read (/get) or write (/set) this value. The possible values are: finger_not_match, password_not_match, reverse_lock, reverse_lock_cancel, locked, lock_opened, finger_add, finger_delete, password_add, password_delete, lock_opened_inside, lock_opened_outside, ring_bell, change_language_to, finger_open, password_open, door_closed.

Linkquality (numeric) #

Link quality (signal strength). Value can be found in the published state on the linkquality property. It’s not possible to read (/get) or write (/set) this value. The minimal value is 0 and the maximum value is 255. The unit of this value is lqi.

Manual Home Assistant configuration #

Although Home Assistant integration through MQTT discovery is preferred, manual integration is possible with the following configuration:

binary_sensor:
  - platform: "mqtt"
    state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
    availability_topic: "zigbee2mqtt/bridge/state"
    value_template: "{{ value_json.state }}"
    payload_on: "UNLOCK"
    payload_off: "LOCK"

binary_sensor:
  - platform: "mqtt"
    state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
    availability_topic: "zigbee2mqtt/bridge/state"
    value_template: "{{ value_json.reverse }}"
    payload_on: "UNLOCK"
    payload_off: "LOCK"

sensor:
  - platform: "mqtt"
    state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
    availability_topic: "zigbee2mqtt/bridge/state"
    value_template: "{{ value_json.action }}"
    enabled_by_default: true
    icon: "mdi:gesture-double-tap"

sensor:
  - platform: "mqtt"
    state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
    availability_topic: "zigbee2mqtt/bridge/state"
    value_template: "{{ value_json.linkquality }}"
    unit_of_measurement: "lqi"
    enabled_by_default: false
    icon: "mdi:signal"
    state_class: "measurement"

sensor:
  - platform: "mqtt"
    state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
    availability_topic: "zigbee2mqtt/bridge/state"
    icon: "mdi:update"
    value_template: "{{ value_json['update']['state'] }}"
    enabled_by_default: false

binary_sensor:
  - platform: "mqtt"
    state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
    availability_topic: "zigbee2mqtt/bridge/state"
    payload_on: true
    payload_off: false
    value_template: "{{ value_json.update_available}}"
    enabled_by_default: false