@camstack/addon-provider-homematic 1.2.159 → 1.2.161

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/index.js CHANGED
@@ -479,15 +479,15 @@ var HomematicDevice = class extends require_addon.BaseDevice {
479
479
  decodeSensorPush(parameter, value, now) {
480
480
  if (typeof value !== "number") return;
481
481
  if (this.capChannels.has("temperature-sensor") && parameter === "ACTUAL_TEMPERATURE") this.runtimeState.setCapState("temperature-sensor", {
482
- celsius: value,
482
+ temperature: value,
483
483
  lastFetchedAt: now
484
484
  });
485
485
  if (this.capChannels.has("humidity-sensor") && parameter === "HUMIDITY") this.runtimeState.setCapState("humidity-sensor", {
486
- percent: value,
486
+ humidity: value,
487
487
  lastFetchedAt: now
488
488
  });
489
489
  if (this.capChannels.has("ambient-light-sensor") && parameter === "ILLUMINATION") this.runtimeState.setCapState("ambient-light-sensor", {
490
- lux: Math.max(0, value),
490
+ illuminance: Math.max(0, value),
491
491
  lastFetchedAt: now
492
492
  });
493
493
  this.decodePowerPush(parameter, value, now);
@@ -500,28 +500,28 @@ var HomematicDevice = class extends require_addon.BaseDevice {
500
500
  case "POWER":
501
501
  this.runtimeState.setCapState("power-meter", {
502
502
  ...prev,
503
- watts: value,
503
+ power: value,
504
504
  lastFetchedAt: now
505
505
  });
506
506
  return;
507
507
  case "ENERGY_COUNTER":
508
508
  this.runtimeState.setCapState("power-meter", {
509
509
  ...prev,
510
- kwhTotal: value / 1e3,
510
+ energy: value / 1e3,
511
511
  lastFetchedAt: now
512
512
  });
513
513
  return;
514
514
  case "VOLTAGE":
515
515
  this.runtimeState.setCapState("power-meter", {
516
516
  ...prev,
517
- volts: value,
517
+ voltage: value,
518
518
  lastFetchedAt: now
519
519
  });
520
520
  return;
521
521
  case "CURRENT":
522
522
  this.runtimeState.setCapState("power-meter", {
523
523
  ...prev,
524
- amps: value / 1e3,
524
+ current: value / 1e3,
525
525
  lastFetchedAt: now
526
526
  });
527
527
  return;
package/dist/index.mjs CHANGED
@@ -478,15 +478,15 @@ var HomematicDevice = class extends BaseDevice {
478
478
  decodeSensorPush(parameter, value, now) {
479
479
  if (typeof value !== "number") return;
480
480
  if (this.capChannels.has("temperature-sensor") && parameter === "ACTUAL_TEMPERATURE") this.runtimeState.setCapState("temperature-sensor", {
481
- celsius: value,
481
+ temperature: value,
482
482
  lastFetchedAt: now
483
483
  });
484
484
  if (this.capChannels.has("humidity-sensor") && parameter === "HUMIDITY") this.runtimeState.setCapState("humidity-sensor", {
485
- percent: value,
485
+ humidity: value,
486
486
  lastFetchedAt: now
487
487
  });
488
488
  if (this.capChannels.has("ambient-light-sensor") && parameter === "ILLUMINATION") this.runtimeState.setCapState("ambient-light-sensor", {
489
- lux: Math.max(0, value),
489
+ illuminance: Math.max(0, value),
490
490
  lastFetchedAt: now
491
491
  });
492
492
  this.decodePowerPush(parameter, value, now);
@@ -499,28 +499,28 @@ var HomematicDevice = class extends BaseDevice {
499
499
  case "POWER":
500
500
  this.runtimeState.setCapState("power-meter", {
501
501
  ...prev,
502
- watts: value,
502
+ power: value,
503
503
  lastFetchedAt: now
504
504
  });
505
505
  return;
506
506
  case "ENERGY_COUNTER":
507
507
  this.runtimeState.setCapState("power-meter", {
508
508
  ...prev,
509
- kwhTotal: value / 1e3,
509
+ energy: value / 1e3,
510
510
  lastFetchedAt: now
511
511
  });
512
512
  return;
513
513
  case "VOLTAGE":
514
514
  this.runtimeState.setCapState("power-meter", {
515
515
  ...prev,
516
- volts: value,
516
+ voltage: value,
517
517
  lastFetchedAt: now
518
518
  });
519
519
  return;
520
520
  case "CURRENT":
521
521
  this.runtimeState.setCapState("power-meter", {
522
522
  ...prev,
523
- amps: value / 1e3,
523
+ current: value / 1e3,
524
524
  lastFetchedAt: now
525
525
  });
526
526
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-homematic",
3
- "version": "1.2.159",
3
+ "version": "1.2.161",
4
4
  "description": "Homematic / HomematicIP (CCU3 / RaspberryMatic) device-provider addon for CamStack — wraps the nodehomematic library",
5
5
  "keywords": [
6
6
  "camstack",