diff --git a/package-lock.json b/package-lock.json index 197824e..20f8652 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "homebridge-fritz-platform", - "version": "6.0.0-beta.39", + "version": "6.0.0-beta.40", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index ba92530..b180b2c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "homebridge-fritz-platform", - "version": "6.0.0-beta.39", + "version": "6.0.0-beta.40", "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 ac7ff4a..9c558ea 100644 --- a/src/accessories/childlock/childlock.handler.js +++ b/src/accessories/childlock/childlock.handler.js @@ -66,7 +66,7 @@ class Handler { states.push(active); } - state = states.includes(1); + state = !states.includes(1); } catch (err) { logger.warn('An error occured during getting state!', `${accessory.displayName} (${subtype})`); logger.error(err); @@ -105,7 +105,7 @@ class Handler { 'DisallowWANAccessByIP', { NewIPv4Address: ip, - NewDisallow: state ? 0 : 1, //0: allow - 1: disallow + NewDisallow: state ? 1 : 0, //0: allow - 1: disallow } ); } diff --git a/src/types/custom.types.js b/src/types/custom.types.js index 6983ab9..c15c4bd 100644 --- a/src/types/custom.types.js +++ b/src/types/custom.types.js @@ -220,7 +220,7 @@ exports.registerWith = (hap) => { * Characteristic.FallbackInternet */ Characteristic.FallbackInternet = function () { - Characteristic.call(this, 'DNS Server', 'ef088934-4ec8-4174-b550-e8a8faaed88c'); + Characteristic.call(this, 'Internet Fallback', 'ef088934-4ec8-4174-b550-e8a8faaed88c'); this.setProps({ format: Characteristic.Formats.BOOL, perms: [Characteristic.Perms.READ, Characteristic.Perms.WRITE, Characteristic.Perms.NOTIFY],