zigbee-herdsman-zigate
Version:
An open source ZigBee gateway solution with node.js.
41 lines • 2.34 kB
TypeScript
import { Device, Endpoint } from "./model";
import { KeyValue } from "./tstype";
declare enum Events {
message = "message",
adapterDisconnected = "adapterDisconnected",
deviceJoined = "deviceJoined",
deviceInterview = "deviceInterview",
deviceAnnounce = "deviceAnnounce",
deviceLeave = "deviceLeave"
}
interface DeviceJoinedPayload {
device: Device;
}
interface DeviceInterviewPayload {
status: 'started' | 'successful' | 'failed';
device: Device;
}
interface DeviceAnnouncePayload {
device: Device;
}
interface DeviceLeavePayload {
ieeeAddr: string;
}
declare const CommandsLookup: {
[s: string]: MessagePayloadType;
};
declare type MessagePayloadType = 'attributeReport' | 'readResponse' | 'raw' | 'read' | 'write' | 'commandOn' | 'commandOffWithEffect' | 'commandStep' | 'commandStop' | 'commandHueNotification' | 'commandOff' | 'commandStepColorTemp' | 'commandMoveWithOnOff' | 'commandMove' | 'commandMoveHue' | 'commandMoveToSaturation' | 'commandStopWithOnOff' | 'commandMoveToLevelWithOnOff' | 'commandToggle' | 'commandTradfriArrowSingle' | 'commandTradfriArrowHold' | 'commandTradfriArrowRelease' | 'commandStepWithOnOff' | 'commandMoveToColorTemp' | 'commandMoveToColor' | 'commandOnWithTimedOff' | 'commandRecall' | 'commandArm' | 'commandPanic' | 'commandEmergency' | 'commandColorLoopSet' | 'commandOperationEventNotification' | 'commandStatusChangeNotification' | 'commandEnhancedMoveToHueAndSaturation' | 'commandUpOpen' | 'commandDownClose' | 'commandMoveToLevel' | 'commandMoveColorTemp' | 'commandGetData' | 'commandSetDataResponse' | 'commandGetWeeklyScheduleRsp' | 'commandQueryNextImageRequest' | 'commandNotification' | 'commandAlertsNotification' | 'commandProgrammingEventNotification' | "commandGetPinCodeRsp" | "commandArrivalSensorNotify" | 'commandCommisioningNotification';
interface MessagePayload {
type: MessagePayloadType;
device: Device;
endpoint: Endpoint;
linkquality: number;
groupID: number;
cluster: string | number;
data: KeyValue | Array<string | number>;
meta: {
zclTransactionSequenceNumber?: number;
};
}
export { Events, MessagePayload, MessagePayloadType, CommandsLookup, DeviceInterviewPayload, DeviceAnnouncePayload, DeviceLeavePayload, DeviceJoinedPayload, };
//# sourceMappingURL=events.d.ts.map