updated magic-home lib, changed reply parameter to ack

This commit is contained in:
Jan Scheiper 2019-07-14 15:44:36 +02:00
parent a2ce3f72da
commit 3113249771
4 changed files with 19 additions and 10 deletions

View File

@ -14,7 +14,7 @@ class HCMagicHome extends HCColorLamp {
}
let opts = {
wait_for_reply: (this._configuration.reply !== undefined) ? this._configuration.reply : true,
ack: (this._configuration.ack !== undefined) ? Control.ackMask(this._configuration.ack) : true,
log_all_received: (this._configuration.logall !== undefined) ? this._configuration.logall : false,
};

View File

@ -1,6 +1,6 @@
## Configuration
- `reply`
Sets `wait_for_reply` in the constructor.
- `ack`
Bitmask to set `ack` in the constructor.
- `logall`
Sets `log_all_received` in the constructor.

19
package-lock.json generated
View File

@ -1,11 +1,16 @@
{
"name": "hc-magichome",
"version": "1.0.5",
"version": "1.1.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"commander": {
"version": "2.20.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz",
"integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ=="
},
"homecontrol-control-base": {
"version": "git+https://git.literalchaos.de/jan/homecontrol-control-base.git#b7ed807affe888d61efd9dbff3d55bcc128215b7",
"version": "git+https://git.literalchaos.de/jan/homecontrol-control-base.git#c37d47a85bc9f08cba7f4c8aa36ae6c6232800bd",
"from": "git+https://git.literalchaos.de/jan/homecontrol-control-base.git",
"requires": {
"merge-options": "^1.0.1",
@ -18,9 +23,13 @@
"integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4="
},
"magic-home": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/magic-home/-/magic-home-2.0.2.tgz",
"integrity": "sha512-QrbUYxYlHQfK7ixsMYro2H8gjbATHvZJkLWKO+RwGMvmT7x2SKqltJeQsjxmsFk/xQN/MB9jfLWyVaj4nBFBAA=="
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/magic-home/-/magic-home-2.2.0.tgz",
"integrity": "sha512-2awAYAv1N2msMO088HKwj7fNh20XrDl/YmaOceFMYByhwBS+9L3iWpAiwsi/LXwOrJzUu54zhLujYF/m/NfR2w==",
"requires": {
"commander": "^2.20.0",
"merge-options": "^1.0.1"
}
},
"merge-options": {
"version": "1.0.1",

View File

@ -1,6 +1,6 @@
{
"name": "hc-magichome",
"version": "1.0.6",
"version": "1.1.0",
"description": "Magic Home Plugin for Homecontrol",
"main": "HCMagicHome.js",
"scripts": {
@ -14,6 +14,6 @@
"license": "UNLICENSED",
"dependencies": {
"homecontrol-control-base": "git+https://git.literalchaos.de/jan/homecontrol-control-base.git",
"magic-home": "^2.0.2"
"magic-home": "^2.2.0"
}
}