@pmouli/isy-matter-server
Version:
Service to expose an ISY device as a Matter Border router
46 lines • 1.94 kB
JavaScript
/* THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT DIRECTLY. */
import { UnitOfMeasure } from "../../../Definitions/Global/index.js";
import { Base } from "../index.js";
import { Driver } from "../../../Definitions/Global/Drivers.js";
import { NodeFactory } from "../../NodeFactory.js";
export class CentralSceneControlButton extends Base {
commands = {
QUERY: this.query
};
static nodeDefId = "201";
static implements = ['201'];
constructor(isy, nodeInfo) {
super(isy, nodeInfo);
this.drivers.ST = Driver.create("ST", this, nodeInfo.state['ST'], { uom: UnitOfMeasure.MostRecentOnStyleActionTakenForLampControl, label: "Status", name: "status" });
}
async query() { return this.sendCommand("QUERY"); }
get status() {
return this.drivers.ST?.value;
}
}
NodeFactory.register(CentralSceneControlButton);
(function (CentralSceneControlButton) {
function is(node) {
return ['201'].includes(node.nodeDefId);
}
CentralSceneControlButton.is = is;
function isImplementedBy(node) {
return ['201'].includes(node.nodeDefId);
}
CentralSceneControlButton.isImplementedBy = isImplementedBy;
function create(isy, nodeInfo) {
return new CentralSceneControlButton(isy, nodeInfo);
}
CentralSceneControlButton.create = create;
CentralSceneControlButton.Node = CentralSceneControlButton;
CentralSceneControlButton.Class = CentralSceneControlButton;
let Commands;
(function (Commands) {
Commands["query"] = "QUERY";
})(Commands = CentralSceneControlButton.Commands || (CentralSceneControlButton.Commands = {}));
let Drivers;
(function (Drivers) {
Drivers["status"] = "ST";
})(Drivers = CentralSceneControlButton.Drivers || (CentralSceneControlButton.Drivers = {}));
})(CentralSceneControlButton || (CentralSceneControlButton = {}));
//# sourceMappingURL=CentralSceneControlButton.js.map