Skip to content

[Bug]: One or both the keys are invalid. Please try again. #22

@codefendant

Description

@codefendant

The problem

Getting error message "One or both the keys are invalid. Please try again."

Screenshot_17-12-2024_21426_192 168 0 22

I assume the Secret Key is the API Key and the Access Key is the API Key Name.

I generated one set of keys, and it didn't work.
Then I generated a second set of keys, and it still didn't work.
Swapped them around, still didn't work.

Screenshot_17-12-2024_21245_platform renogy com

What version of Home Assistant?

2024.12.4

What version of Renogy?

N/A

Diagnostics information

No response

Anything in the logs that might be useful for us?

This error originated from a custom integration.

Logger: custom_components.renogy.config_flow
Source: custom_components/renogy/config_flow.py:45
integration: renogy (documentation, issues)
First occurred: 8:54:51 PM (7 occurrences)
Last logged: 9:19:20 PM

Invalid key(s).
Traceback (most recent call last):
File "/config/custom_components/renogy/config_flow.py", line 45, in async_step_user
await renogy.get_devices()
File "/usr/local/lib/python3.13/site-packages/renogyapi/init.py", line 115, in get_devices
response = await self.process_request(url, headers)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/renogyapi/init.py", line 81, in process_request
raise NotAuthorized
renogyapi.exceptions.NotAuthorized

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    configurationProblem with configurationdocumentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions