Skip to content

Commit

Permalink
3.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mitch7391 committed Aug 2, 2022
1 parent 2cb24d3 commit e71e626
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 37 deletions.
18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,24 @@

All notable changes to this project will be documented in this file. This project uses [Semantic Versioning](https://semver.org/).

## 3.5.0 (2022-08-02)

Special thanks to the amazing [uswong](https://github.com/uswong) for adding this new feature!

### Notable Changes

* New `ConfigCreator` script to automatically craft your homebridge-cmd4-AdvantageAir config! This feature is particularly helpful for users with larger MyPlace systems containing Lights, Garage Doors, etc., who can have over 100 accessories; but new and existing users with smaller systems can still benefit from this feature!
* You can choose to have the script generate a cmd4 config file for you to copy and paste into your existing `config.json` or opt to allow it to automaticaly add itself to your `config.json` to save you the effort of the copy/paste. This will not overwrite any other existing cmd4 accessories outside of this project.
* Instructions on how to run this script can be found [here](https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/wiki/Config-Creation#configcreator-instructions).

### Other Changes

* Dev: `timeout` increased for `Server.js` unit tests to be more suitable to dev testing on RPi.


## 3.4.0 (2022-06-10)
Special thanks to the amazing uswong and ztalbot2000 for adding these new features!

Special thanks to the amazing [uswong](https://github.com/uswong) and [ztalbot2000](https://github.com/ztalbot2000) for adding these new features!

### Notable Changes

Expand Down
Empty file modified ConfigCreator.sh
100644 → 100755
Empty file.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,11 @@ brew install curl
# Synology/QNAP NAS
apk add curl
```
7. Edit your homebridge `config.json` by modifying the samples included in the directory [Config_Samples](https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/tree/master/Config_Samples) or by reading through and following the [Wiki](https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/wiki/Config-Creation) guide to create your own config. This should all be edited from the Homebridge UI ['config'](https://github.com/oznu/homebridge-config-ui-x#configuration-screen) tab. <I><B>NOTE:</I></B> Two accessories cannot have the exact same `displayName` in your config. E.g. A switch and temperature sensor cannot both be named 'Kitchen'.
7. Edit your Homebridge `config.json` by following one of the following three methods:
* Use the `ConfigCreator` script to automatically generate your `config.json`. Instructions can be found [here](https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/wiki/Config-Creation#configcreator-instructions).
* Modifying the samples included in the directory [Config_Samples](https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/tree/master/Config_Samples) and pasting these into your Homebridge UI ['config'](https://github.com/oznu/homebridge-config-ui-x#configuration-screen) tab.
* Read through and follow the [Wiki](https://github.com/mitch7391/homebridge-cmd4-AdvantageAir/wiki/Config-Creation) guide to create your own config step by step. This should all be edited from the Homebridge UI tab.
* <I><B>NOTE:</I></B> Two accessories cannot have the exact same `displayName` in your config. E.g. A switch and temperature sensor cannot both be named 'Kitchen'.
8. Restart Homebridge.
9. Go to the 'plugins' tab in Homebridge UI and locate your newly installed `homebridge-cmd4-AdvantageAir`. Click `SETTINGS` and it should launch the 'Advantage Air Configuration Check'.

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Homebridge Cmd4 Advantage Air",
"description": "Catered shell script to integrate air conditioner control units by Advantage Air",
"license": "MIT",
"version": "3.4.0",
"version": "3.5.0",
"author": {
"name": "Mitch Williams"
},
Expand Down
64 changes: 32 additions & 32 deletions test/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ describe('Test homebridge-ui/server.js', () =>
"platform": "Cmd4",
"name": "Cmd4",
"statusMsg": true,
"timeout": 5000,
"timeout": 60000,
"queueTypes": [
{ "queue": "7", "queueType": "WoRm2" }
],
Expand Down Expand Up @@ -148,7 +148,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #6. No AdvAir.sh FAILS', function ( done )
{
Expand All @@ -164,7 +164,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

// Works
it('Test Check #6. AdvAir.sh Passes', function ( done )
Expand All @@ -178,7 +178,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #7 & 32. For No Cmd4 Accessories will be detected', function ( done )
{
Expand All @@ -197,7 +197,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #8A. Constants must be an Array.', function ( done )
{
Expand All @@ -213,7 +213,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #8B. Constants must have a key.', function ( done )
{
Expand All @@ -229,7 +229,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #8C. Constants must have a value.', function ( done )
{
Expand All @@ -245,7 +245,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #8D. Key must start with ${', function ( done )
{
Expand All @@ -261,7 +261,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #8E. Key must end with }', function ( done )
{
Expand All @@ -277,7 +277,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #9. Check for no Advantage Air Accessories', function ( done )
{
Expand All @@ -294,7 +294,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #10. Check See if any Advantage Air accessory has a defined name', function ( done )
{
Expand All @@ -310,7 +310,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #11. Check See if any Advantage Air accessory has a defined displayName', function ( done )
{
Expand All @@ -326,7 +326,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #12. Duplicate Display Names', function ( done )
{
Expand Down Expand Up @@ -360,7 +360,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #13. The state_cmd must be defined for the Air accessory', function ( done )
{
Expand All @@ -376,7 +376,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #14. See if the state_cmd does not match the cmd4AdvAir.sh', function ( done )
{
Expand All @@ -392,7 +392,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #15. See if the state_cmd_suffix is defined for the Air accessory', function ( done )
{
Expand All @@ -408,7 +408,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #16. The state_cmd_suffix must have an IP for the Air accessory', function ( done )
{
Expand All @@ -424,7 +424,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #17A. The state_cmd_suffix must have a zone or noSensors EXCEPT Fan accessories', function ( done )
{
Expand Down Expand Up @@ -456,7 +456,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #17B. The state_cmd_suffix must have a zone or noSensors EXCEPT Thermostat accessories', function ( done )
{
Expand Down Expand Up @@ -488,7 +488,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #17C. The state_cmd_suffix must have a zone or noSensors for Sensors accessories', function ( done )
{
Expand All @@ -505,7 +505,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #18. queueTypes array must pass.', function ( done )
{
Expand All @@ -525,7 +525,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #19A. QueueTypes must be an array.', function ( done )
{
Expand All @@ -542,7 +542,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #19B. Non WoRm2 QueueType should fail with correct message.', function ( done )
{
Expand All @@ -558,7 +558,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #20. Duplicate queues must not exist.', function ( done )
{
Expand All @@ -578,7 +578,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #21. Duplicate queues must not exist.', function ( done )
{
Expand All @@ -595,7 +595,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #22. queue name must be an string.', function ( done )
{
Expand All @@ -612,7 +612,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #23. queue must be defined in queueTypes.', function ( done )
{
Expand All @@ -629,7 +629,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #24A. For AdvAir accessories polling must be defined.', function ( done )
{
Expand All @@ -646,7 +646,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #24B. For AdvAir accessories polling must be a Boolean with false (Fails).', function ( done )
{
Expand All @@ -663,7 +663,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #24B. For AdvAir accessories polling must be a Boolean with true (Passes).', function ( done )
{
Expand All @@ -680,7 +680,7 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );

it('Test Check #24B. For AdvAir accessories polling must be an Array.', function ( done )
{
Expand All @@ -696,5 +696,5 @@ describe('Test homebridge-ui/server.js', () =>

// Finish our unit test
done( );
}).timeout( 5000 );
}).timeout( 10000 );
});

0 comments on commit e71e626

Please sign in to comment.