"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Device = void 0;
const shelly_1 = require("./devices/shelly");
class Device {
    constructor(mqttWorker) {
        this.device = new shelly_1.Shelly(mqttWorker);
        //this.device = new Ewelink();
    }
    async getStatus() {
        return this.device.getStatus();
    }
    async getPowerUsage() {
        return this.device.getPowerUsage();
    }
    async setState(state) {
        return this.device.setState(state);
    }
}
exports.Device = Device;
//# sourceMappingURL=device.js.map