diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a2e2e9d..3b86116d 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/accessories/aircon.js b/accessories/aircon.js index 27764c72..a4bd6ab0 100755 --- a/accessories/aircon.js +++ b/accessories/aircon.js @@ -437,7 +437,7 @@ 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){ @@ -445,7 +445,7 @@ class AirConAccessory extends BroadlinkRMAccessory { }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 + `)`);} } }