Skip to content

Commit

Permalink
Add support for Sliedrecht
Browse files Browse the repository at this point in the history
  • Loading branch information
pippyn committed Sep 18, 2024
1 parent e92bcad commit 03ac95a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Home Assisant sensor component for Afvalbeheer

Provides Home Assistant sensors for multiple Dutch and Belgium waste collectors using REST API.
This sensor works with the following waste collectors: Blink, Cure, Suez, ACV, Twente Milieu, Hellendoorn, Cyclus, DAR, De Fryske Marren, HVC Groep, Meerlanden, RMN (Reinigingsbedrijf Midden Nederland), Schouwen-Duiveland, Peel en Maas, Purmerend, Circulus-Berkel (Afvalvrij), Avalex, Venray, Den Haag, Berkelland, Alphen aan den Rijn, Waalre, ZRD, Spaarnelanden, SudwestFryslan, Montfoort, GAD, Cranendonck, ROVA, RD4, RWM, Limburg.NET, Afval Alert, RecycleApp, DeAfvalApp, Alkmaar, AreaReiniging, Almere, Waardlanden, Reinis, Avri, Omrin, BAR, Assen, RAD, Meppel, Montferland, PreZero, Lingewaard Voorschoten, Westland, Ôffalkalinder, Afval3xBeter, Middelburg-Vlissingen and Cleanprofs.
This sensor works with the following waste collectors: Blink, Cure, Suez, ACV, Twente Milieu, Hellendoorn, Cyclus, DAR, De Fryske Marren, HVC Groep, Meerlanden, RMN (Reinigingsbedrijf Midden Nederland), Schouwen-Duiveland, Peel en Maas, Purmerend, Circulus-Berkel (Afvalvrij), Avalex, Venray, Den Haag, Berkelland, Alphen aan den Rijn, Waalre, ZRD, Spaarnelanden, SudwestFryslan, Montfoort, GAD, Cranendonck, ROVA, RD4, RWM, Limburg.NET, Afval Alert, RecycleApp, DeAfvalApp, Alkmaar, AreaReiniging, Almere, Waardlanden, Reinis, Avri, Omrin, BAR, Assen, RAD, Meppel, Montferland, PreZero, Sliedrecht, Lingewaard Voorschoten, Westland, Ôffalkalinder, Afval3xBeter, Middelburg-Vlissingen and Cleanprofs.

Cure users should switch to the waste collector MijnAfvalwijzer

Expand Down Expand Up @@ -112,6 +112,7 @@ Choose your collector from this list:
- ROVA
- RMN
- Schouwen-Duiveland
- Sliedrecht
- Spaarnelanden
- SudwestFryslan
- Twente Milieu
Expand Down
2 changes: 1 addition & 1 deletion custom_components.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sensor.afvalbeheer": {
"version": "5.4.1",
"version": "5.4.2",
"local_location": "/custom_components/afvalbeheer/__init__.py",
"remote_location": "https://raw.githubusercontent.com/pippyn/Home-Assistant-Sensor-Afvalbeheer/master/custom_components/afvalbeheer/__init__.py",
"visit_repo": "https://github.com/pippyn/Home-Assistant-Sensor-Afvalbeheer",
Expand Down
2 changes: 1 addition & 1 deletion custom_components/afvalbeheer/API.py
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ class RecycleApp(WasteCollector):
def __init__(self, hass, waste_collector, postcode, street_number, suffix, custom_mapping, street_name):
super().__init__(hass, waste_collector, postcode, street_number, suffix, custom_mapping)
self.street_name = street_name
self.main_url = 'https://api.recycleapp.be/api/app/v1/'
self.main_url = 'https://www.recycleapp.be/api/app/v1/'
self.xsecret = 'Op2tDi2pBmh1wzeC5TaN2U3knZan7ATcfOQgxh4vqC0mDKmnPP2qzoQusmInpglfIkxx8SZrasBqi5zgMSvyHggK9j6xCQNQ8xwPFY2o03GCcQfcXVOyKsvGWLze7iwcfcgk2Ujpl0dmrt3hSJMCDqzAlvTrsvAEiaSzC9hKRwhijQAFHuFIhJssnHtDSB76vnFQeTCCvwVB27DjSVpDmq8fWQKEmjEncdLqIsRnfxLcOjGIVwX5V0LBntVbeiBvcjyKF2nQ08rIxqHHGXNJ6SbnAmTgsPTg7k6Ejqa7dVfTmGtEPdftezDbuEc8DdK66KDecqnxwOOPSJIN0zaJ6k2Ye2tgMSxxf16gxAmaOUqHS0i7dtG5PgPSINti3qlDdw6DTKEPni7X0rxM'
self.xconsumer = 'recycleapp.be'
self.accessToken = ''
Expand Down
6 changes: 4 additions & 2 deletions custom_components/afvalbeheer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Sensor component for waste pickup dates from dutch and belgium waste collectors
Original Author: Pippijn Stortelder
Current Version: 5.4.1 20240911
Current Version: 5.4.2 20240918
20230705 - Added support for Afval3xBeter
20230822 - Fix icon for papier-pmd
20230927 - Fix ZRD API
Expand Down Expand Up @@ -31,6 +31,8 @@
20240829 - Support for new ROVA API
20240906 - New option for custom mapping
20240911 - Fix API url for Cyclus and Montfoort
20240917 - Fix API url for RyclycleApp
20240918 - Add support for Sliedrecht
Example config:
Configuration.yaml:
Expand Down Expand Up @@ -67,7 +69,7 @@
from .API import get_wastedata_from_config


__version__ = "5.4.1"
__version__ = "5.4.2"


_LOGGER = logging.getLogger(__name__)
Expand Down
1 change: 1 addition & 0 deletions custom_components/afvalbeheer/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
'purmerend': 'https://afvalkalender.purmerend.nl',
'rwm': 'https://rwm.nl',
'schouwen-duiveland': 'https://afvalkalender.schouwen-duiveland.nl',
'sliedrecht': 'afvalkalender.sliedrecht.nl',
'spaarnelanden': 'https://afvalwijzer.spaarnelanden.nl',
'sudwestfryslan': 'https://afvalkalender.sudwestfryslan.nl',
'suez': 'https://inzamelwijzer.prezero.nl',
Expand Down
2 changes: 1 addition & 1 deletion custom_components/afvalbeheer/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"rsa",
"pycryptodome"
],
"version": "5.4.1"
"version": "5.4.2"
}
1 change: 1 addition & 0 deletions info.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ This sensor works with the following waste collectors:
- ROVA
- RMN
- Schouwen-Duiveland
- Sliedrecht
- Spaarnelanden
- SudwestFryslan
- Twente Milieu
Expand Down

0 comments on commit 03ac95a

Please sign in to comment.