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

backlight

This function turns on the backlight.

controls_locked

This function enables parental locks.

ionization

This function turns on the ionizer.

keep_warm

This function turns on "keep warm" mode.

mute

This function mutes the sound on the device.

oscillation

This function turns on oscillation or rotation. For example, it can set the fan to oscillate.

pause

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: backlight.

  1. Алиса, включи подсветку на телевизоре.

    Translation: Alice, turn on the TV backlight.

  2. Алиса, выключи подсветку чайника.

    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

  1. devices.types.light
  2. devices.types.socket
  3. devices.types.switch
  4. devices.types.media_device.tv
  5. devices.types.cooking.kettle

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: controls_locked.

  1. Алиса, заблокируй управление на стиральной машине.

    Translation: Alice, lock the controls on the washing machine.

  2. Алиса, включи детский режим на телевизоре.

    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

  1. devices.types.media_device.tv
  2. devices.types.cooking.kettle
  3. devices.types.washing_machine
  4. devices.types.dishwasher

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: ionization.

  1. Алиса, включи ионизатор на кондиционере.

    Translation: Alice, turn on the ionizer on the air conditioner.

  2. Алиса, выключи ионизацию на увлажнителе.

    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

  1. devices.types.thermostat.ac
  2. devices.types.humidifier
  3. devices.types.purifier

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: keep_warm.

  1. Алиса, включи поддержание тепла на чайнике.

    Translation: Alice, set the kettle to keep warm.

  2. Алиса, поддерживай тепло в чайнике.

    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

  1. devices.types.cooking
  2. devices.types.cooking.kettle

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: mute.

  1. Алиса, выключи звук на телевизоре.

    Translation: Alice, mute the TV.

  2. Алиса, выключи звук телевизора.

    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

  1. devices.types.media_device
  2. devices.types.media_device.tv
  3. devices.types.media_device.tv_box
  4. devices.types.media_device.receiver

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: oscillation.

  1. Алиса, включи вращение на вентиляторе.

    Translation: Alice, set the fan to oscillate.

  2. Алиса, выключи вращение нагревателя.

    Translation: Alice, turn off oscillation for the heater.

  3. Алиса, включи вращение на кондиционере.

    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

  1. devices.types.thermostat
  2. devices.types.thermostat.ac

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: pause.

  1. Алиса, поставь паузу на телевизоре.

    Translation: Alice, pause the TV.

  2. Алиса, поставь пылесос на паузу.

    Translation: Alice, put the vacuum cleaner on pause.

  3. Алиса, сними телевизор с паузы.

    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

  1. devices.types.cooking
  2. devices.types.media_device
  3. devices.types.media_device.tv
  4. devices.types.media_device.tv_box
  5. devices.types.media_device.receiver
  6. devices.types.vacuum_cleaner
  7. devices.types.washing_machine

String enclosed in quotation marks, for example: "Hello, world".