@rygine/omnilogic-local-sdk 0.0.2 → 0.0.3

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/CHANGELOG.md CHANGED
@@ -3,10 +3,14 @@
3
3
  All notable changes to this project are recorded here, and versions follow
4
4
  [Semantic Versioning](https://semver.org/).
5
5
 
6
+ ## 0.0.3
7
+
8
+ - Added `isRunning` to pumps
9
+
6
10
  ## 0.0.2
7
11
 
8
12
  - Removed rounding to whole seconds in `cacheTTL` calculation
9
- - Minimum Node.js version changed to 22
13
+ - Changed minimum Node.js version 22
10
14
 
11
15
  ## 0.0.1
12
16
 
package/dist/index.d.ts CHANGED
@@ -492,8 +492,8 @@ export declare const parseConfig: (xml: string) => {
492
492
  operations: Operation[];
493
493
  })[];
494
494
  name: string;
495
- serviceModeTimeout: number;
496
495
  systemId: number;
496
+ serviceModeTimeout: number;
497
497
  };
498
498
  devices: Device$1[];
499
499
  favorites: Favorite[];
@@ -5137,6 +5137,7 @@ declare class Pump extends Device {
5137
5137
  get countdownReason(): number;
5138
5138
  get speed(): number;
5139
5139
  get isOn(): boolean;
5140
+ get isRunning(): boolean;
5140
5141
  get lastSpeed(): number;
5141
5142
  get status(): string;
5142
5143
  get whyOn(): string;
@@ -5722,7 +5723,7 @@ export declare const ColorLogicPowerState: {
5722
5723
  readonly COOLDOWN: 7;
5723
5724
  };
5724
5725
  export declare const powerStateName: (code: number | undefined) => string;
5725
- export declare const isLightLit: (state: number) => state is 3 | 6 | 4;
5726
+ export declare const isLightLit: (state: number) => state is 6 | 3 | 4;
5726
5727
  type LightShowInfo = {
5727
5728
  value: number;
5728
5729
  name: string;
package/dist/index.js CHANGED
@@ -6444,6 +6444,9 @@ var Pump = class extends Device {
6444
6444
  get isOn() {
6445
6445
  return this.reported && this.#reading.position !== 0;
6446
6446
  }
6447
+ get isRunning() {
6448
+ return this.speed > 0;
6449
+ }
6447
6450
  get lastSpeed() {
6448
6451
  return this.#rows.find((r) => r.systemId === this.equipmentId)?.lastSpeed ?? 0;
6449
6452
  }