Skip to content

Commit

Permalink
v4.4.6 - Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit 4b209ca
Author: Kiwi Cam <32912464+kiwi-cam@users.noreply.github.com>
Date:   Mon Aug 2 10:14:29 2021 +1200

    v4.4.6-beta.4

commit 0a29ea8
Author: Kiwi Cam <32912464+kiwi-cam@users.noreply.github.com>
Date:   Mon Aug 2 10:00:06 2021 +1200

    Updated broadlinkjs-rm version

commit 0563c25
Author: Dave Nicolson <david.nicolson@gmail.com>
Date:   Sun Aug 1 23:58:50 2021 +0200

    Fix version checking (#366)

    * Fix GitHub username
    * Fix parameter order
    * Fix variable name
    * Update repo name and owner

    Co-authored-by: Cameron <32912464+kiwi-cam@users.noreply.github.com>

commit d29340d
Author: Kiwi Cam <32912464+kiwi-cam@users.noreply.github.com>
Date:   Wed Jul 28 13:56:11 2021 +1200

    Release 4.4.6-beta.3

commit ace9245
Author: Kiwi Cam <32912464+kiwi-cam@users.noreply.github.com>
Date:   Wed Jul 28 13:51:13 2021 +1200

    Adds 6508 device support

commit 2be2ea3
Merge: e42b48b 04b57dd
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Tue Jul 27 13:18:30 2021 +1200

    Merge branch 'beta' of https://github.com/kiwi-cam/homebridge-broadlink-rm into beta

commit 04b57dd
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Tue Jul 27 13:14:25 2021 +1200

    v4.4.6-beta.2

    v4.4.6-beta.2

commit e42b48b
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Tue Jul 27 13:17:13 2021 +1200

    v4.4.6-beta.2

commit 68014e7
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Tue Jul 27 13:14:25 2021 +1200

    v4.4.6-beta.2

commit 7587618
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Tue Jul 27 11:30:29 2021 +1200

    Removed cached temperature feature

commit bf49203
Author: kiwi-cam <32912464+kiwi-cam@users.noreply.github.com>
Date:   Sun Jul 25 08:03:21 2021 +1200

    Update package-lock.json

commit d1aed4f
Author: Cameron <32912464+kiwi-cam@users.noreply.github.com>
Date:   Sun Jul 25 07:55:53 2021 +1200

    v4.4.6-beta.1

commit 1d73598
Author: Nick Drew <nick.s.drew@gmail.com>
Date:   Sun Jul 25 05:53:50 2021 +1000

    Fix for tv registration on hoobs 4 (#363)

    * Pass plugin name to homebridge accessory registration - Fixes #360

    Co-authored-by: Cameron <32912464+kiwi-cam@users.noreply.github.com>
    Co-authored-by: Nick Drew <nick.drew@staff.smartline.com.au>

commit 534033f
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Fri Jul 23 10:16:25 2021 +1200

    HOOBs note

commit 5a6f850
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Fri Jul 23 10:10:42 2021 +1200

    Fixed TV platform name

commit 4da80a8
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Fri Jul 23 09:15:03 2021 +1200

    Fixed mqtt onTemperature handling

commit 637ce6e
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Thu Jul 22 10:07:45 2021 +1200

    Updated useCachedTemperature to default to true when using mqtt

commit ea9886d
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Thu Jul 22 09:06:43 2021 +1200

    Added useCachedTemperature option to improve response time

commit 36bb491
Author: Cameron <32912464+kiwi-cam@users.noreply.github.com>
Date:   Mon Jul 19 08:29:30 2021 +1200

    Added eslint change note

commit fbd1d12
Author: Cameron <32912464+kiwi-cam@users.noreply.github.com>
Date:   Mon Jul 5 07:46:21 2021 +1200

    Revert "Added allowResendOnOff"

    This reverts commit 17d59af.

commit 7b333ac
Author: Cameron <32912464+kiwi-cam@users.noreply.github.com>
Date:   Mon Jul 5 07:46:16 2021 +1200

    Revert "Added logLevel to allowResendOnOff debug logs"

    This reverts commit 71b955a.

commit 71b955a
Author: Cameron <32912464+kiwi-cam@users.noreply.github.com>
Date:   Sun Jul 4 08:16:03 2021 +1200

    Added logLevel to allowResendOnOff debug logs

commit 17d59af
Author: Cameron <32912464+kiwi-cam@users.noreply.github.com>
Date:   Sun Jul 4 08:13:56 2021 +1200

    Added allowResendOnOff

commit fead1e4
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Wed Jun 23 10:53:11 2021 +1200

    Updated package-lock

commit d6f6445
Author: Aceslick911 <angeloperera@gmail.com>
Date:   Wed Jun 23 08:45:12 2021 +1000

    Feature/eslint support (#347)

    * Added Eslint support
    * Fixed legitimate issues found with linting
    * Lint optimisation for all warn issues

    Co-authored-by: Angelo Perera <angelo.perera@nintex.com>
    Co-authored-by: Cameron <32912464+kiwi-cam@users.noreply.github.com>

commit eb3dad0
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Wed Jun 23 10:30:54 2021 +1200

    New BETA

commit 0f6bc58
Merge: 022beeb 883f234
Author: Cameron <32912464+kiwi-cam@users.noreply.github.com>
Date:   Wed Jun 23 10:18:13 2021 +1200

    Merge branch 'master' into beta

commit 022beeb
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Tue Jun 22 10:06:58 2021 +1200

    Typo

commit 1ea1ec6
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Tue Jun 22 10:03:21 2021 +1200

    Beta 4.4.5-beta.3

commit 78b84df
Author: Cameron <32912464+kiwi-cam@users.noreply.github.com>
Date:   Tue Jun 22 09:24:56 2021 +1200

    Updated MQTT version

commit cbdec6b
Author: Cameron <32912464+kiwi-cam@users.noreply.github.com>
Date:   Sat Jun 19 07:08:19 2021 +1200

    v4.4.5-beta.2

commit f64db2b
Author: Cameron <32912464+kiwi-cam@users.noreply.github.com>
Date:   Sat Jun 19 06:59:21 2021 +1200

    Fixes MQTT logLevel undefined errors #343

commit 3f19e3a
Author: Cameron <32912464+kiwi-cam@users.noreply.github.com>
Date:   Sat Jun 19 06:53:33 2021 +1200

    Sets noHumidity for sources without it #341

commit f18475f
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Thu Jun 17 07:54:24 2021 +1200

    New BETA

commit dcfbfc4
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Thu Jun 17 07:46:58 2021 +1200

    new BETA

commit f47bcf9
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Thu Jun 17 07:44:40 2021 +1200

    Fix for logLevel is not defined #341

commit 0dcdd7d
Author: Cameron <32912464+kiwi-cam@users.noreply.github.com>
Date:   Wed Jun 16 21:10:52 2021 +1200

    Heater cooler updates status based on mode #229

commit ebeeeac
Author: Cameron <32912464+kiwi-cam@users.noreply.github.com>
Date:   Wed Jun 16 20:28:56 2021 +1200

    Added note about fixing #328

commit 57723fb
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Wed Jun 16 11:02:07 2021 +1200

    New BETA package-lock.json

commit 3b0e5d3
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Wed Jun 16 10:45:12 2021 +1200

    Added change notes

commit 637d3fc
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Wed Jun 16 10:40:24 2021 +1200

    allowResent default to use preventResendHex #334

commit c09550a
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Wed Jun 16 10:32:18 2021 +1200

    Added error catch for #337

commit d398d1c
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Wed Jun 16 10:27:37 2021 +1200

    Updated CurrentTemperature limits to spec #338

commit fe52495
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Wed Jun 16 10:24:56 2021 +1200

    Fix for name not defined #339

commit 789022b
Merge: 2c4eac4 af94de8
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Wed Jun 9 16:09:37 2021 +1200

    Merge branch 'beta' of https://github.com/kiwi-cam/homebridge-broadlink-rm into beta

commit 2c4eac4
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Wed Jun 9 16:09:16 2021 +1200

    Fix for switch without break

commit af94de8
Author: Cameron <32912464+kiwi-cam@users.noreply.github.com>
Date:   Wed Jun 9 15:19:46 2021 +1200

    Formatting

commit f5c3070
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Wed Jun 9 15:18:58 2021 +1200

    Adds installation notes to README closes #329

commit ed98461
Author: Cameron McConnochie <32912464+kiwi-cam@users.noreply.github.com>
Date:   Wed Jun 9 15:14:02 2021 +1200

    New BETA
  • Loading branch information
kiwi-cam committed Aug 2, 2021
1 parent bcaf249 commit deb5f01
Show file tree
Hide file tree
Showing 40 changed files with 2,512 additions and 1,033 deletions.
51 changes: 51 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"root": true,
"plugins": [
"no-autofix"
],
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",

"HistoryService":true,
"Characteristic":true,
"Service":true

},
"ignorePatterns": [
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {

"global-require": "off",
"no-unused-vars": "off",
"no-mixed-spaces-and-tabs": "off",
"no-fallthrough": "off",
"no-unreachable": "off",
"no-empty": "off",
"no-console": "off",
"quotes": "off",
"brace-style": "off",
"semi": "off",
"comma-dangle": "off",
"eqeqeq": "off",

"no-extra-semi": "warn",
"dot-notation": "warn",
"no-autofix/prefer-const": "warn",

"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"curly": 1
}
}
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ 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.6] - 2021-08-03
### Added
- -Adds support for 0x6508 devices
### Changed
- General code tidy-up/standardisation.
### Fixed
- Improved the temperature update process when using MQTT to make the UI more responsive
- Fixed 'One of your plugins incorrectly registered an external accessory using the platform name ([object Object]) and not the plugin identifier' message which caused TVs to fail in HOOBS
- Fixes Version checks on start-up (Thanks @dnicolson)

## [4.4.5] - 2021-06-23
### Changed
- Improved default allowResend logic when using preventResendHex
Expand Down
8 changes: 4 additions & 4 deletions accessories/accessory.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const catchDelayCancelError = require('../helpers/catchDelayCancelError');
class BroadlinkRMAccessory extends HomebridgeAccessory {

constructor (log, config = {}, serviceManagerType) {
if (!config.name) config.name = "Unknown Accessory"
if (!config.name) {config.name = "Unknown Accessory"}

config.resendDataAfterReload = config.resendHexAfterReload;
if (config.host) {
Expand All @@ -21,7 +21,7 @@ class BroadlinkRMAccessory extends HomebridgeAccessory {
}

super(log, config, serviceManagerType);
if (config.debug) this.debug = true
if (config.debug) {this.debug = true}

this.manufacturer = 'Broadlink';
this.model = 'RM Mini or Pro';
Expand Down Expand Up @@ -52,7 +52,7 @@ class BroadlinkRMAccessory extends HomebridgeAccessory {
break;
default:
//default to 'info':
if(this.config.logLevel !== undefined) log(`\x1b[31m[CONFIG ERROR] \x1b[33mlogLevel\x1b[0m should be one of: trace, debug, info, warning, error, critical, or none.`);
if(this.config.logLevel !== undefined) {log(`\x1b[31m[CONFIG ERROR] \x1b[33mlogLevel\x1b[0m should be one of: trace, debug, info, warning, error, critical, or none.`);}
this.logLevel = 2;
break;
}
Expand Down Expand Up @@ -109,7 +109,7 @@ class BroadlinkRMAccessory extends HomebridgeAccessory {
let { data, interval, sendCount } = parentData;

sendCount = sendCount || 1
if (sendCount > 1) interval = interval || 0.1;
if (sendCount > 1) {interval = interval || 0.1;}

// Itterate through each hex config in the array
for (let index = 0; index < sendCount; index++) {
Expand Down
18 changes: 9 additions & 9 deletions accessories/air-purifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ class AirPurifierAccessory extends FanAccessory {

// User requested a the target state be set
async setTargetState (hexData, previousValue) {
const { log, name, state, serviceManager } = this;
const { log, name, state, serviceManager } = this;

// Ignore if no change to the targetPosition
if (state.targetState === previousValue) return;
// Ignore if no change to the targetPosition
if (state.targetState === previousValue) {return;}

// Set the CurrentAirPurifierState to match the switch state
log(`${name} setTargetState: currently ${previousValue === 0 ? 'manual' : 'auto'}, changing to ${state.targetState === 0 ? 'manual' : 'auto'}`);
// Set the CurrentAirPurifierState to match the switch state
log(`${name} setTargetState: currently ${previousValue === 0 ? 'manual' : 'auto'}, changing to ${state.targetState === 0 ? 'manual' : 'auto'}`);

await this.performSend(hexData);
await this.performSend(hexData);
}

updateCurrentState() {
Expand Down Expand Up @@ -49,9 +49,9 @@ class AirPurifierAccessory extends FanAccessory {
} = data || {};

// Defaults
if (config.showLockPhysicalControls !== false) config.showLockPhysicalControls = true
if (config.showSwingMode !== false && config.hideSwingMode !== true) config.showSwingMode = true
if (config.showRotationDirection !== false && config.hideRotationDirection !== true) config.showRotationDirection = true
if (config.showLockPhysicalControls !== false) {config.showLockPhysicalControls = true}
if (config.showSwingMode !== false && config.hideSwingMode !== true) {config.showSwingMode = true}
if (config.showRotationDirection !== false && config.hideRotationDirection !== true) {config.showRotationDirection = true}

this.serviceManager = new ServiceManagerTypes[serviceManagerType](name, Service.AirPurifier, this.log);

Expand Down
Loading

0 comments on commit deb5f01

Please sign in to comment.