pippyn / Home-Assistant-Sensor-Afvalbeheer

Provides Home Assistant sensors for multiple Dutch and Belgium waste collectors
Apache License 2.0
286 stars 87 forks source link

Sort-date doesn't work #412

Closed kooijman599 closed 1 year ago

kooijman599 commented 1 year ago

Really don't get it. In my dashboard the option to sort by attribute doesn't work. Can you please help me out?

Sort-date

Configuration:

afvalbeheer: wastecollector: MijnAfvalwijzer resources:

  • gft
  • papier
  • pmd postcode: ** streetnumber: *** upcomingsensor: 1 # (optional) dateformat: '%d-%m-%Y' # (optional) dateonly: 1 # (optional) name: "" # (optional) nameprefix: 1 # (optional) builtinicons: 1 builtiniconsnew: 1 # (optional) dutch: 1 # (optional)

Lovelace:

type: custom:auto-entities card: type: glance filter: include:

  • entity_id: sensor.mijnafvalwijzer_gft
  • entity_id: sensor.mijnafvalwijzer_pmd
  • entity_id: sensor.mijnafvalwijzer_papier sort: method: attribute attribute: Sort-date numeric: true
kooijman599 commented 1 year ago

EDIT: Fixed!

The attribute is now Sort_date instead of Sort-date