UNPKG

shellies-ds9

Version:

Handles communication with the next generation of Shelly devices

36 lines 1.11 kB
import { ComponentWithId } from './base'; import { Device } from '../devices'; export interface DevicePowerBatteryStatus { V: number | null; percent: number | null; } export interface DevicePowerExternalSource { present: boolean; } export interface DevicePowerAttributes { id: number; battery: DevicePowerBatteryStatus; external?: DevicePowerExternalSource; errors?: string[]; } export interface DevicePowerConfig { } /** * Handles the monitoring of a device's battery charge. */ export declare class DevicePower extends ComponentWithId<DevicePowerAttributes, DevicePowerConfig> implements DevicePowerAttributes { /** * Information about the battery charge. */ readonly battery: DevicePowerBatteryStatus; /** * Information about the external power source. */ readonly external: DevicePowerExternalSource | undefined; /** * Any error conditions that have occurred. */ readonly errors: string[] | undefined; constructor(device: Device, id?: number); } //# sourceMappingURL=device-power.d.ts.map