@kohost/api-client 3.0.0-beta.82 → 3.0.0-beta.83

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.
@@ -49,7 +49,7 @@ class Scene extends Kohost {
49
49
  const currentSetpoint = setpoints[currentMode];
50
50
 
51
51
  if (currentMode === "heat") {
52
- let setpointValue = Math.min(
52
+ let setpointValue = Math.max(
53
53
  currentSetpoint.min,
54
54
  currentSetpoint.value - delta
55
55
  );
@@ -68,7 +68,7 @@ class Scene extends Kohost {
68
68
  };
69
69
  }
70
70
  if (currentMode === "cool") {
71
- let setpointValue = Math.max(
71
+ let setpointValue = Math.min(
72
72
  currentSetpoint.max,
73
73
  currentSetpoint.value + delta
74
74
  );
@@ -88,12 +88,12 @@ class Scene extends Kohost {
88
88
 
89
89
  if (currentMode === "auto") {
90
90
  if (!currentSetpoint && setpoints.cool && setpoints.heat) {
91
- let heatSetpoint = Math.min(
91
+ let heatSetpoint = Math.max(
92
92
  setpoints.heat.min,
93
93
  setpoints.heat.value - delta
94
94
  );
95
95
 
96
- let coolSetpoint = Math.max(
96
+ let coolSetpoint = Math.min(
97
97
  setpoints.cool.max,
98
98
  setpoints.cool.value + delta
99
99
  );
@@ -57,7 +57,11 @@ export interface Space {
57
57
  occupied?: boolean;
58
58
  eco?: {
59
59
  active?: boolean;
60
- activatedAt?: string;
60
+ activatedAt?:
61
+ | string
62
+ | {
63
+ [k: string]: unknown;
64
+ };
61
65
  allowed?: boolean;
62
66
  };
63
67
  features?: string[];
@@ -65,7 +65,7 @@
65
65
  "default": false
66
66
  },
67
67
  "activatedAt": {
68
- "type": "string",
68
+ "type": ["string", "object"],
69
69
  "format": "date-time"
70
70
  },
71
71
  "allowed": {
@@ -11297,7 +11297,7 @@ var require_Scene = __commonJS({
11297
11297
  const minAutoDelta = device.minAutoDelta;
11298
11298
  const currentSetpoint = setpoints[currentMode];
11299
11299
  if (currentMode === "heat") {
11300
- let setpointValue = Math.min(
11300
+ let setpointValue = Math.max(
11301
11301
  currentSetpoint.min,
11302
11302
  currentSetpoint.value - delta
11303
11303
  );
@@ -11314,7 +11314,7 @@ var require_Scene = __commonJS({
11314
11314
  };
11315
11315
  }
11316
11316
  if (currentMode === "cool") {
11317
- let setpointValue = Math.max(
11317
+ let setpointValue = Math.min(
11318
11318
  currentSetpoint.max,
11319
11319
  currentSetpoint.value + delta
11320
11320
  );
@@ -11332,11 +11332,11 @@ var require_Scene = __commonJS({
11332
11332
  }
11333
11333
  if (currentMode === "auto") {
11334
11334
  if (!currentSetpoint && setpoints.cool && setpoints.heat) {
11335
- let heatSetpoint = Math.min(
11335
+ let heatSetpoint = Math.max(
11336
11336
  setpoints.heat.min,
11337
11337
  setpoints.heat.value - delta
11338
11338
  );
11339
- let coolSetpoint = Math.max(
11339
+ let coolSetpoint = Math.min(
11340
11340
  setpoints.cool.max,
11341
11341
  setpoints.cool.value + delta
11342
11342
  );
@@ -11678,7 +11678,7 @@ var require_space = __commonJS({
11678
11678
  default: false
11679
11679
  },
11680
11680
  activatedAt: {
11681
- type: "string",
11681
+ type: ["string", "object"],
11682
11682
  format: "date-time"
11683
11683
  },
11684
11684
  allowed: {