ym88659208ym87991671
Function battery_percentage | Documentation SmartMarket
Skip to main content

battery_percentage

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, the range and interval of values taken by the function can be changed.

Devices with this function

Examples of voice commands

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

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

Function description for a device model

"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"
}
}
]
}
Last updated on August 26, 2022