homebridge-hilo
Version:
Plugin Homebridge (non officiel) pour la passerelle et les appareils Hilo de Hydro-Québec | Unofficial Homebridge plugin for Hydro-Québec Hilo bridge and devices
51 lines • 1.46 kB
TypeScript
import { BasicDimmer, BasicLight, BasicThermostat, Device, HeatingFloorThermostat } from "../graphql/graphql";
export declare const SUPPORTED_DEVICES: string[];
export type SupportedDevice = (typeof SUPPORTED_DEVICES)[number];
export type Challenge = {
progress: string;
isParticipating: boolean;
isConfigurable: boolean;
id: number;
period: "am" | "pm";
phases: {
preheatStartDateUTC: string;
preheatEndDateUTC: string;
reductionStartDateUTC: string;
reductionEndDateUTC: string;
recoveryStartDateUTC: string;
recoveryEndDateUTC: string;
};
};
export type EventsResponse = Array<Challenge>;
export type OldApiDevice = {
type: "Thermostat" | "LightDimmer";
locationId: string;
id: string;
name: string;
assetId: string;
hiloId: string;
};
export type DeviceAccessory<T extends Device> = {
device: OldApiDevice;
graphqlDevice: T;
};
export type LightDevice = BasicLight | BasicDimmer;
export type ClimateDevice = BasicThermostat | HeatingFloorThermostat;
export type ChallengeAccessory = {
device: {
assetId: string;
id: number;
name: string;
type: "Challenge";
locationId: number;
modelNumber: string;
identifier: string;
hiloId?: string;
};
v4Device: {
value: boolean;
phase: string;
localId: string;
};
};
//# sourceMappingURL=types.d.ts.map