UNPKG

@pietrolubini/homebridge-ecoflow

Version:
23 lines 879 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PowerOceanSimulator = void 0; const simulator_1 = require("@ecoflow/apis/simulations/simulator"); class PowerOceanSimulator extends simulator_1.Simulator { generateQuota() { const quota = { params: { evPwr: this.getRandomNumber(1, 10000), bpPwr: this.getRandomNumber(-10000, 10000), bpSoc: this.getRandomNumber(0, 100), sysGridPwr: this.getRandomNumber(1, 10000), sysLoadPwr: this.getRandomNumber(1, 10000), }, }; return quota; } generateSetReply(message) { throw new Error(`SetReply command "${message}" is not supported for PowerOcean`); } } exports.PowerOceanSimulator = PowerOceanSimulator; //# sourceMappingURL=powerOceanSimulator.js.map