homebridge-cmd4 7.0.1 → 7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -48
- package/Cmd4PriorityPollingQueue.js +16 -2
- package/RUNNING_CHANGELOG.md +9 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,53 +1,8 @@
|
|
|
1
1
|
# Homebridges-cmd4 - CMD4 Plugin for Homebridge - Supports ~All Accessory Types and now all Characteristics too!!
|
|
2
|
-
|
|
2
|
+
### 7.0.2 (2023-12-24)
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
These warnings were there for many major versions and are finally removed.
|
|
4
|
+
##### Change affecting AdvAir by their request
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
"queueMsg" - Never put into production and will now throw an error.
|
|
9
|
-
"queueStatMsgInterval" - Never put into production and will now throw an error.
|
|
10
|
-
"cmd4_Mode" - Obsolete for many versions and will now throw an error.
|
|
11
|
-
"storage" - Obsolete outside of fakegato definition.
|
|
12
|
-
"storagePath" - Obsolete outside of fakegato definition.
|
|
13
|
-
"folder" - Obsolete outside of fakegato definition.
|
|
14
|
-
"keyPath" - Obsolete outside of fakegato definition.
|
|
15
|
-
"queueTypes" - Obsolete inside accessory definition.
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
##### Chores
|
|
19
|
-
|
|
20
|
-
* Correct version to 7.0.1 ([62504e68](https://github.com/ztalbot2000/homebridge-cmd4/commit/62504e689a9483a9512a414d994514b04cbadcd5))
|
|
21
|
-
|
|
22
|
-
##### New Features
|
|
23
|
-
|
|
24
|
-
* add retries. Also formatting issues ([b8ddf9ce](https://github.com/ztalbot2000/homebridge-cmd4/commit/b8ddf9ceda8ace3a6e820bfad0c4a03c656cf419))
|
|
25
|
-
|
|
26
|
-
##### Documentation Changes
|
|
27
|
-
|
|
28
|
-
Beta2
|
|
29
|
-
* Update documentation for v7.0.0 ([12b6482a](https://github.com/ztalbot2000/homebridge-cmd4/commit/12b6482ac8e6d431e011f6f92c2d6f03a2ebe2ed))
|
|
30
|
-
|
|
31
|
-
##### Bug Fixes
|
|
32
|
-
|
|
33
|
-
* bug[#139](https://github.com/ztalbot2000/homebridge-cmd4/pull/139), add in link checkers to documentation ([f4a1ae79](https://github.com/ztalbot2000/homebridge-cmd4/commit/f4a1ae79fd8da2e0dc80181ab98dbc4817da6e78))
|
|
34
|
-
|
|
35
|
-
Beta2
|
|
36
|
-
* remove unwanted debug message and test so that it cannot reoccur ([97b6b318](https://github.com/ztalbot2000/homebridge-cmd4/commit/97b6b31861ab34d04b798ec409b1f2e8c56244c2))
|
|
37
|
-
* Homebridge does not like underscores of accessory names. Remove from default config.json ([15f2170b](https://github.com/ztalbot2000/homebridge-cmd4/commit/15f2170be492b6dfb56e4eed5d76da0cd4d74419))
|
|
38
|
-
|
|
39
|
-
Beta1
|
|
40
|
-
* retry logging starts from zero, but for user count starts from 1 ([38cdf417](https://github.com/ztalbot2000/homebridge-cmd4/commit/38cdf417feebeef2b75dcfec247e6bdfd4739604))
|
|
41
|
-
* By nature retryCount should start from zero ([b8e82ffe](https://github.com/ztalbot2000/homebridge-cmd4/commit/b8e82ffe262c092a301636993544be828a7a34a4))
|
|
42
|
-
* log message in wrong quotes ([6fc555b0](https://github.com/ztalbot2000/homebridge-cmd4/commit/6fc555b0d7bdc20bfc3a38310e3d4f66b968d55d))
|
|
43
|
-
* retries for WoRm should be zero. Can be overriden ([11351633](https://github.com/ztalbot2000/homebridge-cmd4/commit/1135163319c8d16e3886dbf0a0443ba5ed6c4b99))
|
|
44
|
-
* Accessory needs to go unresponsive via updateValue with error object ([cdfee1b2](https://github.com/ztalbot2000/homebridge-cmd4/commit/cdfee1b22ea21dc56edc320768ec6ebea1156cb8))
|
|
45
|
-
|
|
46
|
-
##### Tests
|
|
47
|
-
|
|
48
|
-
* put back skipped tests ([0b0781fa](https://github.com/ztalbot2000/homebridge-cmd4/commit/0b0781faec7f94e43d67068e15e9505cc7c96414))
|
|
49
|
-
* Remove excess debug messages for commit with verify to work ([ea108470](https://github.com/ztalbot2000/homebridge-cmd4/commit/ea108470631f4abe3377f6d582c962dab141be0f))
|
|
50
|
-
* Don't know why HomeKit does not cause Cmd4 to generate a log that it is trying to reconnect after unavailable ([d45d7c09](https://github.com/ztalbot2000/homebridge-cmd4/commit/d45d7c095d0989c05b88c161a418402711e26677))
|
|
51
|
-
* Add unit testing to prove fix of bug[#130](https://github.com/ztalbot2000/homebridge-cmd4/pull/130) ([e9a902fc](https://github.com/ztalbot2000/homebridge-cmd4/commit/e9a902fcb01fb2ee7c7cb9f2b60e036d0fd5c0d6))
|
|
6
|
+
* For AdvAir.sh put accessory name in double quotes so it can contain a single quote ([023e91c0](https://github.com/ztalbot2000/homebridge-cmd4/commit/023e91c0bf1794a64bf0e18dec7d31b178ecb6d1))
|
|
52
7
|
|
|
53
8
|
|
|
@@ -426,7 +426,14 @@ class Cmd4PriorityPollingQueue
|
|
|
426
426
|
let self = accessory;
|
|
427
427
|
let queue = accessory.queue;
|
|
428
428
|
|
|
429
|
-
let cmd = self.state_cmd_prefix + self.state_cmd + " Get '" + self.displayName + "' '" + characteristicString
|
|
429
|
+
let cmd = self.state_cmd_prefix + self.state_cmd + " Get '" + self.displayName + "' '" + characteristicString + "'" + self.state_cmd_suffix;
|
|
430
|
+
|
|
431
|
+
// My AdvAir friends want to allow single quotes in accessory names, which
|
|
432
|
+
// may have consequences with globbing for others.
|
|
433
|
+
if ( self.state_cmd.match( /AdvAir.sh/ ) )
|
|
434
|
+
{
|
|
435
|
+
cmd = self.state_cmd_prefix + self.state_cmd + ' Get "' + self.displayName + '" ' + "'" + characteristicString + "'" + self.state_cmd_suffix;
|
|
436
|
+
}
|
|
430
437
|
|
|
431
438
|
if ( settings.cmd4Dbg ) self.log.debug( `getValue: accTypeEnumIndex:( ${ accTypeEnumIndex } )-"${ characteristicString }" function for: ${ self.displayName } cmd: ${ cmd } timeout: ${ timeout }` );
|
|
432
439
|
|
|
@@ -608,7 +615,14 @@ class Cmd4PriorityPollingQueue
|
|
|
608
615
|
value = transposeBoolToValue( value );
|
|
609
616
|
}
|
|
610
617
|
|
|
611
|
-
let cmd = accessory.state_cmd_prefix + accessory.state_cmd + " Set '" + accessory.displayName + "' '" + characteristicString
|
|
618
|
+
let cmd = accessory.state_cmd_prefix + accessory.state_cmd + " Set '" + accessory.displayName + "' '" + characteristicString + "' '" + value + "'" + accessory.state_cmd_suffix;
|
|
619
|
+
|
|
620
|
+
// My AdvAir friends want to allow single quotes in accessory names, which
|
|
621
|
+
// may have consequences with globbing for others.
|
|
622
|
+
if ( accessory.state_cmd.match( /AdvAir.sh/ ) )
|
|
623
|
+
{
|
|
624
|
+
cmd = accessory.state_cmd_prefix + accessory.state_cmd + ' Set "' + accessory.displayName + '" ' + "'" + characteristicString + "' '" + value + "'" + accessory.state_cmd_suffix;
|
|
625
|
+
}
|
|
612
626
|
|
|
613
627
|
if ( accessory.hV.statusMsg == "TRUE" )
|
|
614
628
|
self.log.info( chalk.blue( `Setting ${ self.displayName } ${ characteristicString }` ) + ` ${ value }` );
|
package/RUNNING_CHANGELOG.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
## ChangeLog
|
|
7
|
+
* <a href="#Whats-new-in-7-0-2">**Whats new in 7.0.2**</a>
|
|
7
8
|
<a name="Whats-new-in-7-0-1">## Whats new in 7.0.0</a>
|
|
8
9
|
#### 7.0.0 (2023-06-11)
|
|
9
10
|
* <a href="#Whats-new-in-7.0.0">**Whats new in 7.0.0**</a>
|
|
@@ -88,6 +89,14 @@
|
|
|
88
89
|
* <a href="#Whats-new-in-2-1">**Whats new in 2.1**</a>
|
|
89
90
|
* <a href="#Whats-new-in-2-0">**Whats new in 2.0**</a>
|
|
90
91
|
|
|
92
|
+
<a name="Whats-new-in-7-1-0">## Whats new in 7.0.2</a>
|
|
93
|
+
### 7.0.2 (2023-12-24)
|
|
94
|
+
|
|
95
|
+
##### Change affectng AdvAir by their request
|
|
96
|
+
|
|
97
|
+
* For AdvAir.sh put accessory name in double quotes so it can contain a single quote ([023e91c0](https://github.com/ztalbot2000/homebridge-cmd4/commit/023e91c0bf1794a64bf0e18dec7d31b178ecb6d1))
|
|
98
|
+
|
|
99
|
+
|
|
91
100
|
## ChangeLog
|
|
92
101
|
* <a href="#Whats-new-in-7-0-1">**Whats new in 7.0.1**</a>
|
|
93
102
|
|