pippyn / Home-Assistant-Sensor-Afvalbeheer

Provides Home Assistant sensors for multiple Dutch and Belgium waste collectors
Apache License 2.0
280 stars 86 forks source link

Max retries exceeded for ROVA #501

Closed kranendijk closed 3 weeks ago

kranendijk commented 3 weeks ago

Hi,

The Afvalbeheer indicates an “unkown” for the sensors. When I check the logfiles I see the error below. Is there something wron on ROVA side? The Afvalbeheer had been working flawlessly until a few days ago. Home assistant, addon and HACS are all to the latest versions.

Deze fout is ontstaan door een aangepaste integratie.

Logger: custom_components.afvalbeheer.API Bron: custom_components/afvalbeheer/API.py:321 integratie: Afvalbeheer (documentatie) Eerst voorgekomen: 11:22:26 (1 gebeurtenissen) Laatst gelogd: 11:22:26

Error occurred while fetching data: SSLError(MaxRetryError("HTTPSConnectionPool(host='api.inzamelkalender.rova.nl', port=443): Max retries exceeded with url: /webservices/appsinput/?apikey=5ef443e778f41c4f75c69459eea6e6ae0c2d92de729aa0fc61653815fbd6a8ca&method=postcodecheck&postcode=8032TV&street=&huisnummer=30&toevoeging=&app_name=afvalwijzer&platform=web&afvaldata=2024-08-25&langs=nl (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)')))"))

willemvnd commented 3 weeks ago

same here

IGNWoudenberg commented 3 weeks ago

Here the same. SSL certificate seems not valid anymore on rova’s side?

woytekbode commented 3 weeks ago

Same!

pippyn commented 3 weeks ago

What config are you using? With an address for me to test with please?

kranendijk commented 3 weeks ago

Hi pippyn, for some reason I cannot copy and paste my config. Was able to make a printscreen though… hooe this helps? IMG_1794

pippyn commented 3 weeks ago

Yes the SSL certificate of the API end point is no longer valid. When ROVA fixes this issue, the sensor will work again.

mr-brains commented 3 weeks ago

just had contact with ROVA, the person on the phone thinks it is no longer in use and will be terminated. I think the person had no idea :-) but promised to contact ICT. now we Wait.

pippyn commented 3 weeks ago

I think they are right, because https://www.mijnafvalwijzer.nl/ no longer supports ROVA addresses according to my tests. Can you guys confirm? If so, i'll rewrite the ROVA integration to the new API.

mr-brains commented 3 weeks ago

just had contact with ROVA, the person on the phone thinks it is no longer in use and will be terminated. I think the person had no idea :-) but promised to contact ICT. now we Wait.

they just phoned back, the certificate was never intended for public use, it will not be renewed.

mr-brains commented 3 weeks ago

I think they are right, because https://www.mijnafvalwijzer.nl/ no longer supports ROVA addresses according to my tests. Can you guys confirm? If so, i'll rewrite the ROVA integration to the new API.

confirmed, adres is resolved but "Uw adres is niet bekend bij ons. Klopt dit niet? Neem contact op met uw afvalinzamelaar"

the api i got from the logging was: https://api.inzamelkalender.rova.nl/webservices/appsinput/?apikey=string&method=postcodecheck&postcode=1234ab&street=&huisnummer=1&toevoeging=&app_name=afvalwijzer&platform=web&afvaldata=2024-08-29&langs=nl

pippyn commented 3 weeks ago

I've rewritten the ROVA API in v5.3.10. Most likely it will create new entities when using this version. Example config:

afvalbeheer:
  - wastecollector: ROVA
    resources:
      - GFT
      - Papier
      - PMD
    postcode: 8032TV
    streetnumber: 30
    upcomingsensor: 1
    dutch: 1
    printwastetypes: 1

Can you confirm this new version fixes the issues?

mr-brains commented 3 weeks ago

Yes, i have the calendar back, and the entities have values again. I dont think they are new.

Thanks

IGNWoudenberg commented 3 weeks ago

Yes, installed .10 version and did not had to do any config; works again with existing entities after reboot.

willemvnd commented 3 weeks ago

Same here !!

Thanks very fast update

kranendijk commented 3 weeks ago

It solved the issue, many many thanks!!!

pippyn commented 3 weeks ago

Good to hear guys! I'll close this issue, if you have any problems/questions please open a new issue.