shellies-ds9
Version:
Handles communication with the next generation of Shelly devices
75 lines • 3.24 kB
JavaScript
;
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.ShellyPlus1PmV3 = exports.ShellyPlus1PmMiniV3 = exports.ShellyPlus1PmMini = exports.ShellyPlus1PmUl = exports.ShellyPlus1Pm = void 0;
const base_1 = require("./base");
const components_1 = require("../components");
class ShellyPlus1Pm 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);
}
}
ShellyPlus1Pm.model = "SNSW-001P16EU";
ShellyPlus1Pm.modelName = "Shelly Plus 1 PM";
__decorate([
base_1.component
], ShellyPlus1Pm.prototype, "wifi", void 0);
__decorate([
base_1.component
], ShellyPlus1Pm.prototype, "bluetoothLowEnergy", void 0);
__decorate([
base_1.component
], ShellyPlus1Pm.prototype, "cloud", void 0);
__decorate([
base_1.component
], ShellyPlus1Pm.prototype, "mqtt", void 0);
__decorate([
base_1.component
], ShellyPlus1Pm.prototype, "outboundWebSocket", void 0);
__decorate([
base_1.component
], ShellyPlus1Pm.prototype, "input0", void 0);
__decorate([
base_1.component
], ShellyPlus1Pm.prototype, "switch0", void 0);
__decorate([
base_1.component
], ShellyPlus1Pm.prototype, "script", void 0);
exports.ShellyPlus1Pm = ShellyPlus1Pm;
base_1.Device.registerClass(ShellyPlus1Pm);
class ShellyPlus1PmUl extends ShellyPlus1Pm {
}
exports.ShellyPlus1PmUl = ShellyPlus1PmUl;
ShellyPlus1PmUl.model = "SNSW-001P15UL";
base_1.Device.registerClass(ShellyPlus1PmUl);
class ShellyPlus1PmMini extends ShellyPlus1Pm {
}
exports.ShellyPlus1PmMini = ShellyPlus1PmMini;
ShellyPlus1PmMini.model = "SNSW-001P8EU";
ShellyPlus1PmMini.modelName = "Shelly Plus 1 PM Mini";
base_1.Device.registerClass(ShellyPlus1PmMini);
class ShellyPlus1PmMiniV3 extends ShellyPlus1Pm {
}
exports.ShellyPlus1PmMiniV3 = ShellyPlus1PmMiniV3;
ShellyPlus1PmMiniV3.model = "S3SW-001P8EU";
ShellyPlus1PmMiniV3.modelName = "Shelly Plus 1 PM Mini";
base_1.Device.registerClass(ShellyPlus1PmMiniV3);
class ShellyPlus1PmV3 extends ShellyPlus1Pm {
}
exports.ShellyPlus1PmV3 = ShellyPlus1PmV3;
ShellyPlus1PmV3.model = "S3SW-001P16EU";
base_1.Device.registerClass(ShellyPlus1PmV3);
//# sourceMappingURL=shelly-plus-1-pm.js.map