Hi Pippyn,
On Github you mention Avri wastecollector is available, at the top of this thread Avri is not listed. I installed it anyhow and got a startup notice that gft, papier, pmd are the waste types available. Good!
Bu the only sensors created are as per screenshot which doesn’t seem right.
What is your config? It looks like you included 1 resource named “restafval_gft_papier_pmd”, these should be all unique entries. Look at the github for more detail
Oops, indeed two spaces too many
Got four sensors now also restafval which is not available at our location.
Startup still reports the three papier, pmd en groen.
I can live with that as at least now I got the collection dates again.
Thanks for the integration and your very quick reply Pippyn !
First of all: thanks a lot for sharing your code - it was exactly what I was looking for and helped a lot since I am just getting started with HA…
I’m not sure this is also the case for you, but when I used your code, sorting on state didn’t work out for me. When I changed the sorting as follows, it’s fixed:
If there is an pickup day with 2 items gft and plastic then I have an error in the big picture "garbage today or garbage tomorrow "
Is there a solution for?
@GH2user, I noticed you have configured your Afvalbeheer for Avri. I live also in the Area supported by Avri, but i have difficulties getting the component working. Hopefully you can help me with this?
I installed it via HACS and that seems ok. I configured the sensor in configuration.yaml as follows:
As @Pippyn says, but most likely you do not have a restafval pickup and need to bring it to the collection points.
By adding printwastetypes you can see what is availbale at your location when HA restarts, shown in the notifications.
Adding he upcoming you can see the today / tomorrow pickup.
for reference my settings;
sensor:
platform: afvalbeheer
wastecollector: Avri
resources:
- gft
- papier
- pmd
postcode: SECRET
streetnumber: SECRET
printwastetypes: 1 # prints list of types restafval at HA restart
upcomingsensor: 1 # creates the today and tomorrow sensors
dateformat: '%d %b'
@Pippyn
Would it be possible to make the sensors so that we can customise the names, I prefer to have everything in english and have renamed both today/tomorrow in the code, but every update need to redo this (if I upgrade).
BTW it is really nice to see the results for avri again, thanks
today - tomorrow bins change to the appropriate image when collection is near.
@Pippyn, Ai, I see my mistake with restafval (without the ‘-’)! I totally overlooked that. And @GH2user, indeed restafval is not applicable in my region.
Thank you both for the help so far. Next i have to add it to my Lovelace dashboard…