Skip to content

Commit

Permalink
installtiondate battery wrong type
Browse files Browse the repository at this point in the history
  • Loading branch information
arteck authored Mar 21, 2022
1 parent e1e784b commit a208787
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class judoisoftControll extends utils.Adapter {
result = judoConv.getInValue(conResult.data.data[0].data[0].data, '6');
// result = daten.data[0].installation_date;
this.log.debug("-> InstallationDate " + result);
await this.setState("InstallationDate", result, true);
await this.setState("InstallationDate", Number(result), true);


// service
Expand Down Expand Up @@ -263,7 +263,7 @@ class judoisoftControll extends utils.Adapter {
result = judoConv.getInValue(conResult.data.data[0].data[0].data, '93');
if (result && result.toString().indexOf(":") > -1) {
let batt = result.split(":");
await this.setState(`Battery`, batt[0], true);
await this.setState(`Battery`, Number(batt[0]), true);
this.log.debug("-> Battery" + batt[0]);
}

Expand Down

0 comments on commit a208787

Please sign in to comment.