diff --git a/src/hilo.ts b/src/hilo.ts index de99ad7..1d4f641 100644 --- a/src/hilo.ts +++ b/src/hilo.ts @@ -46,10 +46,8 @@ class Hilo implements DynamicPlatformPlugin { ) { setConfig(config as HiloConfig); this.config = getConfig(); - if (!this.config.username || !this.config.password) { - this.log.error( - "Please provide a username and password in the config.json file" - ); + if (!this.config.accessToken) { + this.log.error("Please login with hilo in the plugin configuration page"); return; } setLogger(log); diff --git a/src/hiloApi.ts b/src/hiloApi.ts index 588300d..fa67a21 100644 --- a/src/hiloApi.ts +++ b/src/hiloApi.ts @@ -7,7 +7,7 @@ let accessToken: string | undefined; let wsAccessToken: string | undefined; let refreshToken: string | undefined; -const clientId = "9870f087-25f8-43b6-9cad-d4b74ce512e1"; +const clientId = "1ca9f585-4a55-4085-8e30-9746a65fa561"; const authServer = "https://connexion.hiloenergie.com";