jochem725 / homebridge-toon

Homebridge Plugin for Toon Thermostats
14 stars 8 forks source link

Toon username with "@" #6

Closed JeroenTielen closed 7 years ago

JeroenTielen commented 7 years ago

Hi Jochem ,

I can't login. It keeps saying:

[12/12/2016, 1:25:23 PM] [Toon] Error: There was an error retrieving the client data from Toon.
{"success":false,"reason":"Could not authenticate successfully with given credentials","errorCode":"invalidCredentials"}

This is my config.json:

`{ "bridge": { "name": "Homebridge", "username": "B8:27:EB:9A:03:99", "port": 51826, "pin": "036-32-278" },

"accessories": [ { "accessory": "Toon", "name": "Toon", "username": "test@test.nl", "password": "password" } ] } `

I'm 100% sure the name and password are correct. But the username contains a "@" could this lead to any issues?

I can succesvol login on: https://toonopafstand.eneco.nl

Best regards, Jeroen Tielen.

JeroenTielen commented 7 years ago

Problem was related to the markup of the json file.

For everyone who is reading this later, please use only tabs or only space in the json file. ;)