List of functions
The toggle
skill has functions. Functions have parameters and voice scenarios that let you describe the skills for the device.
Function |
Description |
This function turns on the backlight. |
|
This function enables parental locks. |
|
This function turns on the ionizer. |
|
This function turns on "keep warm" mode. |
|
This function mutes the sound on the device. |
|
This function turns on oscillation or rotation. For example, it can set the fan to oscillate. |
|
This function pauses the current device activity. For example, it can pause movie playback or a robotic vacuum cleaner. |
backlight
This function turns on the backlight.
Below is the description of the parameters
object from the Description of capability section.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for this capability. Acceptable values: |
-
Алиса, включи подсветку на телевизоре.
Translation: Alice, turn on the TV backlight.
-
Алиса, выключи подсветку чайника.
Translation: Alice, turn off the teapot backlight.
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "backlight"
}
...
}
Examples of devices with the backlight function
controls_locked
This function enables parental locks.
Below is the description of the parameters
object from the Description of capability section.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for this capability. Acceptable values: |
-
Алиса, заблокируй управление на стиральной машине.
Translation: Alice, lock the controls on the washing machine.
-
Алиса, включи детский режим на телевизоре.
Translation: Alice, turn on parental lock on the TV.
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "controls_locked"
}
...
}
Examples of devices with the controls_locked function
ionization
This function turns on the ionizer.
Below is the description of the parameters
object from the Description of capability section.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for this capability. Acceptable values: |
-
Алиса, включи ионизатор на кондиционере.
Translation: Alice, turn on the ionizer on the air conditioner.
-
Алиса, выключи ионизацию на увлажнителе.
Translation: Alice, turn off ionization on the humidifier.
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "ionization"
}
...
}
Examples of devices with the ionization function
keep_warm
This function turns on "keep warm" mode.
Below is the description of the parameters
object from the Description of capability section.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for this capability. Acceptable values: |
-
Алиса, включи поддержание тепла на чайнике.
Translation: Alice, set the kettle to keep warm.
-
Алиса, поддерживай тепло в чайнике.
Translation: Alice, keep the kettle warm.
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "keep_warm"
}
...
}
Examples of devices with the keep_warm function
mute
This function mutes the sound on the device.
Below is the description of the parameters
object from the Description of capability section.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for this capability. Acceptable values: |
-
Алиса, выключи звук на телевизоре.
Translation: Alice, mute the TV.
-
Алиса, выключи звук телевизора.
Translation: Alice, mute the TV.
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "mute"
}
...
}
Examples of devices with the mute function
oscillation
This function turns on oscillation or rotation. For example, it can set the fan to oscillate.
Below is the description of the parameters
object from the Description of capability section.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for this capability. Acceptable values: |
-
Алиса, включи вращение на вентиляторе.
Translation: Alice, set the fan to oscillate.
-
Алиса, выключи вращение нагревателя.
Translation: Alice, turn off oscillation for the heater.
-
Алиса, включи вращение на кондиционере.
Translation: Alice, turn on oscillation on the air conditioner.
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "oscillation"
}
...
}
Examples of devices with the oscillation function
pause
This function pauses the current device activity. For example, it can pause movie playback or a robotic vacuum cleaner.
Below is the description of the parameters
object from the Description of capability section.
parameters
object
Parameter |
Type |
Description |
instance |
String |
Function name for this capability. Acceptable values: |
-
Алиса, поставь паузу на телевизоре.
Translation: Alice, pause the TV.
-
Алиса, поставь пылесос на паузу.
Translation: Alice, put the vacuum cleaner on pause.
-
Алиса, сними телевизор с паузы.
Translation: Alice, unpause the TV.
Use this function to describe the features of various devices:
Example of the parameters
object
See the full example in Example of use.
{
...
"parameters": {
"instance": "pause"
}
...
}
Examples of devices with the pause function
String enclosed in quotation marks, for example: "Hello, world"
.