paresy/HomeKit

View on GitHub
HomeKitBridge/services/airPurifier.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

class HAPServiceAirPurifier extends HAPService
{
    public function __construct()
    {
        parent::__construct(
            0xBB,
            [
                //Required Characteristics
                new HAPCharacteristicActive(),
                new HAPCharacteristicCurrentAirPurifierState(),
                new HAPCharacteristicTargetAirPurifierState()
            ],
            [
                //Optional Characteristics
                new HAPCharacteristicName(),
                new HAPCharacteristicRotationSpeed(),
                new HAPCharacteristicSwingMode(),
                new HAPCharacteristicLockPhysicalControls()
            ]
        );
    }
}