UNPKG

shellies-ds9

Version:

Handles communication with the next generation of Shelly devices

75 lines 3.14 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.ShellyPlus1V3 = exports.ShellyPlus1MiniV3 = exports.ShellyPlus1Mini = exports.ShellyPlus1Ul = exports.ShellyPlus1 = void 0; const base_1 = require("./base"); const components_1 = require("../components"); class ShellyPlus1 extends base_1.Device { constructor() { super(...arguments); this.wifi = new components_1.WiFi(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.switch0 = new components_1.Switch(this, 0); this.script = new components_1.Script(this); } } ShellyPlus1.model = "SNSW-001X16EU"; ShellyPlus1.modelName = "Shelly Plus 1"; __decorate([ base_1.component ], ShellyPlus1.prototype, "wifi", void 0); __decorate([ base_1.component ], ShellyPlus1.prototype, "bluetoothLowEnergy", void 0); __decorate([ base_1.component ], ShellyPlus1.prototype, "cloud", void 0); __decorate([ base_1.component ], ShellyPlus1.prototype, "mqtt", void 0); __decorate([ base_1.component ], ShellyPlus1.prototype, "outboundWebSocket", void 0); __decorate([ base_1.component ], ShellyPlus1.prototype, "input0", void 0); __decorate([ base_1.component ], ShellyPlus1.prototype, "switch0", void 0); __decorate([ base_1.component ], ShellyPlus1.prototype, "script", void 0); exports.ShellyPlus1 = ShellyPlus1; base_1.Device.registerClass(ShellyPlus1); class ShellyPlus1Ul extends ShellyPlus1 { } exports.ShellyPlus1Ul = ShellyPlus1Ul; ShellyPlus1Ul.model = "SNSW-001X15UL"; base_1.Device.registerClass(ShellyPlus1Ul); class ShellyPlus1Mini extends ShellyPlus1 { } exports.ShellyPlus1Mini = ShellyPlus1Mini; ShellyPlus1Mini.model = "SNSW-001X8EU"; ShellyPlus1Mini.modelName = "Shelly Plus 1 Mini"; base_1.Device.registerClass(ShellyPlus1Mini); class ShellyPlus1MiniV3 extends ShellyPlus1 { } exports.ShellyPlus1MiniV3 = ShellyPlus1MiniV3; ShellyPlus1MiniV3.model = "S3SW-001X8EU"; ShellyPlus1MiniV3.modelName = "Shelly Plus 1 Mini"; base_1.Device.registerClass(ShellyPlus1MiniV3); class ShellyPlus1V3 extends ShellyPlus1 { } exports.ShellyPlus1V3 = ShellyPlus1V3; ShellyPlus1V3.model = "S3SW-001X16EU"; base_1.Device.registerClass(ShellyPlus1V3); //# sourceMappingURL=shelly-plus-1.js.map