Home-Assistant-Sensor-Afvalbeheer icon indicating copy to clipboard operation
Home-Assistant-Sensor-Afvalbeheer copied to clipboard

No icons, only default HA ones

Open StarWing01 opened this issue 1 year ago • 7 comments

Hi,

Please keep in mind that I'm a HA noob :) I don't really know if it's an issue or simply a mistake from my side. I'm currently migrating from Domoticz to HA and I found your repo. I'm adding it to my HA installation for use with ILVA waste collector (Oost-Vlaanderen, Belgium).

I made a std config and the dates are beeing collected and are correct for my location. However, in HA, I don't see any of the icons that are available, or which I can see on the thread in the HA forums. The only ones I see are the default HA ones.

2nd, how can I get consistency in the dates? Some are showing the day before the date, other ones only the date.

Naamloos

my cfg: configuration.yaml

# Afvalbeheer
  - platform: afvalbeheer
    wastecollector: RecycleApp
    resources:
    - GFT
    - Papier
    - PMD
    - Restafval
    - Glas
    dutch: 1
    postcode: 9420
    streetnumber: XX
    streetname: XXXXXXXXX
    upcomingsensor: 1
    builtiniconsnew: 1
    dateformat: '%d-%m-%Y'

card:

type: custom:auto-entities
card:
  type: entities
  title: Afvalkalender
  state_color: false
  show_header_toggle: false
entities:
  - sensor.recycleapp_pmd
  - sensor.recycleapp_papier
  - sensor.recycleapp_glas
  - sensor.recycleapp_restafval
  - sensor.recycleapp_gft
sort:
  method: entity_id
  attribute: Sort-date
  reverse: true
  numeric: false

Thanks !

StarWing01 avatar Jul 11 '24 13:07 StarWing01

HI @StarWing01 , welcome to HA.

Sure, just add these 2 lines to your config:

dayofweek: 0
builtinicons: 1

pippyn avatar Jul 11 '24 13:07 pippyn

BTW you are using the old way to implement the sensor. Use the new way to get calendar support. Remove your config from your sensor: section and add it as a platform. It should look somewhat like this:

# Afvalbeheer
afvalbeheer:
  - wastecollector: RecycleApp
    resources:
    - GFT
    - Papier
    - PMD
    - Restafval
    - Glas
    dutch: 1
    postcode: 9420
    streetnumber: XX
    streetname: XXXXXXXXX
    upcomingsensor: 1
    builtiniconsnew: 1
    dateformat: '%d-%m-%Y'
    dayofweek: 0
    builtinicons: 1

pippyn avatar Jul 11 '24 13:07 pippyn

I have no clue what you mean with your last post about platform :) But I'll google it. I've changed my configuration.yaml file according to your suggestion. This solved the date issue, but still no icons :/

To be complete, I have installed through HACS, not manually, and applied the lastest update (v5.3.6).

StarWing01 avatar Jul 11 '24 14:07 StarWing01

That is a bug. But it should be fixed in v5.3.7

pippyn avatar Jul 11 '24 14:07 pippyn

Icons fixed after last update. Remains: sorting by date.

StarWing01 avatar Jul 12 '24 13:07 StarWing01

You can do that with a custom card. I use auto-entities, example:

card:
  show_header_toggle: false
  title: Afvalbeheer
  type: entities
filter:
  exclude:
    - state: unknown
  include:
    - entity_id: sensor.gft
    - entity_id: sensor.gftgratis
    - entity_id: sensor.papier
    - entity_id: sensor.pmd
    - entity_id: sensor.restafval
sort:
  method: attribute
  attribute: Sort_date
  reverse: false
type: custom:auto-entities

pippyn avatar Jul 12 '24 13:07 pippyn

Fixed !

Latest card code:

type: custom:auto-entities
card:
  type: entities
  title: Afvalkalender
  state_color: false
  show_header_toggle: false
entities:
  - sensor.recycleapp_pmd
  - sensor.recycleapp_papier
  - sensor.recycleapp_glas
  - sensor.recycleapp_restafval
  - sensor.recycleapp_gft
sort:
  method: attribute
  attribute: Sort_date
  reverse: false
filter:
  exclude:
    - state: unknown

StarWing01 avatar Jul 12 '24 14:07 StarWing01

Awesome ^^. Stumbled upon this thread when when looking for a fix for the missing icons. Reinstall of 'Afvalbeheer' app did the trick. This custom card which makes sorting based on pick up is also quite nice. Thanks :D

xtiman avatar Jan 08 '25 11:01 xtiman

