ym88659208ym87991671
Function child_lock | Documentation for developers

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

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
}
}
]
}
Sber process cookies only to personalize services according to Cookies Usage Policy. You can prevent the processing of cookies in your browser settings.