Skip to content

Commit

Permalink
Reduced log level for onTemperature events (now debug events)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwi-cam committed Jul 12, 2024
1 parent d912d81 commit 7176d5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- Reduced default logging of blind positions #702
### Changed
- Reduced log level for onTemperature events (now debug events)

## [4.4.16 - 2023-07-10]
### Fixed
Expand Down
4 changes: 2 additions & 2 deletions accessories/aircon.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,15 +437,15 @@ class AirConAccessory extends BroadlinkRMAccessory {
temperature += temperatureAdjustment;
if (tempSourceUnits == 'F') {temperature = (temperature - 32) * 5/9;}
state.currentTemperature = temperature;
if(logLevel <=2) {log(`\x1b[36m[INFO] \x1b[0m${name} onTemperature (${temperature})`);}
if(logLevel <=1) {log(`\x1b[34m[DEBUG]\x1b[0m ${name} onTemperature (${temperature})`);}

if(humidity) {
if(noHumidity){
state.currentHumidity = null;
}else{
humidity += humidityAdjustment;
state.currentHumidity = humidity;
if(logLevel <=2) {log(`\x1b[36m[INFO] \x1b[0m${name} onHumidity (` + humidity + `)`);}
if(logLevel <=1) {log(`\x1b[34m[DEBUG]\x1b[0m ${name} onHumidity (` + humidity + `)`);}
}
}

Expand Down

0 comments on commit 7176d5a

Please sign in to comment.