UNPKG

homebridge-epex

Version:

Monitor EPEX energy prices using the ENTSO-E transparency platform API.

24 lines (23 loc) 870 B
import type { PlatformAccessory } from 'homebridge'; import type { EPEXMonitor } from './platform.js'; /** * Platform Accessory * An instance of this class is created for each accessory your platform registers * Each accessory may expose multiple services of different service types. */ export declare class EPEXPlatformAccessory { private readonly platform; private readonly accessory; private service; constructor(platform: EPEXMonitor, accessory: PlatformAccessory); /** * Update the accessory with the latest price. * If the price is null, it logs a warning and does not update the characteristic. */ updatePrice(price: number | null): void; /** * Handle GET requests for the CurrentTemperature characteristic. * Throws an error if the price is unavailable. */ private handleCurrentTemperatureGet; }