number
Last updated on April 4, 2025
Data type: INTEGER(0, 9).
Usage method: does not store the device state but can change it.
Purpose: notifies which digital button was pressed on the remote control. Takes values from 0 to 9 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
No voice commands are available.
Function description for a device model
The function must be added to the model descriptions of all devices that support it.
"features": [
"number",
// ...
]
Function state description example
The example describes a device on whose remote control the number 1 was pressed.
{
"states": [
{
"key": "number",
"value": {
"type": "INTEGER",
"integer_value": "1"
}
}
]
}