Custom component Afvalbeheer - Support for multiple waste collectors

This is an example of how to automate:

  - alias: rest_afval_waarschuwing_dag_voor
    initial_state: 'on'
    trigger:
      platform: time_pattern
      hours: 7 
      minutes: 0
      seconds: 0
    condition:
      - condition: template
        value_template: '{{ states.sensor.afvalwijzer_grijze_container.state.split(", ")[0] == "Tomorrow" }}'
    action:
    - service: notify.pushover
      data:
        title: "Afval ophalen"
        message: "Morgen wordt de GRIJZE container geleegd"
    - service: persistent_notification.create
      data:
        title: "Afval ophalen"
        message: "Morgen wordt de GRIJZE container geleegd"

I have 2 automations for each type of waste, one that checks for the text “Tomorrow” and one that checks for the text “Today”.
This one works well for the Groningen afvalwijzer.

1 Like

HI,

your waste icons are almost identical to ours:

39

wondering what service provider you have, to dl the purple Plastic icon? Do you have a pointer for me please? thx.

Cool project!
Is it possible to ad ACV-Groep? They are active in Ede.
A postcode is 6717tp 69.

@Pippyn I know it’s just cosmetics, but is it possible to also use these icons with your sensor? They fit better with the rest of the material design icons used by hass.

No, they are not using the same api sadly. So this sensor will not work for ACV.

Update: version 4.2.1 adds support for ACV

You can just use custimize for that. Put your icons in the www folder. And this in your configuration file;

customize:
  sensor.afvalwijzer_gft:
    entity_picture: /local/icon1.jpg

Hi @Mariusthvdb; could you pls share the icons/png files with me?

sure, here you go:

asbest elec gft gft3 glas goedbeter kca kliko_geen kliko kringloop milieustraat papier papier3 plastic plastic3 restafval restafval3 textiel

the bigger ones are for:

52

1 Like

Hey Pippyn,

I think there is bug in the Groningen-afvalwijzer (1.0.3).
Yesterday, the pickup-info for one of the sensors was shown as “Tomorrow, 29-01-2019”. And I received the corresponding alarm I have set up.
Today, there was no alarm and the pickup-info of the same sensor is shown as “12-02-2019”, which is the next pickup-date.
Instead of showing “Today, 29-01-2019”, as was the default behavior in the previous versions.
Can you please check your code?

@bouwew What is the fraction for the sensor (gft, restafval, …)? Do you have a postal code and street number in your neighborhood, so I have the same information in the sensors as you? You can DM me the info if you don’t want to publish in what area you live :wink:

Thanks! Can ypu also share the lovelace code for your very nice card(s) ?

Pushed an update. Should be fixed in version 1.0.4
Could you please test if it works for you?

Yes, it works now. Thank you!

I’m glad it works now, sorry for the inconvenience.

Sure I can, but please don’t get angry with sharing a Mijn Afvalwijzer card in this thread…:wink: Because that’s the Custom component I use:

My sensor.circulus_berkel_pmd doesn’t work.
It wont give a value.

@Sander2506 And you are sure that plastic gets collected in your area?
If so can you give me a postcode and street number in your neighborhood?

I’m sure.
7205GL kanon 50

Found the bug. I pushed a fix to my github. Could you please test version 2.0.5?

i will try.