homebridge-panda-pwr
Version:
This is a Homebridge plugin for Panda Pwr, it works with the Panda Pwr API to control your Panda Pwr devices.
30 lines (29 loc) • 929 B
TypeScript
import { CharacteristicValue, PlatformAccessory } from 'homebridge';
import type { PandaPwrPlatform } from './platform.js';
export declare class PandaPwrPlatformAccessory {
private readonly platform;
private readonly accessory;
private readonly pandaGetStateUrl;
private readonly pandaUpdateUrl;
private readonly pandaSetUrl;
private lastExecutionTime;
private readonly pandaUrl;
private voltageService;
private batteryService;
private service;
private pandaPwrStates;
constructor(platform: PandaPwrPlatform, accessory: PlatformAccessory);
private getPandaData;
/**
* Handle "SET" requests from HomeKit
*/
setOn(value: CharacteristicValue): Promise<void>;
/**
* Handle "GET" requests from HomeKit
*/
getOn(): Promise<CharacteristicValue>;
/**
* Function to send power command to Panda device
*/
private sendPowerCommand;
}