ym88659208ym87991671
Function battery_percentage | Documentation for developers

battery_percentage

Last updated on April 4, 2025

Data type: INTEGER(0, 100).

Usage method: stores the device state without changing it.

Purpose: shows the battery charge level. It takes values from the range of 0-100% at an interval of 1%.

When describing the device model, you can shorten the range of values accepted by the function or change their interval. For more information, see Allowed values of functions.

Devices with this function

Examples of voice commands

— Салют, какой заряд батареи датчика движения в процентах? (Salute, what is the percentage of motion sensor's battery charge?)

— Салют, расскажи, какой заряд у батареи жалюзи? (Salute, tell me, what is the window blind's battery charge?)

— Салют, проверь заряд пылесоса (Salute, check the charge of the vacuum cleaner)

Function description for a device model

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

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

Function state description example

The example describes a device with the battery charge level of 75%.

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