Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Invalid Credentials" when adding integration for HiTemp #72

Open
spanznet opened this issue Sep 5, 2023 · 32 comments
Open

"Invalid Credentials" when adding integration for HiTemp #72

spanznet opened this issue Sep 5, 2023 · 32 comments

Comments

@spanznet
Copy link

spanznet commented Sep 5, 2023

Describe the bug
Add integration screen results in Invalid Credentials error. v3.0.26

To Reproduce
Steps to reproduce the behaviour:

  1. Go to Settings - Devices & Services
  2. Click on '+ ADD INTEGRATION'
  3. Find Aqua Temp
  4. Enter email & password
  5. Check error

Expected behavior
Expect successful login as tested with same credentials in Hi Temp android app.

Screenshots
If applicable, add screenshots to help explain your problem.

image

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome
  • Version: 116

Smartphone (please complete the following information):

  • Device: Pixel 6
  • OS: Android 13
  • Browser: Chrome
  • Version: 116

Additional context
I've tried over a few days, checked and triple checked details.
Reset password - same error.
Created a 2nd HiTemp account and shared device - same error with both accounts.
Rebooted HA - same error.
Enabled debug log:

2023-09-05 16:27:31.570 INFO (MainThread) [custom_components.aqua_temp.managers.flow_manager] Config flow started, Step: user, Input: None
2023-09-05 16:27:54.669 INFO (MainThread) [custom_components.aqua_temp.managers.flow_manager] Config flow started, Step: user, Input: {'title': 'Evoheat HWS', 'username': 'me@redacted.com', 'password': 'redacted', 'api_type': 'hi_temp'}
2023-09-05 16:27:54.672 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_config_manager] Storing config data: {"temperature_unit": {}}, Exiting: {"temperature_unit": {}}
2023-09-05 16:27:54.683 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_config_manager] Initialized, Entity Descriptions: 3, protocol codes: 3, protocol codes configuration: 3, platforms: 4, HVAC modes: {'default': {'off': None, 'cool': '0', 'heat': '1', 'auto': '2'}, '1245226668902080512': {'off': None, 'heat': '0'}, '1442284873216843776': {'off': None, 'cool': '0', 'heat': '1', 'auto': '2'}}, HVAC modes - reversed: {'default': {None: 'off', '0': 'cool', '1': 'heat', '2': 'auto'}, '1245226668902080512': {None: 'off', '0': 'heat'}, '1442284873216843776': {None: 'off', '0': 'cool', '1': 'heat', '2': 'auto'}}, Fan modes: {'default': {'auto': '0', 'low': '1'}, '1245226668902080512': {'off': '0', 'low': '1', 'high': '2'}, '1442284873216843776': {'auto': '0', 'low': '1'}}, Fan modes - reversed: {'default': {'0': 'auto', '1': 'low'}, '1245226668902080512': {'0': 'off', '1': 'low', '2': 'high'}, '1442284873216843776': {'0': 'auto', '1': 'low'}}
2023-09-05 16:27:54.689 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Initializing API, Throw Error: True
2023-09-05 16:27:54.690 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] No token available, Login AquaTemp API and fetching devices
2023-09-05 16:27:56.061 DEBUG (MainThread) [custom_components.aqua_temp.managers.aqua_temp_api] Request to https://cloud.linked-go.com/cloudservice/api/app/user/login.json, Body: {'user_name': 'me@redacted.com', 'password': 'redacted'}, Result: {'error_code': '-1', 'error_msg': 'Error username or password', 'error_msg_code': '', 'is_reuslt_suc': False}
2023-09-05 16:27:56.061 WARNING (MainThread) [custom_components.aqua_temp.managers.flow_manager] Failed to create integration, Error Key: invalid_credentials
@RamjetX
Copy link

RamjetX commented Sep 15, 2023

Confirmed same issue as described above.

@sjtrny
Copy link

sjtrny commented Sep 17, 2023

Same issue here! Although selecting "Aqua Temp" as the API type works.

@RamjetX
Copy link

RamjetX commented Sep 17, 2023

Same issue here! Although selecting "Aqua Temp" as the API type works.
edit

The Aqua Temp with HiTemp login API displays connected but no data seems to be updating?

@angyp
Copy link

angyp commented Nov 6, 2023

I am having the same issue. Sorta works with Aqua temp but I have no control from Homeassistant. Can just read sensor states.

@wendan20
Copy link

wendan20 commented Nov 6, 2023

HI, thanks for creating the integration! I just installed the integration for a heatpump boiler. I have the same issue. I can only connect with the aquatemp api (invalid credentials with Hitemp), but then I can only read values. The climate sensor is not operational and does not react on changed from the Hitemp app. Is there some (quick) fix for this or is it a bug in the integration which needs fixing? Thanks!

