Skip to main content

Lock — lock v1

Capabilities

Declared in the driver manifest under [[proxy]] capabilities. Anything not declared takes the default below.

CapabilityTypeDefaultMeaning
has_batteryboolfalse
has_jam_detectionboolfalse
has_user_codesboolfalse
max_user_codesu320
reports_whoboolfalseReports which user code operated the lock
supports_auto_lockboolfalse

Commands

lock

No parameters.

set_auto_lock

Only present when supports_auto_lock is declared true.

ParameterTypeNotes
secondsu32 0–3600

unlock

No parameters.

Notifications

battery_changed

Only present when has_battery is declared true.

ParameterTypeNotes
percentu8 0–100

jammed

Only present when has_jam_detection is declared true.

No parameters.

lock_changed

ParameterTypeNotes
lockedbool
sourceone of manual · remote · code · auto · unknown (optional)
userstring (optional)

online_changed

ParameterTypeNotes
onlinebool

State

Last-known values core keeps for a binding of this proxy.

KeyTypeMeaning
batteryu8
lockedbool
onlinebool