ym88659208ym87991671
Function power | Documentation for developers

power

Last updated on June 17, 2024

Data type: INTEGER(0, 50000).

Usage method: stores the device state without changing it.

Purpose: shows the power consumed by the device. E.g. the power consumed by an iron connected to the socket. It takes values from the range of 0-50,000 W at an interval of 1 W.

When describing the device model, the range and interval of values taken by the function can be changed.

Devices with this function

  • socket – sockets, extension cables, etc.
  • relay – relay.

Examples of voice commands

The user can find out the power by asking: «Салют, работает ли <название розетки>?» (“Salute, is <socket_name> working?”). The assistant will provide him/her not only with the socket status, but also with the current power. If the device consumes less than 5 W, the assistant will not indicate the consumed power.

Besides, power is reflected in the interface of the Salute app, on SberPortal, SberBox and other devices with Salute assistants.

Function description for a device model

The function must be added to the model descriptions of all devices that support it.

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

Function state description example

The example describes a device passed through by 2,500 W current.

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