UNPKG

@pmouli/isy-matter-server

Version:

Service to expose an ISY device as a Matter Border router

43 lines 2.7 kB
/* 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 SirenAlert extends Base { commands = {}; static nodeDefId = "SirenAlert"; static implements = ['SirenAlert']; constructor(isy, nodeInfo) { super(isy, nodeInfo); this.drivers.ERR = Driver.create("ERR", this, nodeInfo.state['ERR'], { uom: UnitOfMeasure.Index, label: "Responding", name: "responding" }); } get responding() { return this.drivers.ERR?.value; } } NodeFactory.register(SirenAlert); NodeFactory.register(SirenAlert, "SirenArm"); (function (SirenAlert) { function is(node) { return ['SirenAlert', "SirenArm"].includes(node.nodeDefId); } SirenAlert.is = is; function isImplementedBy(node) { return ['SirenAlert', "X10", "Thermostat", "TempLinc", "OnOffControl", "OnOffControl_ADV", "DimmerMotorSwitch", "DimmerMotorSwitch_ADV", "DimmerLampSwitch", "DimmerLampSwitch_ADV", "DimmerLampSwitchLED", "DimmerLampSwitchLED_ADV", "DimmerSwitchOnly", "DimmerSwitchOnly_ADV", "DimmerLampOnly", "KeypadDimmer", "KeypadDimmer_ADV", "BallastRelayLampSwitch", "BallastRelayLampSwitch_ADV", "RelayLampSwitch", "RelayLampSwitch_ADV", "RelayLampSwitchLED", "RelayLampSwitchLED_ADV", "RelaySwitchOnlyPlusQuery", "RelaySwitchOnlyPlusQuery_ADV", "RelaySwitchOnly", "RelaySwitchOnly_ADV", "RelayLampOnly", "RelayLampOnly_ADV", "KeypadRelay", "KeypadRelay_ADV", "RemoteLinc2", "RemoteLinc2_ADV", "IRLincTx", "FanLincMotor", "KeypadButton", "KeypadButton_ADV", "EZRAIN_Output", "EZRAIN_Input", "EZRAIN_Input_ADV", "EZIO2x4_Output", "EZIO2x4_Input", "EZIO2x4_Input_ADV", "IMETER_SOLO", "DoorLock", "BinaryAlarm", "BinaryAlarm_ADV", "BinaryControl", "BinaryControl_ADV", "AlertModuleSiren", "AlertModuleSiren_ADV", "AlertModuleArmed", "Siren", "Siren_ADV", "SirenArm", "PIR2844_ADV", "PIR2844C_ADV", "PIR2844OnOff_ADV"].includes(node.nodeDefId); } SirenAlert.isImplementedBy = isImplementedBy; function create(isy, nodeInfo) { return new SirenAlert(isy, nodeInfo); } SirenAlert.create = create; SirenAlert.Node = SirenAlert; SirenAlert.Class = SirenAlert; let Commands; (function (Commands) { })(Commands = SirenAlert.Commands || (SirenAlert.Commands = {})); let Drivers; (function (Drivers) { Drivers["responding"] = "ERR"; })(Drivers = SirenAlert.Drivers || (SirenAlert.Drivers = {})); })(SirenAlert || (SirenAlert = {})); //# sourceMappingURL=SirenAlert.js.map