Skip to content

Commit

Permalink
Merge pull request #268 from Grizzelbee/development
Browse files Browse the repository at this point in the history
fixes #266
  • Loading branch information
Grizzelbee authored Apr 24, 2024
2 parents 93e1180 + 0a5cce5 commit 51fc0ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dysonConstants.js

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

2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ class dysonAirPurifier extends utils.Adapter {
// testValue should be the 2nd value in an array or if it's no array, the value itself
const testValue = ( typeof message[this.getDysonCode(deviceConfig)] === 'object'? message[this.getDysonCode(deviceConfig)][1] : message[this.getDysonCode(deviceConfig)] );
//this.log.debug(`${getDataPointName(deviceConfig)} is a bool switch. Current state: [${testValue}]`);
value = (testValue === 'ON' || testValue === 'HUMD');
value = (testValue === 'ON' || testValue === 'HUMD' || testValue === 'HEAT');
} else if (this.getDataType(deviceConfig)==='boolean' && this.getDataRole(deviceConfig).startsWith('indicator')) {
// testValue should be the 2nd value in an array or if it's no array, the value itself
const testValue = ( typeof message[this.getDysonCode(deviceConfig)] === 'object'? message[this.getDysonCode(deviceConfig)][1] : message[this.getDysonCode(deviceConfig)] );
Expand Down

0 comments on commit 51fc0ac

Please sign in to comment.