UNPKG

homebridge-nordpool-baltics

Version:

Plugin exposes virtual accessories (switch, light, presence, temperature) and enables HomeKit automation by Nordpool electricity price in Lithuania, Latvia, Estonia, Finland, Sweden, Norway, Denmark, Germany, Luxembourg, Austria.

48 lines 1.71 kB
import { Service, API, Logging, PlatformConfig } from 'homebridge'; import { Cache } from 'file-system-cache'; export declare const PLATFORM_NAME = "Nordpool"; export declare const PLUGIN_NAME: any; export declare const PLATFORM_MANUFACTURER: any; export declare const PLATFORM_VERSION: any; export declare const PLATFORM_MODEL = "Electricity price sensors"; export declare const PLATFORM_SERIAL_NUMBER = "UN783GU921Y0"; export declare const devices: { UniqueId: string; displayName: string; }[]; export interface SensorType { [key: string]: Service | null; } export interface NordpoolData { day: string; hour: number; price: number; } export interface Pricing { today: NordpoolData[]; currently: number; currentHour: number; cheapestHour: number[]; cheapest4Hours: number[]; cheapest5Hours: number[]; cheapest5HoursConsec: number[]; cheapest5HoursConsec2days: number[]; cheapest6Hours: number[]; cheapest7Hours: number[]; cheapest8Hours: number[]; cheapest9Hours: number[]; cheapest10Hours: number[]; cheapest11Hours: number[]; cheapest12Hours: number[]; priciestHour: number[]; median: number; median2days: number; } export declare let pricing: Pricing; export declare const defaultService: SensorType; export declare function defaultPricesCache(api: API, log: Logging): Cache; export declare function defaultAreaTimezone(config: PlatformConfig): string; export declare function fnc_todayKey(config: PlatformConfig): string; export declare function fnc_tomorrowKey(config: PlatformConfig): string; export declare function fnc_currentHour(config: PlatformConfig): number; //# sourceMappingURL=settings.d.ts.map