Skip to content

Commit ec85322

Browse files
committed
Fix for issue#10
Bug with smartmeter and 3phase
1 parent 2a448ec commit ec85322

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

.homeychangelog.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,8 @@
2828
},
2929
"0.0.12": {
3030
"en": "Fixed bug at beginning of the month in device Reporting"
31+
},
32+
"0.0.13": {
33+
"en": "Fixed bug with smartmeter and 3-phase (#10)"
3134
}
3235
}

.homeycompose/app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "com.thomashoussin.fronius",
3-
"version": "0.0.12",
3+
"version": "0.0.13",
44
"compatibility": ">=3.1.0",
55
"sdk": 2,
66
"name": {

app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"_comment": "This file is generated. Please edit .homeycompose/app.json instead.",
33
"id": "com.thomashoussin.fronius",
4-
"version": "0.0.12",
4+
"version": "0.0.13",
55
"compatibility": ">=3.1.0",
66
"sdk": 2,
77
"name": {

drivers/smartmeter/device.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Smartmeter extends FroniusDevice {
2727
//Current, in A ; default to 0
2828
let current = 0;
2929
if (typeof data.Current_AC_Sum == 'number') current = data.Current_AC_Sum;
30-
else if (typeof data.Current_AC_Phase_1 == 'number' && typeof data.Current_AC_Phase_2 == 'number' && typeof data.Current_AC_Phase_3 == 'number') current = data.Current_AC_Phase_1 + data.Current_AC_Phase_2 + Current_AC_Phase_3;
30+
else if (typeof data.Current_AC_Phase_1 == 'number' && typeof data.Current_AC_Phase_2 == 'number' && typeof data.Current_AC_Phase_3 == 'number') current = data.Current_AC_Phase_1 + data.Current_AC_Phase_2 + data.Current_AC_Phase_3;
3131
this.setCapabilityValue('measure_current', current);
3232

3333
//Voltage, in V ; default to 0

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.thomashoussin.fronius",
3-
"version": "0.0.9",
3+
"version": "0.0.13",
44
"main": "app.js",
55
"dependencies": {
66
"node-fetch": "^2.6.1",

0 commit comments

Comments
 (0)