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, Air Quality, Smoke, Carbon Dioxide and Light
18 lines (17 loc) • 375 B
TypeScript
type Sensor = {
defaultValue: number;
range: [number, number];
};
type State = {
param: string;
topic: string;
webhook: boolean;
};
type SensorConfig = {
paramNames: string[];
sensors: Record<string, Sensor>;
states: Record<string, State>;
};
type Sensors = Record<string, SensorConfig>;
export declare const sensorConfig: Sensors;
export {};