@enyo-energy/sunspec-sdk 0.0.27 → 0.0.28

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.
@@ -130,6 +130,7 @@ class SunspecInverter extends BaseSunspecDevice {
130
130
  if (inverterData) {
131
131
  const totalAcPowerW = inverterData.acPower || 0;
132
132
  const purePvPowerW = Math.max(0, totalAcPowerW - batteryDischargePowerW);
133
+ console.log(`Got Battery Discharge power ${batteryDischargePowerW} and Inverter Power W ${totalAcPowerW} with pure PV Power ${purePvPowerW}`);
133
134
  const inverterMessage = {
134
135
  id: (0, node_crypto_1.randomUUID)(),
135
136
  message: enyo_data_bus_value_js_1.EnyoDataBusMessageEnum.InverterValuesUpdateV1,
@@ -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.27';
12
+ exports.SDK_VERSION = '0.0.28';
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.27";
8
+ export declare const SDK_VERSION = "0.0.28";
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
@@ -126,6 +126,7 @@ export class SunspecInverter extends BaseSunspecDevice {
126
126
  if (inverterData) {
127
127
  const totalAcPowerW = inverterData.acPower || 0;
128
128
  const purePvPowerW = Math.max(0, totalAcPowerW - batteryDischargePowerW);
129
+ console.log(`Got Battery Discharge power ${batteryDischargePowerW} and Inverter Power W ${totalAcPowerW} with pure PV Power ${purePvPowerW}`);
129
130
  const inverterMessage = {
130
131
  id: randomUUID(),
131
132
  message: EnyoDataBusMessageEnum.InverterValuesUpdateV1,
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.27";
8
+ export declare const SDK_VERSION = "0.0.28";
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.27';
8
+ export const SDK_VERSION = '0.0.28';
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/sunspec-sdk",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "description": "enyo Energy Sunspec SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",