ym88659208ym87991671
Function button_2_event | Documentation for developers

button_2_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 second 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_2_event",
// ...
]

Function state description example

The example describes a scenario button, the second button of which was pressed once.

{
"states": [
{
"key": "button_2_event",
"value": {
"type": "ENUM",
"enum_value": "click"
}
}
]
}
Sber process cookies only to personalize services according to Cookies Usage Policy. You can prevent the processing of cookies in your browser settings.