homebridge-smartsystem 7.1.3 → 7.1.5

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-smartsystem",
3
3
  "displayname": "Duotecno Bridge",
4
- "version": "7.1.3",
4
+ "version": "7.1.5",
5
5
  "description": "SmartServer (Proxy TCP sockets to the cloud, Smappee MQTT, Duotecno IP Nodes, Homekit interface)",
6
6
  "main": "index.js",
7
7
  "author": "Johan Coppieters",
@@ -34,7 +34,7 @@
34
34
  ],
35
35
  "repository": {
36
36
  "type": "git",
37
- "url": "https://github.com/jcoppieters/smartsocket.git"
37
+ "url": "https://github.com/Duotecno-developer/smartsocket.git"
38
38
  },
39
39
  "dependencies": {
40
40
  "bonjour-service": "^1.3.0",
@@ -830,7 +830,7 @@ class SmartApp extends webapp_1.WebApp {
830
830
  const channels = channel.split('+').map(c => parseInt(c.trim()));
831
831
  let totalPower = 0;
832
832
  for (const ch of channels) {
833
- const binding = this.power.smappee.bindings.find(b => b.channel.includes(ch.toString()));
833
+ const binding = this.power.smappee.bindings.find(b => b.channel === ch.toString());
834
834
  if (binding && binding.value !== undefined) {
835
835
  totalPower += binding.value;
836
836
  }
@@ -847,7 +847,7 @@ class SmartApp extends webapp_1.WebApp {
847
847
  return null;
848
848
  try {
849
849
  // P1 meter typically has single power value
850
- const binding = this.power.p1.bindings.find(b => b.channel.includes(channel));
850
+ const binding = this.power.p1.bindings.find(b => b.channel === channel);
851
851
  if (binding && binding.value !== undefined) {
852
852
  return binding.value;
853
853
  }
@@ -866,7 +866,7 @@ class SmartApp extends webapp_1.WebApp {
866
866
  const channels = channel.split('+').map(c => parseInt(c.trim()));
867
867
  let totalPower = 0;
868
868
  for (const ch of channels) {
869
- const binding = this.power.shelly.bindings.find(b => b.channel.includes(ch.toString()));
869
+ const binding = this.power.shelly.bindings.find(b => b.channel === ch.toString());
870
870
  if (binding && binding.value !== undefined) {
871
871
  totalPower += binding.value;
872
872
  }