Global Variable

HMCharacteristicTypeBatteryLevel

The battery level of the accessory.

Declaration

NSString *const HMCharacteristicTypeBatteryLevel;

Discussion

The corresponding value is an integer that’s the percentage of total battery capacity remaining.

See Also

Power and Switches

HMCharacteristicTypeChargingState

The charging state of a battery.

HMCharacteristicTypeContactState

The state of a contact sensor.

HMCharacteristicTypeOutletInUse

The state of an outlet.

HMCharacteristicTypePowerState

The power state of the accessory.

HMCharacteristicTypeStatusLowBattery

A low battery indicator.

HMCharacteristicTypeOutputState

The output state of a programmable switch.

HMCharacteristicTypeInputEvent

The input event of a programmable switch.