child_lock
Last updated on June 17, 2024
Data type: BOOL.
Usage method: stores the device state and can change it.
Purpose: manages the child safety lock:
true
– lock on. E.g. there is a blocked power button on the socket: it does not respond if pressed.false
– lock off. E.g. the power button on the socket is unblocked: if pressed, it turns on/off.
Devices with this function
- kettle – kettles.
- socket – sockets, extension cables, etc.
- vacuum_cleaner — vacuum cleaners.
Examples of voice commands
— Салют, заблокируй розетку (Salute, lock the socket)
— Салют, разблокируй удлинитель (Salute, unlock the extension cable)
Function description for a device model
The function must be added to the model descriptions of all devices that support it.
"features": [
"child_lock",
// ...
]
Function state description example
The example describes a device with a switched-on safety child lock.
{
"states": [
{
"key": "child_lock",
"value": {
"type": "BOOL",
"bool_value": true
}
}
]
}