pinkywafer / Anniversaries

Anniversary Countdown Sensor for Home Assistant
MIT License
169 stars 26 forks source link

Feature request or a way to categorize items #141

Open d3jong opened 1 year ago

d3jong commented 1 year ago

Feature request, NOT a bug

Good day,

Just found out this integration. Looks very useful!

However, I would like to categorize the basic stuff, for example birthdays, weddings/jubilee, regular car checks, tax etc. So in the case of birthdays, you do not have to write: xname's Birthday over and over again.

anniversaries:
  sensors:
 -  type: birthday: #something like this maybe?
   - name: Arnold
     date: '1900-01-01'
   - name: Henk
     date: '1900-01-01'
   - name: Joep
     date: '1900-01-01'
 - type: jubilee (wedding date) #something like this maybe?
   - name: Henk & Ingrid 
     date: '2020-12-12'
 - type: uncategorized_recurring:
   - name: Car inspection
     date: '11-29'

Maybe is the idea above something or is there already something possible like this? Or is it just me who wants to have clean consistent yaml files 😬

BebeMischa commented 1 year ago

I already figured a way to do this with the possibilities we have.

When making a new anniversary, you can make your own prefix for the sensor name.

Examples:

concert: sensor.anniversary_concert_depeche_mode

birthday: sensor.anniversary_birthday_Annabel

wedding: sensor.anniversary_wedding_John_and_Maria

Like this, you can filter on the prefix in most common tasks and dashboard cards. ;-)

afbeelding