Comments (25)
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.
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.
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.
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.
thanks
from homeassistant-homeconnect.
How did you enable SSH?
from homeassistant-homeconnect.
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.
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.
@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.
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.
Also the base_url
on http
?
from homeassistant-homeconnect.
Yes, I am thinking I should have use device flow for the oauth flow now?
from homeassistant-homeconnect.
No, only authorization code grant flow works.
from homeassistant-homeconnect.
So this should be right for the settings than?
Thanks for your fast replies
from homeassistant-homeconnect.
/api/homeconnect is giving me a 500 server error, not sure where to find the actual cause for that
from homeassistant-homeconnect.
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.
So this should be right for the settings than?
Your image is cut.
from homeassistant-homeconnect.
Didn't want to share my full url and tokens :)
Mainly wondering about the last 2 checkboxes
from homeassistant-homeconnect.
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.
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.
Make sure you set the internal_url
as well and watch this issue: home-assistant/core#35844
from homeassistant-homeconnect.
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.
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.
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.
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)
- token not renewing HOT 5
- Add schedule time for Bosch washer and dryer HOT 1
- Turn on/off the functional light of the hood HOT 7
- Washdryer - washing programs and drying programs have the same name HOT 10
- A few suggestions HOT 7
- Would it be possible to add CoffeeWorld programs from the Bosch Coffee machine HOT 1
- Home connect stops working after a few days HOT 11
- Feature request: Newly available Oven Control functions HOT 27
- Feature Request: Monitor and report connected state of all Home-Connect appliances
- Feature Request: Extend Unit option into set_option_active service HOT 10
- "start_program" does not work with example data HOT 1
- Feature Request: Washing machine program as entity HOT 7
- part of the entities siemens dishwasher is unavailable HOT 2
- Component error: home_connect_beta - Integration 'home_connect_beta' not found HOT 6
- Switch for child lock mode HOT 2
- Additional items from HomeConnect HOT 2
- Implement HomeConnect service to set specific program / incl. details HOT 1
- Config example HOT 2
- Home Connect integration has a problem connecting devices #72486 HOT 3
- Redirekt url HOT 22
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homeassistant-homeconnect.