Skip to content

Commit

Permalink
Fixed SN for each device to be diffrent.
Browse files Browse the repository at this point in the history
  • Loading branch information
K1LL3R234 committed Oct 13, 2024
1 parent 1710856 commit 87e5c1b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This change log documents all release versions of homebridge-texecom

### 1.0.4 (2024-10-13)
- **BUG** - Fixed SN for each device to be diffrent.

### 1.0.4-beta.2 (2024-10-11)
- **BUG** - Fixed problem with 0 pv bringing up an error.
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function SunsynkAccessory(log, config) {
this.type = config["type"];

var shasum = crypto.createHash('sha1');
//shasum.update(this.zone_number/* || this.area_number*/);
shasum.update(this.name);

this.sn = shasum.digest('base64');
log.log('Computed SN: ' + this.sn);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"displayName": "Homebridge Sunsynk",
"name": "homebridge-sunsynk",
"description": "A plugin for homebridge (https://github.com/nfarina/homebridge) to integrate Sunsynk inverter into HomeKit",
"version": "1.0.4-beta.2",
"description": "A plugin for homebridge to integrate Sunsynk inverter into HomeKit",
"version": "1.0.4",
"author": {
"name": "Chris Posthumus",
"email": "[email protected]"
Expand Down

0 comments on commit 87e5c1b

Please sign in to comment.