@enyo-energy/energy-app-sdk 0.0.150 → 0.0.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/implementations/appliance-command-forecast/appliance-command-forecast-validators.cjs +1 -0
- package/dist/cjs/packages/energy-app-udp.d.cts +8 -0
- package/dist/cjs/types/enyo-appliance-command-forecast.d.cts +12 -0
- package/dist/cjs/types/enyo-data-bus-value.d.cts +6 -0
- package/dist/cjs/version.cjs +1 -1
- package/dist/cjs/version.d.cts +1 -1
- package/dist/implementations/appliance-command-forecast/appliance-command-forecast-validators.js +1 -0
- package/dist/packages/energy-app-udp.d.ts +8 -0
- package/dist/types/enyo-appliance-command-forecast.d.ts +12 -0
- package/dist/types/enyo-data-bus-value.d.ts +6 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -170,6 +170,7 @@ function validateHeatpumpScheduleEntry(entry, fieldName) {
|
|
|
170
170
|
validateBooleanField(entry.dhwBoostActive, `${fieldName}.dhwBoostActive`);
|
|
171
171
|
validateBooleanField(entry.roomPreHeatingActive, `${fieldName}.roomPreHeatingActive`);
|
|
172
172
|
validateBooleanField(entry.bufferTankBoostActive, `${fieldName}.bufferTankBoostActive`);
|
|
173
|
+
validateBooleanField(entry.availablePowerActive, `${fieldName}.availablePowerActive`);
|
|
173
174
|
}
|
|
174
175
|
function validateMetadata(forecast) {
|
|
175
176
|
if (!(forecast.resolution in RESOLUTION_SECONDS)) {
|
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
export interface UdpBindOptions {
|
|
5
5
|
/** Bind port. 0 selects an ephemeral port. */
|
|
6
6
|
port: number;
|
|
7
|
+
/**
|
|
8
|
+
* When `true`, sets `SO_REUSEADDR` on the underlying socket so multiple
|
|
9
|
+
* sockets may bind to the same address/port. Maps to the `reuseAddr`
|
|
10
|
+
* option of `node:dgram`'s `createSocket`.
|
|
11
|
+
*
|
|
12
|
+
* Defaults to `false`.
|
|
13
|
+
*/
|
|
14
|
+
reuseAddr?: boolean;
|
|
7
15
|
}
|
|
8
16
|
/**
|
|
9
17
|
* A single inbound datagram delivered to a handler registered with
|
|
@@ -318,6 +318,18 @@ export interface HeatpumpForecastScheduleEntry {
|
|
|
318
318
|
* tank up, `false` (or omitted) otherwise.
|
|
319
319
|
*/
|
|
320
320
|
bufferTankBoostActive?: boolean;
|
|
321
|
+
/**
|
|
322
|
+
* Whether the publisher is announcing available power for this slot
|
|
323
|
+
* — `true` when the energy-manager decision for the slot is
|
|
324
|
+
* "available power", meaning {@link powerW} doubles as the
|
|
325
|
+
* available-power offer to the heatpump (the heatpump is free to
|
|
326
|
+
* consume up to that value), `false` (or omitted) otherwise.
|
|
327
|
+
*
|
|
328
|
+
* This flag is independent of the other `*Active` flags and may
|
|
329
|
+
* coexist with them when the publisher offers available power while
|
|
330
|
+
* a boost / pre-heating window is also planned.
|
|
331
|
+
*/
|
|
332
|
+
availablePowerActive?: boolean;
|
|
321
333
|
}
|
|
322
334
|
/**
|
|
323
335
|
* Forecasted command plan for a heatpump appliance, published via
|
|
@@ -253,6 +253,12 @@ export interface EnyoDataBusMeterValuesUpdateV1 extends EnyoDataBusMessage {
|
|
|
253
253
|
data: {
|
|
254
254
|
/** Power from Grid (in Watt), negative: grid feed in, positive: grid consumption*/
|
|
255
255
|
gridPowerW?: number;
|
|
256
|
+
/** Power on phase L1 (in Watt), negative: grid feed in, positive: grid consumption */
|
|
257
|
+
gridPowerPhase1W?: number;
|
|
258
|
+
/** Power on phase L2 (in Watt), negative: grid feed in, positive: grid consumption */
|
|
259
|
+
gridPowerPhase2W?: number;
|
|
260
|
+
/** Power on phase L3 (in Watt), negative: grid feed in, positive: grid consumption */
|
|
261
|
+
gridPowerPhase3W?: number;
|
|
256
262
|
/** Grid Feed in (in Watt hours) */
|
|
257
263
|
gridFeedInWh: number;
|
|
258
264
|
/** Grid Consumption in (in Watt hours) */
|
package/dist/cjs/version.cjs
CHANGED
|
@@ -9,7 +9,7 @@ exports.getSdkVersion = getSdkVersion;
|
|
|
9
9
|
/**
|
|
10
10
|
* Current version of the enyo Energy App SDK.
|
|
11
11
|
*/
|
|
12
|
-
exports.SDK_VERSION = '0.0.
|
|
12
|
+
exports.SDK_VERSION = '0.0.152';
|
|
13
13
|
/**
|
|
14
14
|
* Gets the current SDK version.
|
|
15
15
|
* @returns The semantic version string of the SDK
|
package/dist/cjs/version.d.cts
CHANGED
package/dist/implementations/appliance-command-forecast/appliance-command-forecast-validators.js
CHANGED
|
@@ -159,6 +159,7 @@ export function validateHeatpumpScheduleEntry(entry, fieldName) {
|
|
|
159
159
|
validateBooleanField(entry.dhwBoostActive, `${fieldName}.dhwBoostActive`);
|
|
160
160
|
validateBooleanField(entry.roomPreHeatingActive, `${fieldName}.roomPreHeatingActive`);
|
|
161
161
|
validateBooleanField(entry.bufferTankBoostActive, `${fieldName}.bufferTankBoostActive`);
|
|
162
|
+
validateBooleanField(entry.availablePowerActive, `${fieldName}.availablePowerActive`);
|
|
162
163
|
}
|
|
163
164
|
function validateMetadata(forecast) {
|
|
164
165
|
if (!(forecast.resolution in RESOLUTION_SECONDS)) {
|
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
export interface UdpBindOptions {
|
|
5
5
|
/** Bind port. 0 selects an ephemeral port. */
|
|
6
6
|
port: number;
|
|
7
|
+
/**
|
|
8
|
+
* When `true`, sets `SO_REUSEADDR` on the underlying socket so multiple
|
|
9
|
+
* sockets may bind to the same address/port. Maps to the `reuseAddr`
|
|
10
|
+
* option of `node:dgram`'s `createSocket`.
|
|
11
|
+
*
|
|
12
|
+
* Defaults to `false`.
|
|
13
|
+
*/
|
|
14
|
+
reuseAddr?: boolean;
|
|
7
15
|
}
|
|
8
16
|
/**
|
|
9
17
|
* A single inbound datagram delivered to a handler registered with
|
|
@@ -318,6 +318,18 @@ export interface HeatpumpForecastScheduleEntry {
|
|
|
318
318
|
* tank up, `false` (or omitted) otherwise.
|
|
319
319
|
*/
|
|
320
320
|
bufferTankBoostActive?: boolean;
|
|
321
|
+
/**
|
|
322
|
+
* Whether the publisher is announcing available power for this slot
|
|
323
|
+
* — `true` when the energy-manager decision for the slot is
|
|
324
|
+
* "available power", meaning {@link powerW} doubles as the
|
|
325
|
+
* available-power offer to the heatpump (the heatpump is free to
|
|
326
|
+
* consume up to that value), `false` (or omitted) otherwise.
|
|
327
|
+
*
|
|
328
|
+
* This flag is independent of the other `*Active` flags and may
|
|
329
|
+
* coexist with them when the publisher offers available power while
|
|
330
|
+
* a boost / pre-heating window is also planned.
|
|
331
|
+
*/
|
|
332
|
+
availablePowerActive?: boolean;
|
|
321
333
|
}
|
|
322
334
|
/**
|
|
323
335
|
* Forecasted command plan for a heatpump appliance, published via
|
|
@@ -253,6 +253,12 @@ export interface EnyoDataBusMeterValuesUpdateV1 extends EnyoDataBusMessage {
|
|
|
253
253
|
data: {
|
|
254
254
|
/** Power from Grid (in Watt), negative: grid feed in, positive: grid consumption*/
|
|
255
255
|
gridPowerW?: number;
|
|
256
|
+
/** Power on phase L1 (in Watt), negative: grid feed in, positive: grid consumption */
|
|
257
|
+
gridPowerPhase1W?: number;
|
|
258
|
+
/** Power on phase L2 (in Watt), negative: grid feed in, positive: grid consumption */
|
|
259
|
+
gridPowerPhase2W?: number;
|
|
260
|
+
/** Power on phase L3 (in Watt), negative: grid feed in, positive: grid consumption */
|
|
261
|
+
gridPowerPhase3W?: number;
|
|
256
262
|
/** Grid Feed in (in Watt hours) */
|
|
257
263
|
gridFeedInWh: number;
|
|
258
264
|
/** Grid Consumption in (in Watt hours) */
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED