Skip to content

Commit

Permalink
Fixed bug for api secret being gone. And live updates
Browse files Browse the repository at this point in the history
  • Loading branch information
K1LL3R234 committed Oct 11, 2024
1 parent a75d663 commit ec6d4df
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 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.1 (2024-10-11)

- **BUG** - Fixed bug for token being removed and can not continue requests.

### 1.0.0 (2024-10-11)

- **FEATURE** - Released.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![npm](https://badgen.net/npm/v/homebridge-sunsynk/latest)](https://www.npmjs.com/package/homebridge-sunsynk)
[![npm](https://badgen.net/npm/v/homebridge-sunsynk)](https://www.npmjs.com/package/homebridge-sunsynk)
[![npm](https://badgen.net/npm/dt/homebridge-sunsynk)](https://www.npmjs.com/package/homebridge-sunsynk)
[![npm version](https://badgen.net/npm/v/homebridge-sunsynk/latest)](https://www.npmjs.com/package/homebridge-sunsynk)
[![npm beta version](https://badgen.net/npm/v/homebridge-sunsynk/beta)](https://www.npmjs.com/package/homebridge-sunsynk)
[![npm downloads](https://badgen.net/npm/dt/homebridge-sunsynk)](https://www.npmjs.com/package/homebridge-sunsynk)
[![GitHub last commit](https://badgen.net/github/last-commit/K1LL3R234/homebridge-sunsynk)](https://github.com/K1LL3R234/homebridge-sunsynk)
# homebridge-sunsynk
Sunsynk Inveter plugin
Expand Down
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ SunsynkAccessory.prototype = {
changeAction = function (newvalue) {
service.getCharacteristic(Characteristic.CurrentAmbientLightLevel)
.setValue(newvalue);
service.getCharacteristic(Characteristic.CurrentAmbientLightLevel)
.updateValue(newvalue);
}
break;

Expand All @@ -200,16 +202,22 @@ SunsynkAccessory.prototype = {
changeAction = function (newvalue) {
service.getCharacteristic(Characteristic.BatteryLevel)
.setValue(newvalue);
service.getCharacteristic(Characteristic.BatteryLevel)
.updateValue(newvalue);
}

changeLevel = function (newlevel) {
service.getCharacteristic(Characteristic.StatusLowBattery)
.setValue(newlevel);
service.getCharacteristic(Characteristic.StatusLowBattery)
.updateValue(newlevel);
}

changeState = function (newvalue) {
service.getCharacteristic(Characteristic.ChargingState)
.setValue(newvalue);
service.getCharacteristic(Characteristic.ChargingState)
.updateValue(newvalue);
}
break;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/sunsynkAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class sunsynkAPI {
if (this.tokenInfo.expires_in - 60 * 1000 > new Date().getTime()) {
return;
}
this.tokenInfo.access_token = '';
//this.tokenInfo.access_token = '';
}

calcMd5(data) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"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.0",
"version": "1.0.1",
"author": {
"name": "Chris Posthumus",
"email": "[email protected]"
Expand Down

0 comments on commit ec6d4df

Please sign in to comment.