Brandon Watson feb5533419
All checks were successful
continuous-integration/drone/push Build is passing
Adding new features
- Adding ability to specify delay times per light
- Adding config.schema.json
2022-09-07 14:29:51 -05:00

69 lines
1.3 KiB
TypeScript

export interface IConfig {
platform: string;
ipAddress: string;
userName?: string;
clientKey?: string;
/**
* Latitude
*/
latitude: number;
/**
* Longitute
*/
longitude: number;
/**
* The list of lights to affect
*/
hueLights: Array<{ name: string; cron?: string }>;
/**
* The list of wiz lights to affect
*/
wizLights: Array<{ ip: string; mac: string; cron?: string }>;
wizDiscoveryEnabled: boolean;
/**
* The name of the enable switch in homekit
*/
name: string;
/**
* The color temperature at the start of sunset transition
*/
ceilingColorTemp: number;
/**
* The color temp during the night
*/
floorColorTemp: number;
/**
* The color temp at sunet
*/
sunsetColorTemp: number;
/**
* The time in milliseconds the lights should remain at sunset temperature.
*/
sunsetDuration: number;
/**
* The number of milliseconds the lights take to transition
*/
transition?: number;
/**
* The number of milliseconds to wait btw updates
*/
delay?: number;
/**
* The current formatted date and time to use with testing
*/
testNowDateString?: string;
}