Global Variable


The battery level of the accessory.


let HMCharacteristicTypeBatteryLevel: String


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

See Also

Power and Switches

let HMCharacteristicTypeChargingState: String

The charging state of a battery.

let HMCharacteristicTypeContactState: String

The state of a contact sensor.

let HMCharacteristicTypePowerState: String

The power state of the accessory.

let HMCharacteristicTypeOutputState: String

The output state of a programmable switch.

let HMCharacteristicTypeInputEvent: String

The input event of a programmable switch.