ym88659208ym87991671
Function button_right_event | Documentation for developers
Skip to main content

button_right_event

Last updated on August 26, 2022

Data type: ENUM.

Usage method: stores the device state and can change it.

Purpose: notifies about pressing the right 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

"features": [
"button_right_event",
// ...
]

Function state description example

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

{
"states": [
{
"key": "button_right_event",
"value": {
"type": "ENUM",
"enum_value": "click"
}
}
]
}