@wendan20
Copy link

HI, thanks for creating the integration! I just installed the integration for a heatpump boiler. I have the same issue. I can only connect with the aquatemp api (invalid credentials with Hitemp), but then I can only read values. The climate sensor is not operational and does not react on changed from the Hitemp app. Is there some (quick) fix for this or is it a bug in the integration which needs fixing? Thanks!

Hi, I am pretty new to Github. Can someone explain to me how the handeling of this works? Is it correct that the innitial issue was applied on september 5th? And how does it work from here? Is someone looking in to it? Thanks!

@sjtrny
Copy link

sjtrny commented Nov 14, 2023

Hi, I am pretty new to Github. Can someone explain to me how the handeling of this works? Is it correct that the innitial issue was applied on september 5th? And how does it work from here? Is someone looking in to it? Thanks!

@wendan20 this is a voluntary open source project with no organisation structure or responsibility for maintenance. To the best of everyone's knowledge here no one is looking into it. The main contributor @elad-bar might be, but they haven't been active in this repository for a while.

@wendan20
Copy link

Did anyone get this wokring apart from this repo? @sjtrny did I see it correctly that you forked this repo? Do you have it working with hitemp app? Like to connect my heatpump to Home Assistant somehow. Thanks!

@elad-bar
Copy link
Collaborator

elad-bar commented Dec 16, 2023

Hi, i've been less active over the few last months,
Can you please share logs so i'll be able to try assist?

Thanks

@wendan20
Copy link

wendan20 commented Dec 16, 2023 via email

@elad-bar
Copy link
Collaborator

sure, pls send both if possible (just mention which is related to what scenario),
I will need the logs with debug log level

@wendan20
Copy link

wendan20 commented Dec 16, 2023 via email

@wendan20
Copy link

wendan20 commented Dec 16, 2023 via email

@wendan20
Copy link

wendan20 commented Dec 16, 2023 via email

@elad-bar
Copy link
Collaborator

2 quesyions, when trying to login through the mobile app, is it working?
Is the account still connected? (As i recall you can't be logged in from 2 devices to the same account)

Thanks

@wendan20
Copy link

wendan20 commented Dec 16, 2023 via email

@wendan20
Copy link

wendan20 commented Dec 16, 2023 via email

@elad-bar
Copy link
Collaborator

For me the integration works with the climate entity so that's why I'm asking,
can you pls provide debug log level of the flow that climate is not working?
I can share a Postman project that simulates the API calls for login, if that works for you, we can better understand if it's integration or cloud related and progress from there

thanks

@wendan20
Copy link

wendan20 commented Dec 17, 2023 via email

@wendan20
Copy link

wendan20 commented Dec 17, 2023 via email

@elad-bar
Copy link
Collaborator

i think i understand the issue, it's calling the AquaTemp url instead of HiTemp cloud,
will need to find out how to extract the right url

@wendan20
Copy link

wendan20 commented Dec 18, 2023 via email

@elad-bar
Copy link
Collaborator

just to make sure:

  • the device was added through hitemp app, in the HA integration setup you have choose AquaTemp
  • when you are trying to setup the integration with HiTemp you are getting invalid credentials message
    right?

@elad-bar
Copy link
Collaborator

can we switch to discord (https://discord.gg/6B6fakaK)?
in order to debug it I will need (if possible) that you will share the device with me, so i'll be able to debug it locally

@wendan20
Copy link

wendan20 commented Dec 18, 2023 via email

@wendan20
Copy link

wendan20 commented Dec 18, 2023 via email

@elad-bar
Copy link
Collaborator

elad.bar@hotmail.com

@spanznet
Copy link
Author

I just uninstalled and reinstalled the addon as HiTemp and no longer receive the "Invalid Credentials" so I assume it was fixed at some point and this can be closed?

@elad-bar
Copy link
Collaborator

@spanznet are you getting any device?
can you pls share the diagnostic file?

thanks

@wendan20
Copy link

I too can login with the Hitemp credentials now! The integrations sees a device and I see all the sensors. Nut the climate control does not work with my heatpump (yet). The climate control looks greyed out and If I turn the cliamte control to 'heat' nothing happens.

@elad-bar
Copy link
Collaborator

can you post to the email above the diagnostic file?

thanks

@spanznet
Copy link
Author

Yes I am getting the device and 89 entities, but I assumed the climate card was greyed out because I have a scheduled peak/offpeak. Now we're back in peak time I can confirm the Heat and Off buttons don't function. There's an error in the HA debug log I will send to your email now along with the diagnostic file dump as requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants