SmartlockInstance
Fetch the latest data for this smartlock.
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Dict[str, Any]
|
The latest smartlock state object from the API. |
Source code in nukiwebapi/smartlock_instance.py
52 53 54 55 56 57 58 59 60 | |
Send an action command to the smartlock.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
action
|
int
|
Action code (1=unlock, 2=lock, 3=unlatch, 4=lock’n’go, 5=lock’n’go+unlatch). |
required |
option
|
int
|
Option mask (2=force, 4=full lock). |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Dict[str, Any]
|
API response. |
Source code in nukiwebapi/smartlock_instance.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | |
Lock the smartlock.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
force
|
bool
|
If True, use force option (option=2). |
False
|
full
|
bool
|
If True, request a full lock (option=4). |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Dict[str, Any]
|
API response. |
Source code in nukiwebapi/smartlock_instance.py
87 88 89 90 91 92 93 94 95 96 97 98 99 | |
Unlock the smartlock.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
force
|
bool
|
If True, use force option (option=2). |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Dict[str, Any]
|
API response. |
Source code in nukiwebapi/smartlock_instance.py
101 102 103 104 105 106 107 108 109 110 111 112 | |
Unlatch the smartlock.
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Dict[str, Any]
|
API response. |
Source code in nukiwebapi/smartlock_instance.py
114 115 116 117 118 119 120 121 | |
Perform lock ’n’ go.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
unlatch
|
bool
|
If True, perform lock ’n’ go with unlatch (action=5). |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
dict |
Dict[str, Any]
|
API response. |
Source code in nukiwebapi/smartlock_instance.py
123 124 125 126 127 128 129 130 131 132 133 | |