pippyn / Home-Assistant-Sensor-Afvalbeheer

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

RecycleApp no longer working #481

Closed chivagio closed 4 months ago

chivagio commented 4 months ago

The component suddenly stopped working, no updates or changes. I am using the RecycleApp waste collector. I guess that something changed on their website in the meanwhile ?

I've enabled logging for the "afvalbeheer" custom component in HA and set up the log level to DEBUG. Here are the results : 2024-05-02 23:37:32.013 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration afvalbeheer which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-05-02 23:37:33.558 INFO (MainThread) [homeassistant.setup] Setting up afvalbeheer 2024-05-02 23:37:33.559 DEBUG (MainThread) [custom_components.afvalbeheer] Setup of Afvalbeheer component Rest API retriever 2024-05-02 23:37:33.559 INFO (MainThread) [homeassistant.setup] Setup of domain afvalbeheer took 0.00 seconds 2024-05-02 23:37:33.559 INFO (MainThread) [homeassistant.components.sensor] Setting up afvalbeheer.sensor 2024-05-02 23:37:33.559 DEBUG (MainThread) [custom_components.afvalbeheer.sensor] Setup of sensor platform Afvalbeheer 2024-05-02 23:37:33.559 DEBUG (MainThread) [custom_components.afvalbeheer.API] Get Rest API retriever 2024-05-02 23:37:33.682 DEBUG (MainThread) [custom_components.afvalbeheer.API] Updating Waste collection dates using Rest API

pippyn commented 4 months ago

What is your config? (with an address to test with)

chivagio commented 4 months ago

Here is my config, but sorry I'm not comfortable sharing my home address publicly.

platform: afvalbeheer wastecollector: RecycleApp resources:

  • restafval
  • gft
  • papier
  • pmd
  • glas postcode: XXXX streetnumber: XX streetname: XXXXXXXX upcomingsensor: 1 dateobject: 1 name: "Garbage"

It used to work flawlessly and I didn't touch anything on my HA instance. Something must've changed in their side.

dannyvanderzande commented 4 months ago

I'm having a similar issue but upon backtracing the last triggers for my automation it seems that the sensor.morgen (sensor.tomorrow) gets the value "papier" as "Papier" with a capital letter now. Maybe you're having the same problem.

I changed my automation to accept both papier and Papier but maybe it's an idea to always remove capitalization as part of the extension itsself. Anyway, good luck on solving your problem!

chivagio commented 4 months ago

@dannyvanderzande thanks for your input. I didn't have the same issue but it prompted me to have a look at the entities provided by the component and it turns out it decided to recreate all the sensors under the default name, while the previously declared sensors (which I've edited the names and ID myself in the past for clarity) were still there but "No longer provided". Anyway, thanks a lot!