Skip to content

Commit

Permalink
v4.4.14 release (kiwi-cam#634)
Browse files Browse the repository at this point in the history
 - Adding support for 520d device (kiwi-cam#632)
 - Fixes 'No off HEX code found for XX' error (kiwi-cam#615)
 - Updated semver version to resolve CVE-2022-25883
 - Heater-Cooler tempStepSize default changed to 1 to match AC (kiwi-cam#616)
  • Loading branch information
kiwi-cam authored and banboobee committed Oct 24, 2023
1 parent 3306d6c commit 80bcabe
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 21 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ 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.14] - 2023-07-26
### Added
- Adding support for 520d device (#632)
### Fixed
- Fixes 'No off HEX code found for XX' error (#615)
- Updated semver version to resolve CVE-2022-25883
### Changed
- Heater-Cooler tempStepSize default changed to 1 to match AC (#616)

## [4.4.13] - 2023-06-19
### Added
- w1 and file temperatures will return a battery level of 100 if none found
Expand All @@ -15,7 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Serializes the simultaneous IR/RF commands. (Thanks @banboobee) #520
- Updated dependancies to resolve known vulnerabilities

## [4.4.12] - 2023-05-24
## [4.4.12] - 2023-05-25
### Added
- Added tempStepSize to configuration (defaulting to 1) to allow AC units with 0.5 steps (Thanks @nasudon) #570
- Added support for fahrenheit temperature sources #495 - set tempSourceUnits to 'F'
Expand Down
4 changes: 4 additions & 0 deletions accessories/aircon.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,10 @@ class AirConAccessory extends BroadlinkRMAccessory {
const { defaultHeatTemperature, defaultCoolTemperature, heatTemperature } = config;

let finalTemperature = temperature;
if (mode === 'off') {
let hexData = data.off;
return { finalTemperature, hexData };
}
let hexData = data[`${mode}${temperature}`];

if (!hexData) {
Expand Down
4 changes: 2 additions & 2 deletions accessories/heater-cooler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1205,7 +1205,7 @@ class HeaterCoolerAccessory extends BroadlinkRMAccessory {
.setProps({
minValue: minTemperature,
maxValue: maxTemperature,
minStep: config.tempStepSize || 0.1
minStep: config.tempStepSize || 1
})
}

Expand All @@ -1226,7 +1226,7 @@ class HeaterCoolerAccessory extends BroadlinkRMAccessory {
.setProps({
minValue: minTemperature,
maxValue: maxTemperature,
minStep: config.tempStepSize || 0.1
minStep: config.tempStepSize || 1
})
}

Expand Down
56 changes: 40 additions & 16 deletions package-lock.json

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

4 changes: 2 additions & 2 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.13",
"version": "4.4.14",
"description": "Broadlink RM plugin (including the mini and pro) for homebridge with AC Pro and TV features",
"license": "ISC",
"scripts": {
Expand Down Expand Up @@ -37,7 +37,7 @@
"uuid": "^9.0.0",
"mqtt": "^4.3.7",
"node-persist": ">=2.1.0 <3.0.0",
"semver": "^7.5.1",
"semver": "^7.5.2",
"node-arp": "^1.0.6",
"fakegato-history": "^0.6.3",
"await-semaphore": "^0.1.3"
Expand Down

0 comments on commit 80bcabe

Please sign in to comment.