klf-200-api
Version:
This module provides a wrapper to the socket API of a Velux KLF-200 interface. You will need at least firmware 0.2.0.0.71 on your KLF interface for this library to work.
33 lines • 1.83 kB
JavaScript
import { GW_FRAME_CFM } from "./common.js";
export var GatewayState;
(function (GatewayState) {
GatewayState[GatewayState["TestMode"] = 0] = "TestMode";
GatewayState[GatewayState["GatewayMode_NoActuatorNodes"] = 1] = "GatewayMode_NoActuatorNodes";
GatewayState[GatewayState["GatewayMode_WithActuatorNodes"] = 2] = "GatewayMode_WithActuatorNodes";
GatewayState[GatewayState["BeaconMode_NotConfigured"] = 3] = "BeaconMode_NotConfigured";
GatewayState[GatewayState["BeaconMode_Configured"] = 4] = "BeaconMode_Configured";
})(GatewayState || (GatewayState = {}));
export var GatewaySubState;
(function (GatewaySubState) {
GatewaySubState[GatewaySubState["Idle"] = 0] = "Idle";
GatewaySubState[GatewaySubState["RunningConfigurationService"] = 1] = "RunningConfigurationService";
GatewaySubState[GatewaySubState["RunningSceneConfiguration"] = 2] = "RunningSceneConfiguration";
GatewaySubState[GatewaySubState["RunningInformationServiceConfiguration"] = 3] = "RunningInformationServiceConfiguration";
GatewaySubState[GatewaySubState["RunningContactInputConfiguration"] = 4] = "RunningContactInputConfiguration";
GatewaySubState[GatewaySubState["RunningCommand"] = 128] = "RunningCommand";
GatewaySubState[GatewaySubState["RunningActivateGroup"] = 129] = "RunningActivateGroup";
GatewaySubState[GatewaySubState["RunningActivateScene"] = 130] = "RunningActivateScene";
})(GatewaySubState || (GatewaySubState = {}));
export class GW_GET_STATE_CFM extends GW_FRAME_CFM {
GatewayState;
GatewaySubState;
StateData;
constructor(Data) {
super(Data);
this.GatewayState = this.Data.readUInt8(0);
this.GatewaySubState = this.Data.readUInt8(1);
this.StateData = this.Data.subarray(2, 6);
}
}
//# sourceMappingURL=GW_GET_STATE_CFM.js.map
;