homebridge-http-sensors-switches
Version:
This plugin communicates with your devices over HTTP or MQTT. Currently it supports Light Bulb, Switches, Outlets, Fan, Garage Door, Shades / Blinds, Temperature/Humidity, Motion, Contact and Occupancy sensor, Door, Sprinkler, Valve, Air Quality, Smoke, C
19 lines (18 loc) • 413 B
TypeScript
type State = {
param: string;
topic: string;
webhook: boolean;
setHandler: boolean;
fromConfig: boolean;
};
type Device = {
paramNames: string[];
sensors: Record<string, {
defaultValue: number;
range: [number, number];
}>;
states: Record<string, State>;
};
type DeviceConfig = Record<string, Device>;
export declare const deviceConfig: DeviceConfig;
export {};