xirixiz / homeassistant-afvalwijzer

Provides sensors for some Dutch waste collectors
MIT License
175 stars 68 forks source link

Afvalwijzer no longer working for Albrandswaard (BAR) #219

Closed bolderbast closed 1 year ago

bolderbast commented 1 year ago

Support guidelines

Description

As of today, the Afvalwijzer integration no longer works for Albrandswaard (BAR). Seems they have switched to another calendar/partner:

https://www.bar-afvalbeheer.nl/afvalkalender-beschikbaar-in-nieuwe-app

They also have a new app: https://play.google.com/store/apps/details?id=nl.qubz21.burgerportaal.bar.prod

Hope this integration can be adjusted to accommodate for this change.

Expected behaviour

Afvalwijzers sensors showing correct data

Actual behaviour

Sensors showing none/unavailable

Version

HASS logs

homeassistant | 2023-02-01 17:23:05.434 ERROR (SyncWorker_10) [custom_components.afvalwijzer.const.const] Other error occurred _get_next_waste_date: list index out of range homeassistant | 2023-02-01 17:23:05.471 ERROR (SyncWorker_10) [custom_components.afvalwijzer.const.const] Other error occurred _get_next_waste_in_days: unsupported operand type(s) for -: 'datetime.datetime' and 'str'

xirixiz commented 1 year ago

Hi, BAR is already supported. You just need to set the provider to bar instead of mijnafvalwijzer for example. Don't mistake this by changing the name of the integration :). Look at the readme for more info.

bolderbast commented 1 year ago

Hi. It already was set to "bar", and it worked great for months (years?) until this week/yesterday.

This is the config I am using, and it does not work anymore, unfortunately:

- platform: afvalwijzer
  provider: bar
  postal_code: 3171PT
  street_number:  <my house number, pick any odd number between 1 and 45 to test>
  suffix: ''
  exclude_pickup_today: false
  default_label: Geen
  id: ''
  exclude_list: ''

This report is to inform you that it broke since then. Maybe you were a bit too quick to close this issue? Can it be re-opened?

Other integrations also broke since then (https://github.com/heyajohnny/afvalinfo/issues/357), I believe yours also needs to be adjusted for a new data source.

Thanks.

ashwin2101 commented 1 year ago

it no longer works for me either

This is my config:

xirixiz commented 1 year ago

Volgens mij is er geen api beschikbaar voor de betreffende service. Het lijkt erop dat ik dit dus niet kan fixen....

Volgens mij hebben heyajohnny en pippyn hetzelfde issue met het component dat zij aanbieden. Ik haal BAR iig uit de configuratie zoals die nu is en breng dan morgen een nieuwe release uit. Wanneer het wel te fixen is dan laat ik dat uiteraard weten. Ik zoek het nog even op mijn gemak uit morgen.

https://21burgerportaal.mendixcloud.com/ https://21burgerportaal.mendixcloud.com/p/afvalbeheer/template/3940649674867929

xirixiz commented 1 year ago

Just checked, but unfortunatly I cannot add this to this component. Hope the heyajohny component will fulfill your needs ✌️

bolderbast commented 1 year ago

Thanks for checking. I'm worried that heyajohny will run into the same limitation then. Thanks anyway for your attempt!

xirixiz commented 1 year ago

Nah, hey uses beautifulsoep. It uses the wbsite itself to scrape data. It works but is less reliable as each change could have impact.

ashwin2101 commented 1 year ago

Just checked, but unfortunatly I cannot add this to this component. Hope the heyajohny component will fulfill your needs ✌️

Thank you very much, maybe in the future 👊🏻

rononline commented 1 year ago

Ik zie dat BAR de software 21south.nl is gaan gebruiken. Datzelfde doen ZRD, RMN en Maassluis bijvoorbeeld ook. En die staan wel in de ondersteunde lijst? Missen ze dan bij de BAR een module ofzo?

JvdBBBB commented 1 year ago

Hi, I have the same issue for Ridderkerk, No dates are shown.

JvdBBBB commented 1 year ago

It seems that heyajohnny has found a solution, or at least a work around would this work for this plugin as well?