Dielee / volvo2mqtt

Home Assistant addon for connecting AAOS Volvos
MIT License
127 stars 25 forks source link

No information from car #208

Closed ericedberg closed 2 hours ago

ericedberg commented 4 days ago

Describe the bug I get no info from car

To Reproduce:
Just happend

Expected behavior:
work as it would

Screenshots:
If applicable, add screenshots to help explain your problem.

Version info:
HA-addon Core 2024.6.3 Supervisor 2024.06.2 Operating System 12.3

Logs:
rc = self._packet_read() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/paho/mqtt/client.py", line 2439, in _packet_read rc = self._packet_handle() ^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/paho/mqtt/client.py", line 3033, in _packet_handle return self._handle_publish() ^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/paho/mqtt/client.py", line 3327, in _handle_publish self._handle_on_message(message) File "/usr/lib/python3.12/site-packages/paho/mqtt/client.py", line 3570, in _handle_on_message on_message(self, self._userdata, message) File "/volvoAAOS2mqtt/mqtt.py", line 160, in on_message update_car_data(True) File "/volvoAAOS2mqtt/mqtt.py", line 305, in update_car_data state = volvo.get_backend_status() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/volvoAAOS2mqtt/volvo.py", line 435, in get_backend_status response = session.get(API_BACKEND_STATUS, timeout=15) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/requests/sessions.py", line 602, in get return self.request("GET", url, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/requests/sessions.py", line 589, in request resp = self.send(prep, send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/requests/adapters.py", line 698, in send raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='oip-dev-bff.euwest1.production.volvo.care', port=443): Max retries exceeded with url: /api/v1/backend-status (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)'))) Jul 04 09:23:35 volvo2mqtt [106] - INFO: Sending mqtt update... Jul 04 09:23:37 volvo2mqtt [106] - INFO: Mqtt update done. Next run in 300 seconds.

odh79 commented 3 days ago

I get the same error. And when trying to access the version1 of the api on the website i get this.

"Oops! Error 404 This version of the API has been removed as of April 30, 2024."

kernalkue commented 2 days ago

Same for me. I have to keep restarting the add-on maybe a couple of times a day

Dielee commented 2 days ago

This is an SSL error from the Volvo API..

rubenv commented 2 days ago

Interesting that the app does work. Are they using different endpoints or did they (yikes!) disable certificate validation?

AndyHarvey99 commented 2 days ago

I patched get_backend_status() to always return "NO_WARNING" and everything still seems to work. The certificate on https://oip-dev-bff.euwest1.production.volvo.care expired on Wednesday 3 July 2024!

Dielee commented 2 days ago

So, I will not disable SSL verification for this addon, sorry..

ericedberg commented 2 days ago

So, I will not disable SSL verification for this addon, sorry..

So we just wait until Volvo fix certificate?

sencercoltu commented 1 day ago

Besides certificate expiration, it appears the URL https://oip-dev-bff.euwest1.production.volvo.care/api/v1/backend-status is also down. I'm receiving a "502 Bad Gateway" error for this URL even when SSL verification is disabled.

Dielee commented 5 hours ago

Please try v1.9.4 if its ready

ericedberg commented 4 hours ago

Please try v1.9.4 if its ready

Works for me afte update. Nice, fast work!