paresy/HomeKit

View on GitHub
HomeKitBridge/characteristics/carbonMonoxideDetected.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

class HAPCharacteristicCarbonMonoxideDetected extends HAPCharacteristic
{
    const Normal = 0;
    const Abnormal = 1;

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