Skip to content

Search the documentation

Kit
Firmware

Battery

Smart Home

Measures the battery’s voltage, which drops as the battery empties.

The Battery class is reached through this attribute of home.

Always there.

All the attributes of home are in its table.

The battery’s voltage in volts, measured now, to two decimals (through a 20k/10k divider).

voltage() -> float

Used in examples: Doorbell