button_top_left_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 upper left 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_top_left_event",
// ...
]
Function state description example
The example describes a scenario button, the upper left button of which was pressed once.
{
"states": [
{
"key": "button_top_left_event",
"value": {
"type": "ENUM",
"enum_value": "click"
}
}
]
}