Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

No data returned when charging system has error #57

Closed
colesadam opened this issue Jul 6, 2023 · 4 comments
Closed

No data returned when charging system has error #57

colesadam opened this issue Jul 6, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@colesadam
Copy link

Describe the bug
Fails to start when charging returns error. Noticed since yesterday when cable not connected correctly. After replacing cable restarted container and now ok.

To Reproduce:

  1. Part connect cable
  2. Restart docker container

Expected behavior:

start up and show
Screenshots:

If applicable, add screenshots to help explain your problem.

Version info:

The version you are using and the method you are using (Docker container/HA Addon/Cloned repo)

Logs:

Jul 06 08:58:16 volvo2mqtt [1] - INFO: Starting volvo2mqtt version v1.7.3
Jul 06 08:58:17 volvo2mqtt [1] - INFO: Vin: ['XXXXXXXXXXXXXXXXXX'] found!
Jul 06 08:58:17 volvo2mqtt [1] - INFO: Success! Battery Charge Level is supported by your vehicle.
Jul 06 08:58:17 volvo2mqtt [1] - INFO: Success! Electric Range is supported by your vehicle.
Jul 06 08:58:17 volvo2mqtt [1] - INFO: Success! Estimated Charging Time is supported by your vehicle.
Jul 06 08:58:17 volvo2mqtt [1] - INFO: Success! Charging System Status is supported by your vehicle.
Traceback (most recent call last):
File "/volvoAAOS2mqtt/./main.py", line 13, in
authorize()
File "/volvoAAOS2mqtt/volvo.py", line 52, in authorize
check_supported_endpoints()
File "/volvoAAOS2mqtt/volvo.py", line 159, in check_supported_endpoints
state = api_call(entity["url"], "GET", vin, entity["id"])
File "/volvoAAOS2mqtt/volvo.py", line 250, in api_call
return parse_api_data(data, sensor_id)
File "/volvoAAOS2mqtt/volvo.py", line 297, in parse_api_data
return charging_connection_states[data["chargingConnectionStatus"]["value"]]
KeyError: 'CONNECTION_STATUS_FAULT'

@Dielee
Copy link
Owner

Dielee commented Jul 6, 2023

Would you please enable debug and send the logs ?

EDIT: This state isn't described on the Volvo page. No need for debug logs i will fix this.

@Dielee
Copy link
Owner

Dielee commented Jul 6, 2023

Done by version v1.7.4! Are you able to test this change ?

@Dielee Dielee added the bug Something isn't working label Jul 6, 2023
@colesadam
Copy link
Author

Yep, updated and tested and now shows correct info, thanks!

@Dielee
Copy link
Owner

Dielee commented Jul 6, 2023

Nice. Thanks for testing!

@Dielee Dielee closed this as completed Jul 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants