home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.88k stars 30.11k forks source link

myUplink config flow showing empty dialog #113437

Closed maol01 closed 5 months ago

maol01 commented 6 months ago

The problem

I cant install the myUplink integration installed. I have an app at dev.myuplik with ID and Client secret, when installing the integration it all seamingly run through until the last step and the I get this image image

No device, integration or entities shows up in HA except for myUplink update

What version of Home Assistant Core has the issue?

2024.3.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

myUplink

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

TheJulianJES commented 6 months ago

Are there any errors in Home Assistant (Core) logs?

home-assistant[bot] commented 6 months ago

Hey there @pajzo, @astrandb, mind taking a look at this issue as it has been labeled with an integration (myuplink) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `myuplink` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign myuplink` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


myuplink documentation myuplink source (message by IssueLinks)

astrandb commented 6 months ago

What version of myuplink integration did you install. The official version or the version available in HACS?

maol01 commented 6 months ago

I Have tried both HACS and 1.2.2 none of is working

maol01 commented 6 months ago

I think there is an issue with the app at dev.myuplink. Of some reason I can´t save the app. The last page of creating app is giving me the client ID and Client Secret but the "Save" button is orange and I can´t save it. I tried getting support support from NIBE, but they do not offer any support for their open API..

astrandb commented 6 months ago

@maol01 You have installed the custom_component version. We cannot help you here. Please create an issue in the custom repo https://github.com/jaroschek/home-assistant-myuplink

krzysztofnowak1972 commented 6 months ago

Old version myuplink from HACS worked great. Seit few days i have standard HA inegrations - and problems with data from API - data are not continiuous. Charts are not continiuous, sensors or entieties work by 5 min and after that stop , and again. This all was after update Supervisior to 2024.3 and core 2024.03. Whats i do wrong

Here is simple chart image

And log with error

Error requesting myuplink data: Cannot connect to host api.myuplink.com:443 ssl:default [Try again]

astrandb commented 6 months ago

@krzysztofnowak1972 Have you removed all of the config/custom component/myuplink ? Make sure that it is not listed in HACS screen anymore. If it is still there, select Remove from the three-dot-menu and restart HA.

krzysztofnowak1972 commented 6 months ago

I restored the backup from March 1. I have everything as before Supervisior 2024.2.1 and Core 2024.2.5. I deleted MyUplink from integration, I deleted Myuplink from HACS. I cleaned the config/custom component/myuplink folder.

Then I updated supervisior to 2024.3, and updated core to 2024.3.1 - I now have HA in the latest version without myuplink.

Note: Until core 2024.03 was updated, everything worked fine on HACS

I am adding standard myuplink integration, not with HACS -

I have the same problem as maol01

image

krzysztofnowak1972 commented 6 months ago

I tried a lot of times - it worked and I launched myUplink. it's working fine for now - Thank you

My joy was short-lived - the integration disconnects the API connection every 5 minutes image

I come to the conclusion that it is not a problem of integration Myuplink but -problem with core 2024.3 - Weather and hydrawise integration for watering also turns off and on at the same time

Error sending analytics to https://analytics-api.home-assistant.io/v1: ClientConnectorError(ConnectionKey(host='analytics-api.home-assistant.io', port=443, is_ssl=True, ssl=True, proxy=None, proxy_auth=None, proxy_headers_hash=-4827875883335589751), gaierror(-3, 'Try again'))

Error resolving OAuth token: Cannot connect to host api.myuplink.com:443 ssl:default [Try again] Error requesting hydrawise data: Cannot connect to host api.hydrawise.com:443 ssl:default [Try again] Error requesting myuplink data: Cannot connect to host api.myuplink.com:443 ssl:default [Try again]

krzysztofnowak1972 commented 6 months ago

config_entry-myuplink-06853b59d28b1c7ab6209902c9fad735.json home-assistant_myuplink_2024-03-19T18-55-24.939Z.log

Diagnostic and debug file

and this is what the chart looks like image

sschuetz82 commented 5 months ago

I have exactly the same issue. i cannot setup the integration. image

sschuetz82 commented 5 months ago

Log: 2024-04-08 22:48:59.652 ERROR (MainThread) [homeassistant.helpers.config_entry_oauth2_flow] Token request for xx failed (invalid_client): check authorization server configuration 2024-04-08 22:48:59.652 ERROR (MainThread) [homeassistant.helpers.config_entry_oauth2_flow] Error resolving OAuth token: 400, message='Bad Request', url=URL('https://api.myuplink.com/oauth/token')

astrandb commented 5 months ago

Please try to set your profile language to English and see if you get a meaningful message in the dialog box. Perhaps something is wrong with the translation.

The log indicate that there is something wrong with your client credentials. Goto settings->integrations and select the three-dot menu. There you can remove the credentials and then you can start over again.

sschuetz82 commented 5 months ago

unfortunatly not : image

i cannot remove the credentials, it is not showing under integrations. i have to add new integration -> the auth flow is starting -> and then the empty screen / error

astrandb commented 5 months ago

The three dot menu in the upper right corner of the screen.

sschuetz82 commented 5 months ago

Thanx astrandb it worked!