homebridge-dooyashade
Version:
Dooya Shade RS485 TO TCP
38 lines (37 loc) • 1.44 kB
TypeScript
import type { CharacteristicValue, PlatformAccessory } from 'homebridge';
import type { DooyashadeHomebridgePlatform } from './platform.js';
/**
* Platform Accessory
* An instance of this class is created for each accessory your platform registers
* Each accessory may expose multiple services of different service types.
*/
export declare class DooyashadePlatformAccessory {
private readonly platform;
private readonly accessory;
private service;
private currentPosition;
private targetPosition;
private positionState;
constructor(platform: DooyashadeHomebridgePlatform, accessory: PlatformAccessory);
/**
* Handle requests to get the current value of the "Current Position" characteristic
*/
handleCurrentPositionGet(): Promise<CharacteristicValue>;
/**
* Handle requests to get the current value of the "Target Position" characteristic
*/
handleTargetPositionGet(): Promise<CharacteristicValue>;
/**
* Handle requests to set the "Target Position" characteristic
*/
handleTargetPositionSet(value: CharacteristicValue): Promise<void>;
/**
* Handle requests to get the current value of the "Position State" characteristic
*/
handlePositionStateGet(): Promise<CharacteristicValue>;
/**
* Query the current position from the device
*/
queryPosition(): Promise<void>;
updateCurrentPosition(position: number): void;
}