diff --git a/package-lock.json b/package-lock.json index 854f83b..dd9e489 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "homebridge-homewizard-power-consumption", - "version": "1.2.0", + "version": "1.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "homebridge-homewizard-power-consumption", - "version": "1.2.0", + "version": "1.3.0", "license": "Apache-2.0", "dependencies": { "axios": "^1.6.7" diff --git a/package.json b/package.json index fefcd72..3692622 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "displayName": "Homebridge Homewizard Power Consumption", "name": "homebridge-homewizard-power-consumption", - "version": "1.2.0", + "version": "1.3.0", "description": "See current power consumption or power return in Homekit", "license": "Apache-2.0", "author": "Jasper Seinhorst", @@ -25,6 +25,7 @@ }, "keywords": [ "homebridge-plugin", + "homebridge", "Homewizard", "Eco", "Power consumtion", diff --git a/src/Platform.ts b/src/Platform.ts index 8d1179e..3833986 100644 --- a/src/Platform.ts +++ b/src/Platform.ts @@ -29,7 +29,7 @@ export class HomewizardPowerConsumption implements DynamicPlatformPlugin { private async initialise() { if (!this.validateConfig()) { - this.log.warn('Please provide P1\'s IP address'); + this.log.error('Configuration error. Please provide your Wi-Fi P1 meter\'s IP address'); return; } @@ -86,9 +86,10 @@ export class HomewizardPowerConsumption implements DynamicPlatformPlugin { this.devices.forEach((device: HomewizardPowerConsumptionAccessory) => { device.beat(consumption); }); + this.log.debug('heartbeat', consumption); } catch(error) { - this.log.error('Something went wrong'); - this.log.error(error); + this.log.error('Something went wrong, please double check the Wi-Fi P1 meter\'s IP address'); + this.log.debug(error); } } }