Giter Site home page Giter Site logo

clever_api's People

Contributors

fars-fede-fire avatar smulle48 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

clever_api's Issues

add home charger doesn't work

System Health details

System Information

version core-2023.3.6
installation_type Home Assistant Container
dev false
hassio false
docker true
user root
virtualenv false
python_version 3.10.10
os_name Linux
os_version 6.1.16-2-MANJARO-ARM-RPI
arch aarch64
timezone Europe/Copenhagen
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4644
Installed Version 1.31.0
Stage running
Available Repositories 1250
Downloaded Repositories 16
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Dashboards
dashboards 3
resources 13
views 11
mode storage
Recorder
oldest_recorder_run 7 March 2022 at 16:38
current_recorder_run 28 March 2023 at 20:07
estimated_db_size 7098.55 MiB
database_engine mysql
database_version 10.10.2

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

When trying to add a home charger i just get an error

Reproduction steps

  1. add from hacs
  2. setup integration
  3. write mail
  4. get login token
  5. fill login token
  6. check the checkbox "add home charger"
  7. click add
  8. error occurs
    ...

Debug logs

| 2023-03-28 18:21:22.406 ERROR (MainThread) [aiohttp.server] Error handling request
homeassistant  | Traceback (most recent call last):
homeassistant  |   File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
homeassistant  |     resp = await request_handler(request)
homeassistant  |   File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
homeassistant  |     resp = await handler(request)
homeassistant  |   File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
homeassistant  |     return await handler(request)
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 67, in security_filter_middleware
homeassistant  |     return await handler(request)
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 227, in forwarded_middleware
homeassistant  |     return await handler(request)
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
homeassistant  |     return await handler(request)
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
homeassistant  |     return await handler(request)
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 234, in auth_middleware
homeassistant  |     return await handler(request)
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 146, in handle
homeassistant  |     result = await result
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 180, in post
homeassistant  |     return await super().post(request, flow_id)
homeassistant  |   File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
homeassistant  |     result = await method(view, request, data, *args, **kwargs)
homeassistant  |   File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
homeassistant  |     result = await self._flow_mgr.async_configure(flow_id, data)
homeassistant  |   File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 271, in async_configure
homeassistant  |     result = await self._async_handle_step(
homeassistant  |   File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
homeassistant  |     result: FlowResult = await getattr(flow, method)(user_input)
homeassistant  |   File "/config/custom_components/clever_api/config_flow.py", line 130, in async_step_box
homeassistant  |     resp = await sub.get_evse_info()
homeassistant  |   File "/config/custom_components/clever_api/clever/clever.py", line 201, in get_evse_info
homeassistant  |     model = EvseInfo.parse_obj(resp)
homeassistant  |   File "/usr/local/lib/python3.10/site-packages/pydantic/main.py", line 526, in parse_obj
homeassistant  |     return cls(**obj)
homeassistant  |   File "/usr/local/lib/python3.10/site-packages/pydantic/main.py", line 341, in __init__
homeassistant  |     if validation_error:
homeassistant  | pydantic.error_wrappers.ValidationError: 1 validation error for EvseInfo
homeassistant  | data -> 0 -> smartChargingConfiguration
homeassistant  |   none is not an allowed value (type=type_error.none.not_allowed)

Diagnostics dump

No response

can send authorization email

System Health details

none

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

when i have to write my mail, it somes with an error
image

Reproduction steps

...

Debug logs

i am new to github

Diagnostics dump

i am new to github

Change setup to only require api key

Checklist

  • I have filled out the template to the best of my ability.
  • This only contains 1 feature request (if you have multiple feature requests, open one feature request for each feature request).
  • This issue is not a duplicate feature request of previous feature requests.

Is your feature request related to a problem? Please describe.

No

Describe the solution you'd like

It it possible to change the setup, so you only have to enter your api key ?

Describe alternatives you've considered

Additional context

I've already got access to my api key and can call everything from curl so if the setup could be change to only require input of the api key :-)

500 Internal Server Error

System Health details

System Information

version core-2023.9.2
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.5
os_name Linux
os_version 6.1.45
arch x86_64
timezone Europe/Copenhagen
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4996
Installed Version 1.32.1
Stage running
Available Repositories 1293
Downloaded Repositories 44
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 10.5
update_channel stable
supervisor_version supervisor-2023.09.2
agent_version 1.5.1
docker_version 23.0.6
disk_total 62.3 GB
disk_used 38.2 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons Advanced SSH & Web Terminal (15.0.8), Cloudflared (4.2.7), ESPHome (2023.8.3), Home Assistant Google Drive Backup (0.111.1), Mosquitto broker (6.3.1), PS5 MQTT (1.3.1), Piper (1.3.2), Portainer (2.0.0), Samba share (10.0.2), Studio Code Server (5.10.2), Vaultwarden (Bitwarden) (0.20.0), MariaDB (2.6.1), go2rtc (1.7.1), Node-RED (14.5.0)
Dashboards
dashboards 1
resources 32
views 1
mode yaml
Recorder
oldest_recorder_run September 15, 2023 at 19:24
current_recorder_run September 23, 2023 at 17:17
estimated_db_size 6159.80 MiB
database_engine mysql
database_version 10.6.12

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

I am getting internal server error when I am trying to initialise the integration. Is it the result of the API deprecation or removal?

Reproduction steps

  • Intstalled trough HACS.

Debug logs

No logs can be given. Integration cannot be initialised.

Diagnostics dump

No response

Requirements for clever_api not found: ['pydantic==1.10'].

System Health details

System Information

version core-2023.9.0
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.11.5
os_name Linux
os_version 6.1.45
arch x86_64
timezone Europe/Copenhagen
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.32.1
Stage running
Available Repositories 1293
Downloaded Repositories 72
Home Assistant Cloud
logged_in true
subscription_expiration 19. december 2023 kl. 01.00
relayer_connected true
relayer_region eu-central-1
remote_enabled true
remote_connected true
alexa_enabled false
google_enabled true
remote_server eu-central-1-8.ui.nabu.casa
certificate_status ready
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 10.5
update_channel stable
supervisor_version supervisor-2023.08.3
agent_version 1.5.1
docker_version 23.0.6
disk_total 97.7 GB
disk_used 36.7 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons Samba share (10.0.2), Glances (0.19.2), Log Viewer (0.15.1), MariaDB (2.6.1), Mosquitto broker (6.3.1), Node-RED (14.4.5), Advanced SSH & Web Terminal (15.0.7), Studio Code Server (5.10.1), Zigbee2MQTT (1.33.0-1), ESPHome (dev) (dev), ESPHome (2023.8.3), Emulated HUE (dev) (0.3.0), File editor (5.6.0), AdGuard Home (4.8.14), Nginx Proxy Manager (0.12.3), Zigbee2MQTT Edge (edge)
Dashboards
dashboards 7
resources 44
views 10
mode storage
Recorder
oldest_recorder_run 8. august 2023 kl. 09.07
current_recorder_run 7. september 2023 kl. 13.12
estimated_db_size 3405.78 MiB
database_engine mysql
database_version 10.6.12
Spotify
api_endpoint_reachable pending

Checklist

  • I have enabled debug logging for my installation.
  • I have filled out the issue template to the best of my ability.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).
  • This issue is not a duplicate issue of currently previous issues..

