title | description |
---|---|
Xiaomi ZNMS13LM control via MQTT |
Integrate your Xiaomi ZNMS13LM via Zigbee2MQTT with whatever smart home infrastructure you are using without the vendors bridge or gateway. |
To contribute to this page, edit the following file
| Model | ZNMS13LM | | Vendor | Xiaomi | | Description | Aqara S2 lock pro | | Supports | open, close, operation (reporting only) | | Picture | |
None
Although Home Assistant integration through MQTT discovery is preferred, manual integration is possible with the following configuration:
{% raw %}
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 }}"
icon: "mdi:gesture-double-tap"
sensor:
- platform: "mqtt"
state_topic: "zigbee2mqtt/<FRIENDLY_NAME>"
availability_topic: "zigbee2mqtt/bridge/state"
unit_of_measurement: "lqi"
value_template: "{{ value_json.linkquality }}"
icon: "mdi:signal"
{% endraw %}