Code Monkey home page Code Monkey logo

Comments (10)

thecem avatar thecem commented on August 23, 2024

HA restarted?

from hass-gardena-smart-system.

TheFitzZZ avatar TheFitzZZ commented on August 23, 2024

Yes, multiple times.

from hass-gardena-smart-system.

thecem avatar thecem commented on August 23, 2024

Which HA installation?
Older Gardena installation in parallel?
Really „Connect new API“ pressed ?

from hass-gardena-smart-system.

TheFitzZZ avatar TheFitzZZ commented on August 23, 2024

HA Install: Supervised HA on Ubuntu
Older: no
Really: yes, if I'm not misunderstanding anything:
image

Checked logs again:

Logger: gardena.smart_system
Source: custom_components/gardena_smart_system/config_flow.py:133
First occurred: 14:54:37 (2 occurrences)
Last logged: 14:56:16

403 : {'message': 'Forbidden'}

also this:

Logger: custom_components.gardena_smart_system.config_flow
Source: custom_components/gardena_smart_system/config_flow.py:133
Integration: Gardena Smart System (documentation)
First occurred: 14:54:37 (3 occurrences)
Last logged: 15:01:24

Unexpected exception
Traceback (most recent call last):
  File "/config/custom_components/gardena_smart_system/config_flow.py", line 70, in async_step_user
    user_input[CONF_CLIENT_ID])
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/gardena_smart_system/config_flow.py", line 133, in try_connection
    smart_system.update_locations()
  File "/usr/local/lib/python3.7/site-packages/gardena/smart_system.py", line 157, in update_locations
    if len(response_data["data"]) < 1:
KeyError: 'data'

I copy/paste all details, and even retried via curl (still works that way) - I don't get it :-/

from hass-gardena-smart-system.

thecem avatar thecem commented on August 23, 2024

Could you try to reconnect the api? Delete the actual one and create a new?

from hass-gardena-smart-system.

osks avatar osks commented on August 23, 2024

For application key/client ID, did you copy and use the application key or the application secret? The correct one is application key, the one you can also see here: https://developer.husqvarnagroup.cloud/apps

from hass-gardena-smart-system.

newlund avatar newlund commented on August 23, 2024

I'm getting the same error:

Traceback (most recent call last):
File "/config/custom_components/gardena_smart_system/config_flow.py", line 70, in async_step_user
user_input[CONF_CLIENT_ID])
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/gardena_smart_system/config_flow.py", line 133, in try_connection
smart_system.update_locations()
File "/usr/local/lib/python3.7/site-packages/gardena/smart_system.py", line 157, in update_locations
if len(response_data["data"]) < 1:
KeyError: 'data'

from hass-gardena-smart-system.

TheFitzZZ avatar TheFitzZZ commented on August 23, 2024

@osks yes, using key not secret
@thecem did you mean disconnecting the api's from the app? Did that now, also updated to current version of the integration, HA reboot, again an issue, but a new one:

Logger: custom_components.gardena_smart_system.config_flow
Source: custom_components/gardena_smart_system/config_flow.py:132
Integration: Gardena Smart System (documentation)
First occurred: 12:40:42 (1 occurrences)
Last logged: 12:40:42

Unexpected exception
Traceback (most recent call last):
  File "/config/custom_components/gardena_smart_system/config_flow.py", line 70, in async_step_user
    user_input[CONF_CLIENT_ID])
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/gardena_smart_system/config_flow.py", line 132, in try_connection
    smart_system.authenticate()
  File "/usr/local/lib/python3.7/site-packages/gardena/smart_system.py", line 102, in authenticate
    client_id=self.client_id,
  File "/usr/local/lib/python3.7/site-packages/requests_oauthlib/oauth2_session.py", line 360, in fetch_token
    self._client.parse_request_body_response(r.text, scope=self.scope)
  File "/usr/local/lib/python3.7/site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 421, in parse_request_body_response
    self.token = parse_token_response(body, scope=scope)
  File "/usr/local/lib/python3.7/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 431, in parse_token_response
    validate_token_parameters(params)
  File "/usr/local/lib/python3.7/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 441, in validate_token_parameters
    raise MissingTokenError(description="Missing access token parameter.")
oauthlib.oauth2.rfc6749.errors.MissingTokenError: (missing_token) Missing access token parameter.

from hass-gardena-smart-system.

osks avatar osks commented on August 23, 2024

Could you open an issue in the new repository (py-smart-gardena/hass-gardena-smart-system) and continue there please?

from hass-gardena-smart-system.

TheFitzZZ avatar TheFitzZZ commented on August 23, 2024

Will do - and also reinstall/resetup everything before that. Thank you.

from hass-gardena-smart-system.

Related Issues (17)

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.