UNPKG

shellies-ds9

Version:

Handles communication with the next generation of Shelly devices

77 lines 3.31 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ShellyDimmer = exports.ShellyProDimmer1Pm2 = exports.ShellyProDimmer1Pm = void 0; const base_1 = require("./base"); const components_1 = require("../components"); class ShellyProDimmer1Pm extends base_1.Device { constructor() { super(...arguments); this.wifi = new components_1.WiFi(this); this.ethernet = new components_1.Ethernet(this); this.bluetoothLowEnergy = new components_1.BluetoothLowEnergy(this); this.cloud = new components_1.Cloud(this); this.mqtt = new components_1.Mqtt(this); this.outboundWebSocket = new components_1.OutboundWebSocket(this); this.input0 = new components_1.Input(this, 0); this.input1 = new components_1.Input(this, 1); this.light0 = new components_1.Light(this, 0); this.script = new components_1.Script(this); this.ui = new components_1.Ui(this); } } ShellyProDimmer1Pm.model = "SPDM-001PE01EU"; ShellyProDimmer1Pm.modelName = "Shelly Pro Dimmer 1PM"; __decorate([ base_1.component ], ShellyProDimmer1Pm.prototype, "wifi", void 0); __decorate([ base_1.component ], ShellyProDimmer1Pm.prototype, "ethernet", void 0); __decorate([ base_1.component ], ShellyProDimmer1Pm.prototype, "bluetoothLowEnergy", void 0); __decorate([ base_1.component ], ShellyProDimmer1Pm.prototype, "cloud", void 0); __decorate([ base_1.component ], ShellyProDimmer1Pm.prototype, "mqtt", void 0); __decorate([ base_1.component ], ShellyProDimmer1Pm.prototype, "outboundWebSocket", void 0); __decorate([ base_1.component ], ShellyProDimmer1Pm.prototype, "input0", void 0); __decorate([ base_1.component ], ShellyProDimmer1Pm.prototype, "input1", void 0); __decorate([ base_1.component ], ShellyProDimmer1Pm.prototype, "light0", void 0); __decorate([ base_1.component ], ShellyProDimmer1Pm.prototype, "script", void 0); __decorate([ base_1.component ], ShellyProDimmer1Pm.prototype, "ui", void 0); exports.ShellyProDimmer1Pm = ShellyProDimmer1Pm; base_1.Device.registerClass(ShellyProDimmer1Pm); class ShellyProDimmer1Pm2 extends ShellyProDimmer1Pm { } exports.ShellyProDimmer1Pm2 = ShellyProDimmer1Pm2; ShellyProDimmer1Pm2.model = "SPCC-001PE10EU"; ShellyProDimmer1Pm2.modelName = "Shelly Pro Dimmer 0/1-10V PM"; base_1.Device.registerClass(ShellyProDimmer1Pm2); class ShellyDimmer extends ShellyProDimmer1Pm { } exports.ShellyDimmer = ShellyDimmer; ShellyDimmer.model = "S3DM-0A101WWL"; ShellyDimmer.modelName = "Shelly Dimmer"; base_1.Device.registerClass(ShellyDimmer); //# sourceMappingURL=shelly-pro-dimmer-1-pm.js.map