UNPKG

shellies-ds9

Version:

Handles communication with the next generation of Shelly devices

62 lines 2.61 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.ShellyPlusHtV3 = exports.ShellyPlusHt = void 0; const base_1 = require("./base"); const components_1 = require("../components"); class ShellyPlusHt 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.temperature0 = new components_1.Temperature(this, 0); this.humidity0 = new components_1.Humidity(this, 0); this.devicePower0 = new components_1.DevicePower(this, 0); this.htUi = new components_1.HtUi(this); } } ShellyPlusHt.model = "SNSN-0013A"; ShellyPlusHt.modelName = "Shelly Plus H&T"; __decorate([ base_1.component ], ShellyPlusHt.prototype, "wifi", void 0); __decorate([ base_1.component ], ShellyPlusHt.prototype, "bluetoothLowEnergy", void 0); __decorate([ base_1.component ], ShellyPlusHt.prototype, "cloud", void 0); __decorate([ base_1.component ], ShellyPlusHt.prototype, "mqtt", void 0); __decorate([ base_1.component ], ShellyPlusHt.prototype, "outboundWebSocket", void 0); __decorate([ base_1.component ], ShellyPlusHt.prototype, "temperature0", void 0); __decorate([ base_1.component ], ShellyPlusHt.prototype, "humidity0", void 0); __decorate([ base_1.component ], ShellyPlusHt.prototype, "devicePower0", void 0); __decorate([ base_1.component ], ShellyPlusHt.prototype, "htUi", void 0); exports.ShellyPlusHt = ShellyPlusHt; base_1.Device.registerClass(ShellyPlusHt); class ShellyPlusHtV3 extends ShellyPlusHt { } exports.ShellyPlusHtV3 = ShellyPlusHtV3; ShellyPlusHtV3.model = "S3SN-0U12A"; base_1.Device.registerClass(ShellyPlusHtV3); //# sourceMappingURL=shelly-plus-ht.js.map