Custom component Afvalbeheer - Support for multiple waste collectors

I use

    sort:
      method: attribute
      attribute: sort-date
      reverse: false
glas 20231113
papier 20231113
pdm 20231023
restafval 20231030

but it should be

pdm 20231023
restafval 20231030
papier 20231113
glas 20231113

I want the first date coming first. What am I doing wrong ?

Please open an issue on my github. With your config, an address in your neighborhood and any possible errors in your log.

It should be:

sort:
    method: attribute
    attribute: Sort_date
    reverse: false
1 Like

Oh how stupid me…

Goodmorning! I have a question for Afvalbeheer (use Limburg.NET).
Is it possible to change the icons? I saw in this topics a nice one.
In case it’s possible, could somebody explain me how to do it, maybe with a example?

Scherm­afbeelding 2023-12-24 om 10.32.33

The one that is standard i would like to change.

Thanks for the help and have nice holidays.

Gr. Richard

I think you can change the icon in your entity options page

afbeelding

Hi Faecon Jo,

thanks for your reply. But i think this icons are the standard mdi, not the nice ones (colored) like i mention. Do you know how or where i can change that?

Thanks!

Maybe like this ?

You can change the icon of every entity in HA, just set the entity_picture to whatever you would like.
Have a look at the docs:

Hi, yes indeed, since I wrote my code the attribute changed so your change was what I also did

1 Like

Just started with HA.
Cant get any information. Keeps showing “onbekend”

image

afvalbeheer:
wastecollector: mijnafvalwijzer
resources:
- restafval
- gft
- papier
- pmd
postcode: ******
streetnumber: **
suffix: a # (optional)
upcomingsensor: 0 # (optional)
dateformat: ‘%d-%m-%Y’ # (optional)
dateonly: 0 # (optional)
name: “” # (optional)
nameprefix: 1 # (optional)
builtinicons: 1 # (optional)
dutch: 1 # (optional)

I have checked the mijnafvalwijzer website and I just get information based on my zip code and house number. Other waste data from HACS does work…

@Rufes1989 Please make a new issue on my repo with an address for me to test with

i got same issu. icons are also not working

afvalbeheer:
  wastecollector: HVC
  resources:
    - restafval
    - gft
    - papier
    - pmd
  postcode: 1722KK
  streetnumber: 1
  suffix: ''                        # (optional)
  upcomingsensor: 1                # (optional)
  dateformat: '%d-%m-%Y'           # (optional)
  dateonly: 0                      # (optional)
  name: ""                         # (optional)
  nameprefix: 1                    # (optional)
  builtiniconsnew: 1                  # (optional)
  dutch: 0                         # (optional)

For the address in your config you should use MijnAfvalwijzer, not HVC.
So this config is working:

afvalbeheer:
  - afvalbeheer:
    wastecollector: MijnAfvalwijzer
    resources:
      - restafval
      - gft
      - pmd
    postcode: 1722KK
    streetnumber: 1

Ohh, Thanks mate. Just can’t get the icons on tomorrow or next one

- platform: afvalbeheer
  wastecollector: RecycleApp
  value_template: >-
    {% set A = ["Maandag", "Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag","Zondag"] %}
    {% set B = ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"] %} 
    # {{ (days) "%d" (mon)}}
  resources:
    - restafval
    - papier
    - pmd
    - glas
  postcode: 9xxx
  streetname: xxxxxxxxx
  upcomingsensor: 1 # (optional)
  dateformat: "%d %B" # (optional)
  dateonly: 1 # (optional)
  nameprefix: 1 # (optional)
  builtinicons: 0 # (optional)
  dutch: 1 # (optional)
  name: "Vuilnis"
``
It isn't working anymore, but I didn't change anything. What went wrong ?

I tested with a minimal config, and it is working fine.

afvalbeheer:
  - wastecollector: RecycleApp
    resources:
      - restafval
      - papier
      - pmd
      - glas
      - gft
      - grofvuil
    postcode: 9xxx
    streetname: xxxxxxxxxxx

I get : TemplateSyntaxError: expected token ‘end of print statement’, got ‘string’

any idea ?

Why do you have a value_template in your config in the first place? Remove that option from your config and it should work

my states of the sensors made are “unknown”