Skip to content

Commit

Permalink
fixes #266
Browse files Browse the repository at this point in the history
  • Loading branch information
Grizzelbee committed Apr 24, 2024
1 parent 1390ff7 commit 0a5cce5
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 0a5cce5

Please sign in to comment.