button_10_event
Last updated on June 17, 2024
Data type: ENUM.
Usage method: stores the device state and can change it.
Purpose: notifies about pressing the tenth button. Possible types of pressing:
click
– single press.double_click
– double press.long_press
– long press.
When describing the device model, the list of pressing types can be shortened.
Devices with this function
scenario_button – scenario buttons.
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": [
"button_10_event",
// ...
]
Function state description example
The example describes a scenario button, the tenth button of which was pressed once.
{
"states": [
{
"key": "button_10_event",
"value": {
"type": "ENUM",
"enum_value": "click"
}
}
]
}