Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.4.18 release #723

Merged
merged 87 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
7ed70dc
Serialize the simultaneous commands.
banboobee Aug 13, 2022
a069799
Merge branch 'beta' into PR4.4.11-2
kiwi-cam Nov 10, 2022
5824bc0
Fix fan switchState when resetting to defaults (#592)
dnicolson Jun 12, 2023
bc50468
Ignore fanSpeed key when looking for fan speeds (#593)
dnicolson Jun 12, 2023
dee6d4b
Fix log error (#606)
hypery2k Jun 12, 2023
0cf1c9c
Update CHANGELOG.md
kiwi-cam Jun 12, 2023
279174d
Update CHANGELOG.md
kiwi-cam Jun 12, 2023
d347c36
Updated package-lock.json
kiwi-cam Jun 13, 2023
359d815
Added default battery level for file and w1
kiwi-cam Jun 16, 2023
897412f
Update CHANGELOG.md
kiwi-cam Jun 16, 2023
391c3a7
Release 4.4.13-beta.1
kiwi-cam Jun 16, 2023
7501cfc
Serialize command sequence to enable last pause command. (#528)
banboobee Jun 16, 2023
d7c1bca
Change CHANGELOG.md
kiwi-cam Jun 16, 2023
68a68e1
.
kiwi-cam Jun 16, 2023
3eea513
Update CHANGELOG.md
kiwi-cam Jun 16, 2023
5805d1d
Adds setExclusivesOFF
kiwi-cam Jun 16, 2023
451d24f
Merge branch 'beta' of https://github.com/kiwi-cam/homebridge-broadli…
kiwi-cam Jun 16, 2023
45ace6a
Sync channel selection when tv is powered on. (#529)
banboobee Jun 16, 2023
a272f1d
Update CHANGELOG.md
kiwi-cam Jun 16, 2023
64746c9
Resolve the workaround of #440. (#519)
banboobee Jun 16, 2023
3d2281e
Fixed CHANGELOG.md
kiwi-cam Jun 16, 2023
35855e9
Release 4.4.13-beta.2
kiwi-cam Jun 16, 2023
931f941
Merge branch 'beta' of https://github.com/kiwi-cam/homebridge-broadli…
kiwi-cam Jun 17, 2023
bc4eab9
Updated broadlink-js version
kiwi-cam Jun 17, 2023
e85bcfc
Trying banboobees changes
kiwi-cam Jun 17, 2023
ea1fe17
reverting failed changes in beta.2
kiwi-cam Jun 17, 2023
103cb57
Re-resolve the workaround of #440
kiwi-cam Jun 17, 2023
c9e2576
Re-resolve the workaround of #440
kiwi-cam Jun 17, 2023
1e1a4b3
Updated package-lock.json
kiwi-cam Jun 17, 2023
326343b
Fixed lint error
kiwi-cam Jun 17, 2023
2bfff1c
Serializes the simultaneous IR/RF commands. #520
kiwi-cam Jun 17, 2023
e97619a
Merge branch 'banboobee-PR4.4.11-2' into beta
kiwi-cam Jun 17, 2023
94f6237
Updated dependancies to remove known vulnerabilities
kiwi-cam Jun 17, 2023
a8da388
Release 4.4.13-beta.4
kiwi-cam Jun 17, 2023
cd9e9c6
Tidying up the lint
kiwi-cam Jun 18, 2023
b31dfb4
New BETA setup
kiwi-cam Jun 18, 2023
baf8aac
Permissions changes
kiwi-cam Jun 22, 2023
f464a8f
Fix for airco HEX lookup when offn off
kiwi-cam Jun 27, 2023
df8a22b
Fix for airco HEX lookup when off
kiwi-cam Jun 27, 2023
c83626f
Changed HeaterCooler default tempStepSize to 1
kiwi-cam Jun 29, 2023
406bc53
Release 4.4.14-beta.1
kiwi-cam Jun 29, 2023
68ccf6c
Updated semver version to resolve CVE-2022-25883
kiwi-cam Jul 4, 2023
3166e78
Rebuilt package-lock.json
kiwi-cam Jul 4, 2023
220155f
Adding support for 520d devices
kiwi-cam Jul 25, 2023
30905d3
Release 4.4.14-beta.2
kiwi-cam Jul 25, 2023
3e69937
v4.4.14 release
kiwi-cam Jul 26, 2023
b535964
New BETA. Update dependancies.
kiwi-cam Jul 26, 2023
af430a4
Fixed node-persist version m nmax
kiwi-cam Jul 26, 2023
e9c7757
Update fan.js (#639)
dnicolson Aug 13, 2023
014b208
Update CHANGELOG.md
kiwi-cam Aug 13, 2023
047a21a
Fixed errors in new fan.js (arp and setSwtichState)
kiwi-cam Aug 14, 2023
a6e9841
Updated dependencies
kiwi-cam Aug 14, 2023
f0e4c19
Release 4.4.15-beta.1
kiwi-cam Aug 14, 2023
545692c
Resolved merge conflict by incorporating both suggestions.
kiwi-cam Aug 26, 2023
4c01e2e
Fix for wrong command being sent or no command sent in certain circum…
seidnerj Mar 5, 2024
4bbf29c
New beta version
kiwi-cam Mar 5, 2024
1193b73
Added 0xd7 for RF 315Mhz
kiwi-cam Jun 20, 2024
551d62c
Added 0xd7 for RF 315Mhz
kiwi-cam Jun 20, 2024
f067a01
Added 0xd7 for RF 315Mhz
kiwi-cam Jun 20, 2024
b2204b4
Integrating broadlinkjs changes
kiwi-cam Jul 5, 2024
d59b723
Update CHANGELOG.md
kiwi-cam Jul 6, 2024
a5ad45f
Update package.json
kiwi-cam Jul 6, 2024
56bed48
Merge branch 'master' into beta
kiwi-cam Jul 6, 2024
2fcad02
Fixed duplciates in package.json
kiwi-cam Jul 7, 2024
408a6f9
Updated dependancies
kiwi-cam Jul 7, 2024
96ec36b
Updated beta version
kiwi-cam Jul 7, 2024
4453ecd
Pulls new broadlinkjs-rm to remove locked device logic bug
kiwi-cam Jul 7, 2024
397fd54
Merge branch 'master' into beta
kiwi-cam Jul 9, 2024
5577eb3
Reduced default logging of blind positions #702
kiwi-cam Jul 10, 2024
d912d81
Fixed missing logLevel reference
kiwi-cam Jul 10, 2024
7176d5a
Reduced log level for onTemperature events (now debug events)
kiwi-cam Jul 12, 2024
b2577ba
Reduced log level for onHumidity events (now debug events)
kiwi-cam Jul 12, 2024
f58e8b2
Adds support for RM3 Mini 0x27d0 (#691)
kiwi-cam Jul 14, 2024
b63b8cd
Release 4.4.17-beta.1
kiwi-cam Jul 14, 2024
1c4de68
Updated versions of mqtt, mocha, release-it, and hap-nodejs to resolv…
kiwi-cam Jul 14, 2024
692c781
Release 4.4.17-beta.2
kiwi-cam Jul 14, 2024
15af303
Prep for 4.4.17 release
kiwi-cam Jul 17, 2024
526db3c
Merge branch 'master' into beta
kiwi-cam Jul 17, 2024
c5a49c2
Added ping state change logging for troubleshooting
kiwi-cam Jul 18, 2024
4384f7b
Removed use of Characteristic.getValue() in preparation for homebridg…
kiwi-cam Jul 25, 2024
4f3b4aa
Removed use of Characteristic.getValue() in preparation for homebridg…
kiwi-cam Jul 25, 2024
8709136
Removed use of Characteristic.getValue() in preparation for homebridg…
kiwi-cam Jul 25, 2024
45353fd
Increased dependancy versions
kiwi-cam Jul 26, 2024
9d132af
Increased dependancy versions
kiwi-cam Jul 26, 2024
9ae3e7b
Fixes missing calls to getCurrentTemperature/Humidity #722
kiwi-cam Jul 30, 2024
8d84ee0
Correcting beta version number
kiwi-cam Aug 1, 2024
4527409
Merge branch 'master' into beta
kiwi-cam Aug 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.4.18 - 2024-08-08]
### Added
- Added ping state change logging for troubleshooting
### Changed
- Removed use of Characteristic.getValue() in preparation of homebridge 2.0 (#722)
- The removal of getValue() has stopped the regular getCurrentTemperature and getCurrentHumidity calls. Changed the regualar updates to make these calls instead of just using refreshCharacteristic. (#722)

## [4.4.17 - 2024-07-17]
### Added
- Adds support for RM3 Mini 0x27d0 (#691)
Expand Down
2 changes: 1 addition & 1 deletion accessories/aircon.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
}

let temperature = state.targetTemperature;
let mode = HeatingCoolingConfigKeys[state.targetHeatingCoolingState];

Check warning on line 246 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and ubuntu-latest

'mode' is never reassigned. Use 'const' instead

Check warning on line 246 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and macOS-latest

'mode' is never reassigned. Use 'const' instead

Check warning on line 246 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and ubuntu-latest

'mode' is never reassigned. Use 'const' instead

Check warning on line 246 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and ubuntu-latest

'mode' is never reassigned. Use 'const' instead

Check warning on line 246 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and macOS-latest

'mode' is never reassigned. Use 'const' instead

Check warning on line 246 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and macOS-latest

'mode' is never reassigned. Use 'const' instead

Check warning on line 246 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and windows-latest

'mode' is never reassigned. Use 'const' instead

Check warning on line 246 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and windows-latest

'mode' is never reassigned. Use 'const' instead

Check warning on line 246 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and windows-latest

'mode' is never reassigned. Use 'const' instead

if (state.currentHeatingCoolingState !== state.targetHeatingCoolingState){
// Selecting a heating/cooling state allows a default temperature to be used for the given state.
Expand Down Expand Up @@ -284,7 +284,7 @@
async checkAutoOff () {
await catchDelayCancelError(async () => {
const {config, name, data, log} = this;
let {enableAutoOff, onDuration, enableAutoOn, offDuration} = config;

Check warning on line 287 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and ubuntu-latest

'enableAutoOff' is never reassigned. Use 'const' instead

Check warning on line 287 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and ubuntu-latest

'enableAutoOn' is never reassigned. Use 'const' instead

Check warning on line 287 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and macOS-latest

'enableAutoOff' is never reassigned. Use 'const' instead

Check warning on line 287 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and macOS-latest

'enableAutoOn' is never reassigned. Use 'const' instead

Check warning on line 287 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and ubuntu-latest

'enableAutoOff' is never reassigned. Use 'const' instead

Check warning on line 287 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and ubuntu-latest

'enableAutoOn' is never reassigned. Use 'const' instead

Check warning on line 287 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and ubuntu-latest

'enableAutoOff' is never reassigned. Use 'const' instead

Check warning on line 287 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and ubuntu-latest

'enableAutoOn' is never reassigned. Use 'const' instead

Check warning on line 287 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and macOS-latest

'enableAutoOff' is never reassigned. Use 'const' instead

Check warning on line 287 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and macOS-latest

'enableAutoOn' is never reassigned. Use 'const' instead

Check warning on line 287 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and macOS-latest

'enableAutoOff' is never reassigned. Use 'const' instead

Check warning on line 287 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and macOS-latest

'enableAutoOn' is never reassigned. Use 'const' instead

Check warning on line 287 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and windows-latest

'enableAutoOff' is never reassigned. Use 'const' instead

Check warning on line 287 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and windows-latest

'enableAutoOn' is never reassigned. Use 'const' instead

Check warning on line 287 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and windows-latest

'enableAutoOff' is never reassigned. Use 'const' instead

Check warning on line 287 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and windows-latest

'enableAutoOn' is never reassigned. Use 'const' instead

Check warning on line 287 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and windows-latest

'enableAutoOff' is never reassigned. Use 'const' instead

Check warning on line 287 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and windows-latest

'enableAutoOn' is never reassigned. Use 'const' instead
onDuration = onDuration|| 60;
offDuration = offDuration|| 60;

Expand Down Expand Up @@ -344,7 +344,7 @@

let finalTemperature = temperature;
if (mode === 'off') {
let hexData = data.off;

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and ubuntu-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and macOS-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and ubuntu-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and ubuntu-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and macOS-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and macOS-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and windows-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and windows-latest

'hexData' is never reassigned. Use 'const' instead

Check warning on line 347 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and windows-latest

'hexData' is never reassigned. Use 'const' instead
return { finalTemperature, hexData };
}
let hexData = data[`${mode}${temperature}`];
Expand Down Expand Up @@ -423,7 +423,7 @@
device.checkTemperature();

this.updateTemperatureUI();
if (!config.isUnitTest) {setInterval(this.updateTemperatureUI.bind(this), config.temperatureUpdateFrequency * 1000)}
if (!config.isUnitTest) {setInterval(()=>{this.getCurrentTemperature(this.updateTemperatureUI.bind(this))}, config.temperatureUpdateFrequency * 1000)}
}

onTemperature (temperature,humidity) {
Expand Down Expand Up @@ -547,7 +547,7 @@
} else {
lines.forEach((line) => {
if(-1 < line.indexOf(':')){
let value = line.split(':');

Check warning on line 550 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and ubuntu-latest

'value' is never reassigned. Use 'const' instead

Check warning on line 550 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and macOS-latest

'value' is never reassigned. Use 'const' instead

Check warning on line 550 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and ubuntu-latest

'value' is never reassigned. Use 'const' instead

Check warning on line 550 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and ubuntu-latest

'value' is never reassigned. Use 'const' instead

Check warning on line 550 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and macOS-latest

'value' is never reassigned. Use 'const' instead

Check warning on line 550 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and macOS-latest

'value' is never reassigned. Use 'const' instead

Check warning on line 550 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and windows-latest

'value' is never reassigned. Use 'const' instead

Check warning on line 550 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and windows-latest

'value' is never reassigned. Use 'const' instead

Check warning on line 550 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and windows-latest

'value' is never reassigned. Use 'const' instead
if(value[0] == 'temperature') {temperature = parseFloat(value[1]);}
if(value[0] == 'humidity' && !noHumidity) {humidity = parseFloat(value[1]);}
if(value[0] == 'battery' && batteryAlerts) {battery = parseFloat(value[1]);}
Expand Down Expand Up @@ -643,7 +643,7 @@

async checkTemperatureForAutoOnOff (temperature) {
const { config, host, log, logLevel, name, serviceManager, state } = this;
let { autoHeatTemperature, autoCoolTemperature, minimumAutoOnOffDuration } = config;

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and ubuntu-latest

'autoHeatTemperature' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and ubuntu-latest

'autoCoolTemperature' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and ubuntu-latest

'minimumAutoOnOffDuration' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and macOS-latest

'autoHeatTemperature' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and macOS-latest

'autoCoolTemperature' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and macOS-latest

'minimumAutoOnOffDuration' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and ubuntu-latest

'autoHeatTemperature' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and ubuntu-latest

'autoCoolTemperature' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and ubuntu-latest

'minimumAutoOnOffDuration' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and ubuntu-latest

'autoHeatTemperature' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and ubuntu-latest

'autoCoolTemperature' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and ubuntu-latest

'minimumAutoOnOffDuration' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and macOS-latest

'autoHeatTemperature' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and macOS-latest

'autoCoolTemperature' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and macOS-latest

'minimumAutoOnOffDuration' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and macOS-latest

'autoHeatTemperature' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and macOS-latest

'autoCoolTemperature' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and macOS-latest

'minimumAutoOnOffDuration' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and windows-latest

'autoHeatTemperature' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and windows-latest

'autoCoolTemperature' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 16 and windows-latest

'minimumAutoOnOffDuration' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and windows-latest

'autoHeatTemperature' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and windows-latest

'autoCoolTemperature' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 20 and windows-latest

'minimumAutoOnOffDuration' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and windows-latest

'autoHeatTemperature' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and windows-latest

'autoCoolTemperature' is never reassigned. Use 'const' instead

Check warning on line 646 in accessories/aircon.js

View workflow job for this annotation

GitHub Actions / Build and Test on Node 18 and windows-latest

'minimumAutoOnOffDuration' is never reassigned. Use 'const' instead

if (this.shouldIgnoreAutoOnOff) {
if (logLevel <=2) {log(`${name} checkTemperatureForAutoOn (ignore within ${minimumAutoOnOffDuration}s of previous auto-on/off due to "minimumAutoOnOffDuration")`);}
Expand Down
2 changes: 1 addition & 1 deletion accessories/humidifier-dehumidifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class HumidifierDehumidifierAccessory extends FanAccessory {
device.checkHumidity();

this.updateHumidityUI();
if (!config.isUnitTest && !config.noHumidity) {setInterval(this.updateHumidityUI.bind(this), config.humidityUpdateFrequency * 1000)}
if (!config.isUnitTest && !config.noHumidity) {setInterval(()=>{this.getCurrentHumidity(this.updateHumidityUI.bind(this))}, config.humidityUpdateFrequency * 1000)}
}

onHumidity (temperature,humidity) {
Expand Down
6 changes: 4 additions & 2 deletions accessories/switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,14 @@ class SwitchAccessory extends BroadlinkRMAccessory {
}

pingCallback (active) {
const { config, state, serviceManager } = this;
const { config, state, serviceManager, name, log, logLevel } = this;

if (this.stateChangeInProgress){
return;
}


if (state.switchState !== active && logLevel <=2){log(`\x1b[35m[INFO]\x1b[0m ${name} ping detected state change, now ${active}`);}

if (config.pingIPAddressStateOnly) {
state.switchState = active ? true : false;
serviceManager.refreshCharacteristicUI(Characteristic.On);
Expand Down
4 changes: 2 additions & 2 deletions helpers/serviceManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ServiceManager {
}

refreshCharacteristicUI (characteristic) {
this.getCharacteristic(characteristic).getValue();
this.getCharacteristic(characteristic).value;
}

// Convenience
Expand Down Expand Up @@ -76,4 +76,4 @@ class ServiceManager {
}
}

module.exports = ServiceManager
module.exports = ServiceManager
22 changes: 12 additions & 10 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "homebridge-broadlink-rm-pro",
"displayName": "Homebridge Broadlink RM Pro",
"version": "4.4.17",
"version": "4.4.18",
"description": "Broadlink RM plugin (including the mini and pro) for homebridge with AC Pro and TV features",
"license": "ISC",
"scripts": {
Expand Down Expand Up @@ -32,10 +32,10 @@
"await-semaphore": "^0.1.3",
"kiwicam-broadlinkjs-rm": "^0.9.22",
"chai": "^4.3.7",
"fakegato-history": "^0.6.4",
"fakegato-history": "^0.6.5",
"find-key": "^2.1.3",
"github-version-checker": "^2.3.0",
"mqtt": "^5.8.0",
"mqtt": "^5.8.1",
"node-persist": ">=2.1.0 <3.0.0",
"semver": "^7.5.4",
"node-arp": "^1.0.6",
Expand Down
Loading