From 87e5c1b534059626598b418822389e644f24c30a Mon Sep 17 00:00:00 2001 From: Chris Posthumus Date: Sun, 13 Oct 2024 14:00:23 +0200 Subject: [PATCH] Fixed SN for each device to be diffrent. --- CHANGELOG.md | 4 ++++ index.js | 2 +- package.json | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 18a1ffa..b832abf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/index.js b/index.js index d90dea0..3e009c8 100644 --- a/index.js +++ b/index.js @@ -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); diff --git a/package.json b/package.json index 4d7a4d5..7ce5c99 100644 --- a/package.json +++ b/package.json @@ -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": "chris.posthumus@gmail.com"