Describe the issue

when trying to configure the integration i get
homeassistant.requirements.RequirementsNotFound: Requirements for clever_api not found: ['pydantic==1.10'].

Reproduction steps

  1. Installed an older version where URLs are not censored
  2. configure clever intergration from UI gives the error
    ...

Debug logs

2023-09-08 08:39:27.252 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
    resp = await request_handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 94, in forwarded_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 31, in headers_middleware
    response = await handler(request)
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle
    result = await handler(request, **request.match_info)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 63, in with_admin
    return await func(self, request, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 147, in post
    return await super().post(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
    result = await method(view, request, data, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 71, in post
    result = await self._flow_mgr.async_init(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 846, in async_init
    flow, result = await task
                   ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 864, in _async_init
    flow = await self.async_create_flow(handler, context=context, data=data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 966, in async_create_flow
    handler = await _async_get_flow_handler(
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2063, in _async_get_flow_handler
    await _load_integration(hass, domain, hass_config)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2039, in _load_integration
    await async_process_deps_reqs(hass, hass_config, integration)
  File "/usr/src/homeassistant/homeassistant/setup.py", line 420, in async_process_deps_reqs
    await requirements.async_get_integration_with_requirements(
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 52, in async_get_integration_with_requirements
    return await manager.async_get_integration_with_requirements(domain)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 171, in async_get_integration_with_requirements
    await self._async_process_integration(integration, done)
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 186, in _async_process_integration
    await self.async_process_requirements(
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 245, in async_process_requirements
    self._raise_for_failed_requirements(name, missing)
  File "/usr/src/homeassistant/homeassistant/requirements.py", line 274, in _raise_for_failed_requirements
    raise RequirementsNotFound(integration, [req])
homeassistant.requirements.RequirementsNotFound: Requirements for clever_api not found: ['pydantic==1.10'].

Diagnostics dump

No response

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.