paresy/HomeKit

View on GitHub
HomeKitBridge/characteristics/statusLowBattery.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

class HAPCharacteristicStatusLowBattery extends HAPCharacteristic
{
    const BatteryLevelNormal = 0;
    const BatteryLevelLow = 1;

    public function __construct()
    {
        parent::__construct(
            0x79,
            HAPCharacteristicFormat::UnsignedInt8,
            [
                HAPCharacteristicPermission::PairedRead,
                HAPCharacteristicPermission::Notify
            ],
            0,
            1,
            1
        );
    }
}