h4de5 / home-assistant-toshiba_ac

Toshiba AC integration into home-assistant.io
GNU General Public License v3.0
113 stars 17 forks source link

Invalid authentication #151

Closed beltracri closed 4 months ago

beltracri commented 7 months ago

I have a Toshiba VRF system connected with a LAN smart device control interface (BMS-IWF0320E). I use toshiba AC control app on mobile. I wanted to try if my systemis compatible but the integration gives me "Invalid authentication" message. Credential works well on app, i tried also simplier user and password but noting. Is this problem caused by incompatibility?

gbrogna commented 7 months ago

I am also having the same issue validating Thank you

Zyxl72 commented 6 months ago

I had the same problem and tried with the PHP API that is provided on the code side. 1) try the PHP with JDOODLE, ther you see if your credentials work 2) i also noticed that some usernames and passwords don't work, so if your credentials dont work, try to use a short PW with letter and numbers, if that does not work, logout in the app and register a new name to your mail and try with this.

beltracri commented 6 months ago

I'm not that good and I don't know how to use PHP code... However I tried 5 different simpler credentials but none of them seem to work. My doubts mainly concern the fact that my system could be compatible but the error lies precisely in the authentication.

Zyxl72 commented 6 months ago

Go to Postman https://www.postman.com/

There sign up for Free then you can add a Request, change from "GET" to "POST" and enter as URL: https://mobileapi.toshibahomeaccontrols.com/api/Consumer/Login then click on "Body" underneath the Url-Field, there select "raw" then next to the right select "JSON" and then add this in the Field { "username" : "", "password" : "" }

You see this in the Picture. Then click "Send" in the Response body you see if you were successful or not.

login

As mentioned in an other Issue, best add a new User to your Toshiba App simple by signing out, register a new user using the same eMail. Use 6-8 Letter for the username and as Password lower case characters and numbers only with a length of 6-8

repercussion commented 6 months ago

Wanting to confirm that username is indeed the email address you used to sign up, correct? This is incongruous to that:

add a new User to your Toshiba App simple by signing out, register a new user using the same eMail

beltracri commented 6 months ago

Go to Postman https://www.postman.com/

There sign up for Free then you can add a Request, change from "GET" to "POST" and enter as URL: https://mobileapi.toshibahomeaccontrols.com/api/Consumer/Login then click on "Body" underneath the Url-Field, there select "raw" then next to the right select "JSON" and then add this in the Field { "username" : "", "password" : "" } As mentioned in an other Issue, best add a new User to your Toshiba App simple by signing out, register a new user using the same eMail. Use 6-8 Letter for the username and as Password lower case characters and numbers only with a length of 6-8

Oh, thank you, I tried and the response is "Failed", so maybe I am using wrong credentials to try login! I think I'm missing some steps of my setup because the BMS connection device was configured by installer and I suppose he used some "power user" credentials since i have no email registered. I will try to ask him if there are some credential that I miss.

Zyxl72 commented 6 months ago

#

Wanting to confirm that username is indeed the email address you used to sign up, correct? This is incongruous to that:

add a new User to your Toshiba App simple by signing out, register a new user using the same eMail

No the username is not your email.

When you first start the app you can either login or register (maybe you need to logout of the app first, when you already have done this) . At register you can define your username and the password and then it asks for your email. You can have serval usernames with different passwords with one email. this email is the ID for your account where the ACs and the Estias are added.

Zyxl72 commented 6 months ago

Go to Postman https://www.postman.com/ There sign up for Free then you can add a Request, change from "GET" to "POST" and enter as URL: https://mobileapi.toshibahomeaccontrols.com/api/Consumer/Login then click on "Body" underneath the Url-Field, there select "raw" then next to the right select "JSON" and then add this in the Field { "username" : "", "password" : "" } As mentioned in an other Issue, best add a new User to your Toshiba App simple by signing out, register a new user using the same eMail. Use 6-8 Letter for the username and as Password lower case characters and numbers only with a length of 6-8

Oh, thank you, I tried and the response is "Failed", so maybe I am using wrong credentials to try login! I think I'm missing some steps of my setup because the BMS connection device was configured by installer and I suppose he used some "power user" credentials since i have no email registered. I will try to ask him if there are some credential that I miss.

maybe you have to register a new user to your email.. with me it was like this. my first user i registered did not work, then i added a new user with the mentioned parameters and everything worked fine.

Zyxl72 commented 4 months ago

if there are no further Questions this thread should be closed