From 9488cb60d6f1332358f724213502c707f3ecb145 Mon Sep 17 00:00:00 2001 From: SeydX Date: Sat, 19 Jun 2021 08:42:31 +0200 Subject: [PATCH] v6.0.0-beta.38 --- package-lock.json | 2 +- package.json | 2 +- src/accessories/childlock/childlock.handler.js | 2 ++ src/accessories/extras/extras.handler.js | 1 + src/accessories/router/router.config.js | 2 +- src/accessories/router/router.handler.js | 2 +- 6 files changed, 7 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index f38a190..b78151a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "homebridge-fritz-platform", - "version": "6.0.0-beta.37", + "version": "6.0.0-beta.38", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 43ff937..9b3eb2f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-fritz-platform", - "version": "6.0.0-beta.37", + "version": "6.0.0-beta.38", "description": "Homebridge Plugin to control FritzBox router, smarthome devices and more.", "main": "index.js", "funding": [ diff --git a/src/accessories/childlock/childlock.handler.js b/src/accessories/childlock/childlock.handler.js index 6e602c0..024e100 100644 --- a/src/accessories/childlock/childlock.handler.js +++ b/src/accessories/childlock/childlock.handler.js @@ -80,6 +80,8 @@ class Handler { accessory.context.busy = true; + logger.info(`${state ? 'ON' : 'OFF'} (${subtype})`, `${accessory.displayName} (${subtype})`); + try { await this.fritzbox.exec('urn:X_AVM-DE_HostFilter-com:serviceId:X_AVM-DE_HostFilter1', 'DisallowWANAccessByIP', { NewIPv4Address: accessory.context.config.ip, diff --git a/src/accessories/extras/extras.handler.js b/src/accessories/extras/extras.handler.js index 37a6c1f..392c32a 100644 --- a/src/accessories/extras/extras.handler.js +++ b/src/accessories/extras/extras.handler.js @@ -671,6 +671,7 @@ class Handler { 'dect', 'aw', 'deflection', + 'reconnect', ]; try { diff --git a/src/accessories/router/router.config.js b/src/accessories/router/router.config.js index 9bf50bd..eef9904 100644 --- a/src/accessories/router/router.config.js +++ b/src/accessories/router/router.config.js @@ -10,7 +10,7 @@ const Config = (routerConfig, extrasConfig, optionsConfig) => { validOptionCharacteristics.push('aw', 'broadband', 'dect', 'deflection'); } - if (routerConfig.connection !== 'dsl' || routerConfig.connection !== 'cable') { + if (routerConfig.connection !== 'repeater') { validOptionsSwitches.push('reconnect'); validOptionCharacteristics.push('reconnect'); } diff --git a/src/accessories/router/router.handler.js b/src/accessories/router/router.handler.js index 21fb892..c76ec38 100644 --- a/src/accessories/router/router.handler.js +++ b/src/accessories/router/router.handler.js @@ -738,7 +738,7 @@ class Handler { logger.info(`${state ? 'ON' : 'OFF'} (${subtype})`, `${accessory.displayName} (${subtype})`); try { - let isDsl = accessory.context.config.conection === 'dsl'; + let isDsl = accessory.context.config.connection === 'dsl'; let service = isDsl ? 'urn:WANPPPConnection-com:serviceId:WANPPPConnection1' : 'urn:WANIPConnection-com:serviceId:WANIPConnection1';