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.
25 lines • 962 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.GW_ACTIVATE_SCENE_REQ = void 0;
const common_js_1 = require("./common.js");
class GW_ACTIVATE_SCENE_REQ extends common_js_1.GW_FRAME_COMMAND_REQ {
SceneID;
PriorityLevel;
CommandOriginator;
Velocity;
constructor(SceneID, PriorityLevel = 3, CommandOriginator = 1, Velocity = 0) {
super(6);
this.SceneID = SceneID;
this.PriorityLevel = PriorityLevel;
this.CommandOriginator = CommandOriginator;
this.Velocity = Velocity;
const buff = this.Data.subarray(this.offset);
buff.writeUInt16BE(this.SessionID, 0);
buff.writeUInt8(this.CommandOriginator, 2);
buff.writeUInt8(this.PriorityLevel, 3);
buff.writeUInt8(this.SceneID, 4);
buff.writeUInt8(this.Velocity, 5);
}
}
exports.GW_ACTIVATE_SCENE_REQ = GW_ACTIVATE_SCENE_REQ;
//# sourceMappingURL=GW_ACTIVATE_SCENE_REQ.js.map
;