Same problem as above no icons (5.6.0) doing something wrong but what?

my config:

afvalbeheer: wastecollector: Avri name: 'avri' resources:

  • gft
  • papier
  • pmd postcode: 1234AA streetnumber: 1 dutch: 1 dayofweek: 0 buildinicons: 0 #builtiniconsnew: 1 upcomingsensor: 1 #dateformat: '%d-%m-%Y' dateonly: 0

Martin

brommetje avatar Jan 11 '25 16:01 brommetje

Set buildinicons to 1

pippyn avatar Jan 13 '25 07:01 pippyn

Same problem with no icons. Redownloaded repo in hacs also with no fix

Configuration.Yaml

afvalbeheer: wastecollector: Omrin resources: - gft - papier - textiel - grofvuil - chemisch - sortibak postcode: streetnumber: upcomingsensor: 1 dateformat: '%d-%m-%Y' dateonly: 0 name: "" nameprefix: 1 builtinicons: 1 dutch: 1 dayofweek: 0

magin1 avatar Jan 13 '25 20:01 magin1

Do you have an address for me to test with?

pippyn avatar Jan 14 '25 09:01 pippyn

Do you have an address for me to test with?

No sorry private system.

But I deleted the afvalbeheer files though hacs and Redownloaded and now it works. Also added the new icons line and they look great.

magin1 avatar Jan 14 '25 16:01 magin1

4147EG number 3

brommetje avatar Jan 14 '25 16:01 brommetje

Do you have an address for me to test with?

No sorry private system.

But I deleted the afvalbeheer files though hacs and Redownloaded and now it works. Also added the new icons line and they look great.

Not working for me, HA version 2025.2

#
afvalbeheer:
  wastecollector: Avri
  name: 'avri'
  resources:
  - gft
  - papier
  - pmd
  postcode: 4147EG
  streetnumber: 3
  dutch: 1
  dayofweek: 0
  buildinicons: 1
  #builtiniconsnew: 1
  upcomingsensor: 1
  #dateformat: '%d-%m-%Y'
  dateonly: 0
#

Martin

brommetje avatar Jan 14 '25 18:01 brommetje

@brommetje You spelled builtinicons wrong.

pippyn avatar Jan 15 '25 07:01 pippyn

@brommetje You spelled builtinicons wrong.

Oops big finger, thanks @pippyn for your help it is working now.

brommetje avatar Jan 15 '25 14:01 brommetje

@pippyn I seem to have the same issue, no icons. I have already tried the options mentioned, rebooted the system, waited a couple of hours, but still no change. Probably something stupid i forgot to do ;-) Could you please advise?

Image

Version installed v5.6.2

Configuration.yaml

# Afvalbeheer
afvalbeheer:
  wastecollector: Reinis
  resources:
    - restafval
    - gft
    - papier
    - pmd
  postcode: 3206GN
  streetnumber: 11
  upcomingsensor: 1           # (optional)
  dateformat: '%d-%m-%Y' # (optional)
  dateonly: 0                        # (optional)
  nameprefix: 1                    # (optional)
  builtiniconsnew: 1             # (optional)
  dutch: 1                             # (optional)

Card:
type: custom:auto-entities
card:
  type: entities
  title: Afvalkalender
  state_color: false
  show_header_toggle: false
entities:
  - entity: sensor.reinis_gft
  - entity: sensor.reinis_papier
  - entity: sensor.reinis_pmd
  - entity: sensor.reinis_restafval
  - entity: calendar.afvalbeheer_reinis
    secondary_info: last-changed
sort:
  method: attribute
  attribute: Sort_date
  reverse: false
filter:
  exclude:
    - state: unknown
title: Afval ophalen
grid_options:
  rows: 5
  columns: 12

ErwinW2511 avatar Feb 19 '25 18:02 ErwinW2511

@ErwinW2511 You are missing the option builtinicons: 1

afvalbeheer:
  - wastecollector: Reinis
    resources:
      - restafval
      - gft
      - papier
      - pmd
    postcode: 3206GN
    streetnumber: 11
    upcomingsensor: 1
    dateformat: "%d-%m-%Y"
    dateonly: 0
    nameprefix: 1
    builtinicons: 1
    builtiniconsnew: 1
    dutch: 1

pippyn avatar Feb 20 '25 08:02 pippyn

@pippyn Thank you for the reply, i assumed it was builtinicons: 1 or builtiniconsnew: 1 Now it's working!

ErwinW2511 avatar Feb 20 '25 08:02 ErwinW2511