UNPKG

dt-common-device

Version:

A secure and robust device management library for IoT applications

30 lines (29 loc) 955 B
export interface ISchedule { id?: string; name: string; deviceId: string; scheduleId: string; state: { on?: boolean; targetTemperature?: number; temperatureUnit?: "C" | "F"; mode?: "cool" | "heat" | "fan" | "dry" | "auto"; swing?: "stopped" | "rangeFull" | "fixedTop" | "fixedMiddleTop" | "fixedMiddle" | "fixedMiddleBottom" | "fixedBottom"; fanLevel?: "auto" | "low" | "medium" | "high"; }; startTime: string; endTime: string; recurOnDaysOfWeek?: ("Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday" | "Saturday" | "Sunday")[]; createTime?: string; nextTime?: string; nextTimeSecondsFromNow?: number; targetTimeLocal: string; timezone: string; scheduleInheritedFrom?: "zone" | "device"; zoneId: string; reservationId?: string; accessGroupId?: string; type: "ON" | "OFF"; userId?: string; status: "SET" | "UNSET"; }