homebridge-obis-powermeter
Version:
Plugin for OBIS smart meter devices (SML/D0) to read power, energy, and voltages.
23 lines • 985 B
TypeScript
import { API, Logger, PlatformAccessory, PlatformConfig, Service as HbService, Characteristic as HbCharacteristic } from 'homebridge';
import type { ObisMeasurement } from 'smartmeter-obis';
import { HomebridgeObisDataAccessory, HomebridgeObisDevice } from '../PlatformTypes';
interface VoltageOptions {
obisKey: string;
name: string;
serialSuffix: string;
}
export default class VoltageSensor implements HomebridgeObisDataAccessory {
readonly log: Logger;
readonly api: API;
accessory: PlatformAccessory;
device: HomebridgeObisDevice;
Service: typeof HbService;
Characteristic: typeof HbCharacteristic;
private voltageService;
private readonly obisKey;
constructor(_config: PlatformConfig, log: Logger, api: API, accessory: PlatformAccessory, device: HomebridgeObisDevice, opts: VoltageOptions);
private floatOf;
beatWithData(data: Record<string, ObisMeasurement>): void;
}
export {};
//# sourceMappingURL=VoltageSensor.d.ts.map