Custom component Afvalbeheer - Support for multiple waste collectors

Sadly no:

Hey Pippin,

PMD is still not working and I just noticed that sensor today and tomorrow have a state unknown? Could I help with something to find the problem?

As I said in the post above:

You are using the wrong resource. Change PMD to PBD in your config and all should be fine.
(With a wrong resource, in your case PMD, the today and tomorrow sensors won’t work. This is a known issue and will be fixed in a future release.)

Thanks Pippyn, for your quick reply. I didn’t understood you correct. Everything is now working fine.

NEW BETA 3.0.0

Because CURE (the first waste collector this sensor supported) switched to a different API, I wanted to integrate this new API in this sensor too. So I made a new version of the Afvalbeheer sensor.
It now supports the mijnafvalwijzer and afvalstoffendienstkalender.

This is a Beta version and may cause problems, use at own risk!

That said; I tested it a lot and it’s stable on my system.
To test the new version replace the contents of sensor.py with this beta version.

If you encounter any issues with this beta please report them in this issue.

Hello,

I used Afvalbeheer custom component for while and it’s very nice.
a few days ago is setup up a dark theme and the icons are less visible now. Is there a way to change the color of the icons? i used buildin icons now. Or a way that i can invertert the colors, like the text, by a dark theme?
dark theme
image
default-theme
image

You can change to icon of every entity in HA. Look at the docs.

BTW those are not the buildin icons (maybe those are the icons from Avalex?),
The buildin icons look like this:
image

Hi Pippyn,

Thank you for the quick response. Sorry i mean indeed the icons of avalex. is it possible to change these?

Yeah sure! As i said every icon of every sensor is changable in HA. See https://www.home-assistant.io/docs/configuration/customizing-devices/

I know and i have read the documentation. But i’m really new to this. I was hoping you could show an example or something.
I use the icons from avalex and if i take a look this should by the entity_picture:

entity_picture: data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNS4wLjIsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL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jQ5LTMuNC00LjQ5LTYuNDczYzAuMDAyLTMuMDY0LDEuODQ0LTUuNzA4LDQuNDktNi40NjJ2LTAuNTQ3YzAtMS4yODEtMS4wNDUtMi4zMjQtMi4zMjYtMi4zMjRoLTguMDI4DQoJYy0xLjI4MywwLTIuMzI2LDEuMDQzLTIuMzI2LDIuMzI0djAuNTQ3YzIuNjQ2LDAuNzUyLDQuNDg5LDMuMzk2LDQuNDkxLDYuNDYyYzAuMDAxLDMuMDY1LTEuODQyLDUuNzE3LTQuNDkxLDYuNDczVjI3LjE2OHoiLz4NCjxwYXRoIGZpbGw9IiMxMjMyNzQiIGQ9Ik0xNS44NDMsNy42ODNjLTAuNDE1LDAtMC43NTMtMC4zMzYtMC43NTMtMC43NTJjMC0yLjI0LDAuOTkxLTQuMzQzLDIuNzE5LTUuNzY3DQoJYzAuMzEyLTAuMjU1LDAuODA5LTAuMjA3LDEuMDYyLDAuMTAzYzAuMjY4LDAuMzE5LDAuMjE5LDAuNzk3LTAuMTA0LDEuMDYxYy0xLjM3OSwxLjEzOC0yLjE3LDIuODE2LTIuMTcsNC42MDQNCglDMTYuNTk2LDcuMzQ3LDE2LjI1Nyw3LjY4MywxNS44NDMsNy42ODN6Ii8+DQo8L3N2Zz4NCg==

How can i ever change te color of this based on the theme i have set, or change the whole picture? If i can find how i can get this picture i can change the color by myself.

I’m trying to make an automation which send me a notification, if the state of sensor.dar_morgen exist has one fraction it’s working fine but if the state of sensor.dar_morgen exists out of two fractions, like the example below, it’s not working. Can someone give me a tip how to solve this.

There are examples in the docs; https://www.home-assistant.io/docs/configuration/customizing-devices/#manual-customization

Look at thermostat.family_room in the example on how to set the entity_picture. You can set it to a svg (even encoded in base64 as the sensor does) or png/jpg/gif

If you put restafval,pmd in quotes, this should work.

But I wouldn’t use the today and tomorrow sensors this way. I would make the automation more general and sent a notification for all states of the tomorrow sensor.

I’ll tried quotes but that doesn’t do the trick. I’m not a programmer so I have to think how to tackle this in a more general way. Do you have some tips to point me in the right direction ?

Any change support will come for AGSO?

https://www.agsoknokke-heist.be/afval/afvalinzameling/mijn-afvalkalender

https://www.ophaalkalender.be/

Is this dead?

Did you read the topic?
There is my other sensor: https://github.com/pippyn/Home-Assistant-Sensor-Ophaalkalender

But I’m working on integrating all the waste sensors into one. So shortly (this week) the other sensors will be deprecated.

Hi thx for your reply.
No i didnt read all 237 posts, thats right (only beginning). Sorry.

So you’re saying you will merge the belgium wate collectors into this one? Then i should just wait this week…

Thx for the insight ! Will keep this one close to my eye :wink:

As soon as its released i will use it.
Thx for the effort !

The newest version of afvalbeheer supports Ophaalkalender.be. Install version 3.1.0 (or higher)

Superb!
Got it running with following code

sensor:
  - platform: afvalbeheer
    wastecollector: ophaalkalender
    resources:
      - restafval
      - papier
      - pmd
    postcode: !secret ophaalkalender_postcode
    streetname: !secret ophaalkalender_streetname
      

Next up:

  • adding to lovelace
  • adding pushmessages
  • adding google speech

one question though: i installed it manually.
I found some different waste addons on hacs,
how do i let it autoupdate?