mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Document locking and unlocking for MQTT lock (#25728)
Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
This commit is contained in:
parent
5f0a5aa274
commit
234ecccbcc
@ -20,6 +20,7 @@ Optimistic mode can be forced, even if state topic is available. Try to enable i
|
||||
|
||||
It's mandatory for locks to support `lock` and `unlock`. A lock may optionally support `open`, (e.g. to open the bolt in addition to the latch), in this case, `payload_open` is required in the configuration. If the lock is in optimistic mode, it will change states to `unlocked` when handling the `open` command.
|
||||
|
||||
An MQTT lock can also report the intermediate states `unlocking` and `locking`.
|
||||
<a id='new_format'></a>
|
||||
|
||||
To enable MQTT locks in your installation, add the following to your `configuration.yaml` file:
|
||||
@ -198,6 +199,11 @@ state_locked:
|
||||
required: false
|
||||
type: string
|
||||
default: LOCKED
|
||||
state_locking:
|
||||
description: The payload sent to by the lock when it's locking.
|
||||
required: false
|
||||
type: string
|
||||
default: LOCKING
|
||||
state_topic:
|
||||
description: The MQTT topic subscribed to receive state updates.
|
||||
required: false
|
||||
@ -207,6 +213,11 @@ state_unlocked:
|
||||
required: false
|
||||
type: string
|
||||
default: UNLOCKED
|
||||
state_unlocking:
|
||||
description: The payload sent to by the lock when it's unlocking.
|
||||
required: false
|
||||
type: string
|
||||
default: UNLOCKING
|
||||
unique_id:
|
||||
description: An ID that uniquely identifies this lock. If two locks have the same unique ID, Home Assistant will raise an exception.
|
||||
required: false
|
||||
|
@ -432,7 +432,9 @@ Configuration variable names in the discovery payload may be abbreviated to cons
|
||||
'stat_opening': 'state_opening',
|
||||
'stat_stopped': 'state_stopped',
|
||||
'stat_locked': 'state_locked',
|
||||
'stat_locking': 'state_locking',
|
||||
'stat_unlocked': 'state_unlocked',
|
||||
'stat_unlocking': 'state_unlocking',
|
||||
'stat_t': 'state_topic',
|
||||
'stat_tpl': 'state_template',
|
||||
'stat_val_tpl': 'state_value_template',
|
||||
|
Loading…
x
Reference in New Issue
Block a user