@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.
@@ -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) */
@@ -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.150';
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
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export declare const SDK_VERSION = "0.0.150";
8
+ export declare const SDK_VERSION = "0.0.152";
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
@@ -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
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export declare const SDK_VERSION = "0.0.150";
8
+ export declare const SDK_VERSION = "0.0.152";
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
package/dist/version.js CHANGED
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export const SDK_VERSION = '0.0.150';
8
+ export const SDK_VERSION = '0.0.152';
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enyo-energy/energy-app-sdk",
3
- "version": "0.0.150",
3
+ "version": "0.0.152",
4
4
  "description": "enyo Energy App SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",