homebridge-cmd4 7.0.2 → 7.0.3
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 -3
- package/Cmd4Accessory.js +4 -8
- package/RUNNING_CHANGELOG.md +9 -0
- package/docs/Developers.md +37 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Homebridges-cmd4 - CMD4 Plugin for Homebridge - Supports ~All Accessory Types and now all Characteristics too!!
|
|
2
|
-
|
|
2
|
+
#### 7.0.3 (2024-01-27)
|
|
3
3
|
|
|
4
|
-
#####
|
|
4
|
+
##### Bug Fixes
|
|
5
5
|
|
|
6
|
-
*
|
|
6
|
+
* props is already an object. Also test setProps is called for more than one characteristic. Affects only those who change a characteristics property range ([276d0c0d](https://github.com/ztalbot2000/homebridge-cmd4/commit/276d0c0d58b435c59fb3c1fdfd322f55f6b24434))
|
|
7
7
|
|
|
8
8
|
|
package/Cmd4Accessory.js
CHANGED
|
@@ -811,17 +811,13 @@ class Cmd4Accessory
|
|
|
811
811
|
let props = accessory.configHasCharacteristicProps( accTypeEnumIndex );
|
|
812
812
|
if ( props )
|
|
813
813
|
{
|
|
814
|
-
|
|
815
|
-
if ( settings.cmd4Dbg ) accessory.log.debug( "Overriding characteristic %s props for: %s ", uCCharacteristicString, this.displayName );
|
|
814
|
+
if ( settings.cmd4Dbg ) accessory.log.debug( "Overriding characteristic %s props for: %s ", CMD4_ACC_TYPE_ENUM.properties[ accTypeEnumIndex ].type, this.displayName );
|
|
816
815
|
accessory.service.getCharacteristic( CMD4_ACC_TYPE_ENUM.properties[ accTypeEnumIndex ].
|
|
817
816
|
characteristic )
|
|
818
817
|
.setProps(
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
// minStep: 1
|
|
823
|
-
props
|
|
824
|
-
});
|
|
818
|
+
// props is an object of name value pairs (characteristics)
|
|
819
|
+
props
|
|
820
|
+
);
|
|
825
821
|
}
|
|
826
822
|
|
|
827
823
|
// Get the permissions of characteristic ( Read/Write ... )
|
package/RUNNING_CHANGELOG.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
## ChangeLog
|
|
7
|
+
* <a href="#Whats-new-in-7-0-3">**Whats new in 7.0.3**</a>
|
|
7
8
|
* <a href="#Whats-new-in-7-0-2">**Whats new in 7.0.2**</a>
|
|
8
9
|
<a name="Whats-new-in-7-0-1">## Whats new in 7.0.0</a>
|
|
9
10
|
#### 7.0.0 (2023-06-11)
|
|
@@ -89,6 +90,14 @@
|
|
|
89
90
|
* <a href="#Whats-new-in-2-1">**Whats new in 2.1**</a>
|
|
90
91
|
* <a href="#Whats-new-in-2-0">**Whats new in 2.0**</a>
|
|
91
92
|
|
|
93
|
+
<a name="Whats-new-in-7-0-3">## Whats new in 7.0.3</a>
|
|
94
|
+
#### 7.0.3 (2024-01-27)
|
|
95
|
+
|
|
96
|
+
##### Bug Fixes
|
|
97
|
+
|
|
98
|
+
* props is already an object. Also test setProps is called for more than one characteristic. Affects only those who change a characteristics property range ([276d0c0d](https://github.com/ztalbot2000/homebridge-cmd4/commit/276d0c0d58b435c59fb3c1fdfd322f55f6b24434))
|
|
99
|
+
|
|
100
|
+
|
|
92
101
|
<a name="Whats-new-in-7-1-0">## Whats new in 7.0.2</a>
|
|
93
102
|
### 7.0.2 (2023-12-24)
|
|
94
103
|
|
package/docs/Developers.md
CHANGED
|
@@ -382,6 +382,43 @@ Example 2:
|
|
|
382
382
|
### Step 4. Sending constants to your script.
|
|
383
383
|
By placing in your config.json file the tag "outputConstants": true, instead of values, your script will receive constants instead of values (Where Applicable). Homebridge-Cmd4 will except constants or values as input. See the config.min.json file for the defined constants.
|
|
384
384
|
|
|
385
|
+
### Step 5. Changing characteristic properties.
|
|
386
|
+
Cmd4 will allow you to change a characteristics property range, However the HomeKit GUI will most likely ignore it. The change is for those who create their own GUI's. For Example:
|
|
387
|
+
```json
|
|
388
|
+
"platforms": [
|
|
389
|
+
{
|
|
390
|
+
"platform": "Cmd4",
|
|
391
|
+
"debug": false,
|
|
392
|
+
"outputConstants": false,
|
|
393
|
+
"timeout": 4000,
|
|
394
|
+
"stateChangeResponseTime": 3,
|
|
395
|
+
"accessories": [
|
|
396
|
+
{
|
|
397
|
+
"type": "Thermostat",
|
|
398
|
+
"displayName": "MyThermostat",
|
|
399
|
+
"name": "MyThermostat",
|
|
400
|
+
"currentTemperature": 25,
|
|
401
|
+
"targetTemperature": 25,
|
|
402
|
+
"props": {
|
|
403
|
+
"currentTemperature": {
|
|
404
|
+
"maxValue": 32,
|
|
405
|
+
"minValue": 16,
|
|
406
|
+
"minStep": 1
|
|
407
|
+
},
|
|
408
|
+
"targetTemperature": {
|
|
409
|
+
"maxValue": 32,
|
|
410
|
+
"minValue": 16,
|
|
411
|
+
"minStep": 1
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
]
|
|
416
|
+
}
|
|
417
|
+
]
|
|
418
|
+
}
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
|
|
385
422
|
***Important***
|
|
386
423
|
Homebridge-cmd4 just outputs the value to be set. For whatever reason the lower layers of homebridge set on/off to be "true" and "false" instead of 0 & 1, which is incorrect, but changing it would break others scripts.
|
|
387
424
|
Homebridge-cmd4 has always recognized either 0/1 or true/false when receiving the devices value.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-cmd4",
|
|
3
3
|
"description": "Exec Plugin for Homebridge supporting all accessorys and characteristics",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "John Talbot"
|
|
@@ -114,4 +114,4 @@
|
|
|
114
114
|
"release:minor": "tools/generateChangeLog --type minor --cleanup",
|
|
115
115
|
"release:major": "tools/generateChangeLog --type major --cleanup"
|
|
116
116
|
}
|
|
117
|
-
}
|
|
117
|
+
}
|