Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No icons, only default HA ones #493

Open
StarWing01 opened this issue Jul 11, 2024 · 7 comments
Open

No icons, only default HA ones #493

StarWing01 opened this issue Jul 11, 2024 · 7 comments

Comments

@StarWing01
Copy link

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 !

@pippyn
Copy link
Owner

pippyn commented Jul 11, 2024

HI @StarWing01 , welcome to HA.

Sure, just add these 2 lines to your config:

dayofweek: 0
builtinicons: 1

@pippyn
Copy link
Owner

pippyn commented Jul 11, 2024

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

@StarWing01
Copy link
Author

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).

@pippyn
Copy link
Owner

pippyn commented Jul 11, 2024

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

@StarWing01
Copy link
Author

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

@pippyn
Copy link
Owner

pippyn commented Jul 12, 2024

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

@StarWing01
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants