@tantchen/fritzapi
Version:
Home automation node API for Fritz!Box, Fritz!DECT and FRITZ!Powerline devices
86 lines (85 loc) • 1.93 kB
TypeScript
import { HueColor } from './lib';
/**
* HAN-FUN device
*/
declare const FUNCTION_HANFUN = 1;
/**
* Bulb
*/
declare const FUNCTION_LIGHT: number;
/**
* Alarm Sensor
*/
declare const FUNCTION_ALARM: number;
/**
* Button device
*/
declare const FUNCTION_BUTTON: number;
/**
* Comet DECT, Heizkostenregler
*/
declare const FUNCTION_THERMOSTAT: number;
/**
* Energie Messgerät
*/
declare const FUNCTION_ENERGYMETER: number;
/**
* Temperatursensor
*/
declare const FUNCTION_TEMPERATURESENSOR: number;
/**
* Schaltsteckdose
*/
declare const FUNCTION_OUTLET: number;
/**
* AVM DECT Repeater
*/
declare const FUNCTION_DECTREPEATER: number;
/**
* Microphone
*/
declare const FUNCTION_MICROFONE: number;
/**
* Template
*/
declare const FUNCTION_TEMPLATE: number;
/**
* HAN-FUN unit
*/
declare const FUNCTION_HANFUNUNIT: number;
/**
* Simple switch on/off
*/
declare const FUNCTION_SWITCHCONTROL: number;
/**
* level
*/
declare const FUNCTION_LEVELCONTROL: number;
/**
* color
*/
declare const FUNCTION_COLORCONTROL: number;
export { FUNCTION_HANFUN, FUNCTION_LIGHT, FUNCTION_ALARM, FUNCTION_BUTTON, FUNCTION_THERMOSTAT, FUNCTION_ENERGYMETER, FUNCTION_TEMPERATURESENSOR, FUNCTION_OUTLET, FUNCTION_DECTREPEATER, FUNCTION_MICROFONE, FUNCTION_TEMPLATE, FUNCTION_HANFUNUNIT, FUNCTION_SWITCHCONTROL, FUNCTION_LEVELCONTROL, FUNCTION_COLORCONTROL, };
/**
* colormap
*/
type ColorName = 'red' | 'orange' | 'yellow' | 'lime' | 'green' | 'turquoise' | 'cyan' | 'lightblue' | 'blue' | 'purple' | 'magenta' | 'pink';
/**
* color map
*/
declare const colors: Map<ColorName, HueColor>;
export { colors, ColorName };
/**
* min temperature
*/
declare const MIN_TEMP = 8;
/**
* max temperature
*/
declare const MAX_TEMP = 28;
export { MIN_TEMP, MAX_TEMP };
/**
* default url if not set in the default constructor
*/
declare const defaultUrl = "http://fritz.box";
export { defaultUrl };