custom_key
Last updated on November 5, 2024
Data type: ENUM.
Usage method: does not store the device state but can change it.
Purpose: notifies which button was pressed on the remote control:
confirm
— the confirmation button (OK).back
— the button to return to the previous screen.home
— the button to go to the home screen.play
— the button to start playback.pause
— the button to pause playback.previous
— the button to go to the previous object, such as a video file.next
— the button to go to the next object, such as a video file.
When describing the device model, the list of available buttons can be shortened.
Devices with this function
tv — TV.
Examples of voice commands
— Салют, включи следующее видео (Salute, turn on the following video)
— Салют, включи предыдущее видео (Salute, turn on the previous video)
— Салют, продолжи воспроизведение на телевизоре (Salute, continue playing on the TV)
— Салют, поставь ТВ на паузу (Salute, pause TV)
— Салют, назад (Salute, back)
— Салют, домой (Salute, home)
— Салют, нажми (Salute, push)
Function description for a device model
The function must be added to the model descriptions of all devices that support it.
"features": [
"custom_key",
// ...
]
Function state description example
In the example, playback on the TV is paused.
{
"states": [
{
"key": "custom_key",
"value": {
"type": "ENUM",
"enum_value": "pause"
}
}
]
}