@homebridge-plugins/homebridge-plugin-update-check
Version:
A Homebridge plugin for checking for updates to Homebridge and plugins
34 lines • 1.11 kB
TypeScript
import type { API, Logging, PlatformAccessory } from 'homebridge';
/**
* Manages a failure sensor for automatic update operations.
* This sensor is triggered when automatic updates fail.
*/
export declare class FailureSensor {
private readonly log;
private readonly hap;
private readonly sensorInfo;
private service?;
constructor(log: Logging, api: API, sensorType?: string);
/**
* Configure the failure sensor service on the given accessory
*/
configureService(accessory: PlatformAccessory): void;
/**
* Add the failure sensor service to a new accessory
*/
addToAccessory(accessory: PlatformAccessory): void;
/**
* Set the failure sensor state
* @param failed - true if failure detected, false for normal operation
*/
setState(failed: boolean): void;
/**
* Get the sensor info for the configured failure sensor type
*/
private getSensorInfo;
/**
* Check and configure the failure service for a specific service type
*/
private checkFailureService;
}
//# sourceMappingURL=failureSensor.d.ts.map