volume_int
Last updated on April 4, 2025
Data type: INTEGER(0, 999).
Usage method: stores the device state and can change it.
Purpose: the volume level of the device. It takes values from 0 to 100 in increments of 1. When describing the device model, you can shorten the range of values accepted by the function or change their interval. For more information, see Allowed values of functions.
Devices with this function
tv — TV.
Examples of voice commands
— Салют, установи громкость на телевизоре на 23 (Salute, set the volume on the TV to 23)
— Салют, сделай минимальную громкость на ТВ (Salute, set the minimum volume on TV)
Function description for a device model
The function must be added to the model descriptions of all devices that support it.
"features": [
"volume_int",
// ...
]
Function state description example
In the example, the volume on the TV is set to 30.
{
"states": [
{
"key": "volume_int",
"value": {
"type": "INTEGER",
"integer_value": "30"
}
}
]
}