Skip to content

Commit

Permalink
Merge pull request #255 from Grizzelbee/development
Browse files Browse the repository at this point in the history
V3.1.3
  • Loading branch information
Grizzelbee authored Feb 28, 2024
2 parents bfc04b2 + 483f379 commit c8a3933
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 17 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ connects to all devices locally and interacts with them.

### Prerequisites

* This adapter needs Node.js >= version 10
* This adapter needs Node.js >= version 18.2
* At least js-Controller 3.0.0 is required
* At least Admin 4.0.9 is required
* At least Admin 6.0.0 is required
* To get this adapter running you'll need a Dyson account.
* Make sure to add your fan to your account. Either via App or online.

Expand Down Expand Up @@ -164,13 +164,17 @@ All states report whether there is a failure or not. `True` means a failure, `fa
### Known issues
* No automatic IP detection of devices
* Still many unknown device messages (mostly failures and warnings)
* Filter Reset does not work since the correct mqtt message is unknown
* Sometimes the adapter loses the MQTT connection to a fan and isn't able to reconnect. `This is usually no issue of the adapter itself, but an issue in your local network!`
* In some cases it's sufficient to unplug the fan for approximately 10 seconds to reset it and plug it in again. Just give it a try!
* In other cases it has been an IP/DNS issue. Resetting the DHCP/DNS server (router) solved the issue.

## Changelog
### **WORK IN PROGRESS**

### 3.1.3 (2024-02-28) (Marching on)
* (grizzelbee) Fix: 2FA Process is working again - truely

### 3.1.2 (2024-02-26) (Marching on)
* (grizzelbee) Upd: dependencies got updated
* (grizzelbee) Fix: 2FA Process is working again
Expand Down
4 changes: 3 additions & 1 deletion dyson-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,11 @@ module.exports.getDysonToken = async function(adapter, email, passwd, country,
headers: dysonConstants.HTTP_HEADERS,
json: true,
});
return(response.data);
// return(response.data);
return( {native: {token: response.data.token}} );
} catch(err){
adapter.log.error('getDysonToken: ' + err);
return({error : `Received error: [${err}] from dyson API.`});
}
};

Expand Down
18 changes: 16 additions & 2 deletions io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
{
"common": {
"name": "dysonairpurifier",
"version": "3.1.2",
"version": "3.1.3",
"news": {
"3.1.3": {
"en": "2FA Process is working again - truely",
"de": "Der 2FA-Prozess funktioniert wieder – tatsächlich",
"ru": "Процесс 2FA снова работает — это правда",
"pt": "O processo 2FA está funcionando novamente - de verdade",
"nl": "Het 2FA-proces werkt weer - echt waar",
"fr": "Le processus 2FA fonctionne à nouveau – vraiment",
"it": "Il processo 2FA funziona di nuovo, davvero",
"es": "El proceso 2FA está funcionando nuevamente, de verdad",
"pl": "Proces 2FA znów działa – to prawda",
"uk": "Процес 2FA знову працює - дійсно",
"zh-cn": "2FA 流程再次发挥作用——确实如此"
},
"3.1.2": {
"en": "dependencies got updated\n2FA Process is working again\nAt least nodeJs V18.2.0 is required",
"de": "Abhängigkeiten wurden aktualisiert\n2FA-Prozess funktioniert wieder\nMindestens nodeJs V18.2.0 ist erforderlich",
Expand Down Expand Up @@ -141,7 +154,8 @@
"subscribe": "messagebox",
"dependencies": [
{
"js-controller": ">=3.0.0"
"js-controller": ">=3.0.0",
"admin": ">=6.0.0"
}
],
"plugins": {
Expand Down
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.dysonairpurifier",
"version": "3.1.2",
"version": "3.1.3",
"description": "dyson air purifiers and fans",
"author": {
"name": "grizzelbee",
Expand Down Expand Up @@ -41,7 +41,7 @@
"@types/chai": "^4.3.12",
"@types/chai-as-promised": "^7.1.8",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.20",
"@types/node": "^20.11.21",
"@types/proxyquire": "^1.3.31",
"@types/sinon": "^17.0.3",
"@types/sinon-chai": "^3.2.12",
Expand Down

0 comments on commit c8a3933

Please sign in to comment.