homebridge-obis-powermeter
Version:
Plugin for OBIS smart meter devices (SML/D0) to read power, energy, and voltages.
17 lines • 847 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';
export default class EnergyImport implements HomebridgeObisDataAccessory {
readonly log: Logger;
readonly api: API;
accessory: PlatformAccessory;
device: HomebridgeObisDevice;
Service: typeof HbService;
Characteristic: typeof HbCharacteristic;
private svc;
private readonly obisKeys;
constructor(_config: PlatformConfig, log: Logger, api: API, accessory: PlatformAccessory, device: HomebridgeObisDevice);
private floatKwh;
beatWithData(data: Record<string, ObisMeasurement>): void;
}
//# sourceMappingURL=EnergyImport.d.ts.map