Git Product home page Git Product logo

Comments (25)

onkelfarmor avatar onkelfarmor commented on September 24, 2024 1

Sorry, hadn't activated ssl in my home-assistant setup :-(
Now it works!

I get the following sensor/switch:
- sensor.dryer_program_progress
- sensor.dryer_remaining_program_time
- binary_sensor.dryer_door
- switch.dryer
- switch.dryer_program_cotton
- switch.dryer_program_mix
- switch.dryer_program_synthetic

but only sensor.dryer_remaining_program_time is updated. Moreover it shows time in seconds, could be nice with hours/minutes.

from homeassistant-homeconnect.

harkoprinssen avatar harkoprinssen commented on September 24, 2024 1

Working now. the user account to give access to your testing should be the email-address of your normal home connect account. All working now, cheers!

from homeassistant-homeconnect.

DavidMStraub avatar DavidMStraub commented on September 24, 2024

Hi,

you need to

  • enter the correct Redirect URI in the App's settings
  • make sure you have Status set to Enabled in the App's settings
  • make sure you have the app's client ID & client secret in your configuration.yaml.

Do you have all that?

from homeassistant-homeconnect.

DavidMStraub avatar DavidMStraub commented on September 24, 2024

but only sensor.dryer_remaining_program_time is updated

I had a bug (#1) that I fixed seconds ago that the program switch for a program running at startup of HA does not have the correct state. Maybe that affected you as well. As to the program_progress sensor, that does not seem to exist for the dryer (a dryer is the only physical HC device I own, too), but I left it in since the API claims it exists in principle.

Moreover it shows time in seconds, could be nice with hours/minutes.

Indeed, that's annoying for a dryer. But I haven't found out how to do that yet in HA. Of course one could turn the sensor value into a string, but that would make it impossible to use in automations. There should be some kind of pretty formatting of time values in HA...

from homeassistant-homeconnect.

onkelfarmor avatar onkelfarmor commented on September 24, 2024

thanks

from homeassistant-homeconnect.

kaareseras avatar kaareseras commented on September 24, 2024

How did you enable SSH?

from homeassistant-homeconnect.

TorbjornZachrisson avatar TorbjornZachrisson commented on September 24, 2024

I´m having the same problem. I have ssl enabled and are connecting from outside on port 443 but the router are forwarding to port 8123 internal. Somehow the 8123 port gets sent for the authentication. Copied some of the url below. Fxxxxxx.duckdns.org%3A8123%2Fapi%2Fhomeconnect&state. This in not normally a problem...

from homeassistant-homeconnect.

TorbjornZachrisson avatar TorbjornZachrisson commented on September 24, 2024

Changed in the code to add one more parameter on home assistant configuration. redirect_uri: https://xxxx.duckdns.org/api/homeconnect. Now it works.

from homeassistant-homeconnect.

kaareseras avatar kaareseras commented on September 24, 2024

@TorbjornZachrisson I did as you descriped, changed the code and added the redirect uri. I the did the the authproces, and got all the way to the clicking the autorize button. Then I was rdirected to: https://xxxxxxx.xxx/api/homeconnect?code=eyJ4LIiwieC1lbnYiOiJQUkQiLCJ0b2tlbiI6Ijc4ZGQ2ODA2LTEyZDAtNDgzNy05ZGZiLTA0NDYwYWJjM2ZkZiJ9&state=Mewwr5Z2QlXwjg14zznPfO8x32dHUY&grant_type=authorization_code
and got a 500 internal error.

My redirect in the config: redirect_uri: https://xxxxxx.xxx/api/homeconnect
and in the portal it is https://xxxxxx.xxx/api/homeconnect

What am I doing wrong?

from homeassistant-homeconnect.

harko-aviva avatar harko-aviva commented on September 24, 2024

I am having the same issue with the 500 server error.. not sure what needs to be fixed.. Any tips? double checked the settings

from homeassistant-homeconnect.

DavidMStraub avatar DavidMStraub commented on September 24, 2024

Also the base_url on http?

from homeassistant-homeconnect.

harko-aviva avatar harko-aviva commented on September 24, 2024

Yes, I am thinking I should have use device flow for the oauth flow now?

from homeassistant-homeconnect.

DavidMStraub avatar DavidMStraub commented on September 24, 2024

No, only authorization code grant flow works.

from homeassistant-homeconnect.

harko-aviva avatar harko-aviva commented on September 24, 2024

image

So this should be right for the settings than?

Thanks for your fast replies

from homeassistant-homeconnect.

harko-aviva avatar harko-aviva commented on September 24, 2024

/api/homeconnect is giving me a 500 server error, not sure where to find the actual cause for that

from homeassistant-homeconnect.

harkoprinssen avatar harkoprinssen commented on September 24, 2024

Ah, when trying the HC api I get a similar error, must be some configuration in my account I did wrong than

from homeassistant-homeconnect.

DavidMStraub avatar DavidMStraub commented on September 24, 2024

So this should be right for the settings than?

Your image is cut.

from homeassistant-homeconnect.

harkoprinssen avatar harkoprinssen commented on September 24, 2024

Didn't want to share my full url and tokens :)
Mainly wondering about the last 2 checkboxes

from homeassistant-homeconnect.

harkoprinssen avatar harkoprinssen commented on September 24, 2024

Think I figured it out, somehow it adds ":443" to my redirect uri. removing that sends to log in to the HC portal. now figure out how to allow myself access

Ok, adding :443 in the redirect uri fixed that.

Now I am stuck with this, added my own username as default for testing, but no luck

"The given user is not assigned to this app in the developer portal." reported back by the portal..

from homeassistant-homeconnect.

Christianb233 avatar Christianb233 commented on September 24, 2024

Hello David, sorry to disturb with that but I have a "client or redirection URI not authorized" error :-(
I have followed all the instruction here https://www.home-assistant.io/integrations/home_connect/
I have put https://nameofmyduckdns.duckdns.org:8123/auth/external/callback (with :8123, with :443, wihtout :8123), but the error is still there when I try Configuration > Integrations > Home Connect
Can you help me to know what is missing in my process ?

from homeassistant-homeconnect.

DavidMStraub avatar DavidMStraub commented on September 24, 2024

Make sure you set the internal_url as well and watch this issue: home-assistant/core#35844

from homeassistant-homeconnect.

Christianb233 avatar Christianb233 commented on September 24, 2024

Ok, after reading the different comments, I have changed external to internal url, and it enables to api.home-connect.com. Good :-) but by writing the smartphone home connect api login/password, the answer is "the corresponding user is not affected to this application into Home Connect Developer Portal." :-( I didn't catch that there was previously a "link" to do into Home Connect Developer Portal= I have only made the instructions "register new application > Home Assistant > Authorization Code Grant Flow >...." to get the associated client_ID and password_ID > to put in HA configuration.yaml "home_connect..." . Do you understand what is missing in my process ?

from homeassistant-homeconnect.

DavidMStraub avatar DavidMStraub commented on September 24, 2024

Sorry but I don't understand. If you closely read all the readmes and similar issues people have submitted in the past, I'm sure you'll get it to work. If not, at the very least you have to provide detailed information about your settings on the HA and HC sides.

from homeassistant-homeconnect.

erd82 avatar erd82 commented on September 24, 2024

Think I figured it out, somehow it adds ":443" to my redirect uri. removing that sends to log in to the HC portal. now figure out how to allow myself access

Ok, adding :443 in the redirect uri fixed that.

Now I am stuck with this, added my own username as default for testing, but no luck

"The given user is not assigned to this app in the developer portal." reported back by the portal..

@harkoprinssen: The reason why you were getting the message is, that you have not defined your email address (that you are using in your Home Connect App) in the "Home Connect User Account" of your Home Connect developer account. You can either define it specifically for an app or in your account details centrally.

Hope this also helps others ... I have spend a few hours time to find this simple solution.

from homeassistant-homeconnect.

samhed avatar samhed commented on September 24, 2024

These instructions say we should use the internal url: https://www.home-assistant.io/integrations/home_connect/

For me, the solution was to specify my external url in the app settings on developer.home-connect.com.

from homeassistant-homeconnect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.